Introduction
Below is something I think is basic but important to conduct data analysis on R studio. Besides, I would strongly recommend purchasing R in action, data analysis and graphics with R for learning. This book is the bibble in R language and helps me a lot.
Import Data from xlsx files
library():rJava,xlsx
library():openxlsx: to avoid Java memory overflow
book <-“file” (direct read)
book<-read.xlsx(file,sheet) (import into dataframe)
Data Type Change
- as.factor()
Explorary Data Analysis
- summary()
Data Visualization
library(ggplot2)
- plot()
- hist()
Modeling
- lm()
- glm()
Model Improvement
- AIC or BIC
(TBC)