I hate R with a passion! With the invention of iPython + Statsmodels + Pandas, or even Julia these days, it is becoming painfully obvious that it is the worst option of them all. The syntax sucks, there are 10 ways to do the same thing, and it isn’t scalable. Unfortunately, if you work in data science, it is still unavoidable a lot of statistical work is still done in R.
I dont think you need to learn the language fluently, but here are a series of commands that definitely will help you get by:
Install A Package
install.packages("ggplot2")
Changing your working directory
setwd("path/to/working/directory")
Run an R script
source("path/to/script.R")
Open plot window from within R script
dev.new()bp<-boxplot(log(posts$all.count+1)~posts$post.hour,col="lightblue",xaxt="n",pch=19,xlab="Hour Of Day [0 is 12AM]",ylab="log(Likes + Shares + Comments)",main="Total Number Of Post Interactions vs Hour Of Day")