ctrl+N: run the line
ctrl+L: kill the console
how to get: CRAN, crantastic, github.com/trending/r
some popular packages:
dplyr: manipulating data frames
tidyr: cleaning up info
stringr: working with strings or text info
lubridate: manupulating data info
httr: working with website data
ggvis: gg-grammar&graphics, vis-interactive visualizations
ggplot2: creating graphics or data visualizations
shiny: create interactive applications that can be install on websites
rio: for out input&output, for importing and exporting data
rmarkdown: interactive notebooks and rich documents for sharing info
pac: load all the packages
First:
install.packages("pacman")
require(pacman) # Gives a confirmation message
library(pacman) # No message
Then you can use pacman to install other packages.
pacman::p_load(pacman, dplyr, GGally, ggplot2, ggthemes, ggvis, httr, lubridate, plotly, rio, rmarkdown, shiny, stringr, tidyr)
↑A much easier way to load all the packages.
And you can also p_unload(). # if using p_unload(all) you will unload all the packages
Basic X-Y plotting
library(dataset) # load base packages manually
How to basically learn about the data:
head(iris) # see the first few lines of the data
summary(iris) # see the summary
How to get a help of plot() and the other things:
?plot # then the help will advent at the left sidebar of the interface