??command gives help on the given command, e.g. ?names
dimdim(d) gives the number of rows and columns in dnamescolumn names in dhead,tailthe top/bottom N rows of dsummaryA summary of the columns in dnrow,ncolthe number of rows/columns in d
lengthlength(x) gives the number of items in xmean,var,sd,medianthe mean/variance/stdev/median of the values in x
d[rows, columns]Select given row(s) and column(s)d$column,d[[column]]Select given column
tabletable(x) gives the frequency of items in x; table(x,y) crosstabulates x and yplotplot(x, y) gives a scatter plot of x. Use plot(x, y, type='l') to get a line plotbarplotbarplot(x) gives a barplot of the values in xhisthist(x) gives a histogram of x, automatically binning the itemslineslines(x, y) adds a new line to an existing plot
install.packages"Install the given packages. (Can also be done interactively in the packages tab in Rstudio)"libraryLoad a given package that is already installedsourceRun a file (or URL) containing R commandsdownload.fileDownload a file from the Internet
rnormGenerate numbers from a normal distributionpnormProportion ofqqnorm,qqlinePlot the Q-Q scatter and normal line of a distribution