C Packages and Functions Used
readr
read_csv()
: import data from csv files
dplyr
glimpse()
: look at list of columns in data frameselect()
: picks variables (columns) based on their namesmutate()
: create new variables (columns) based on existing variables (columns)count()
: count unique values of one or more valuesfilter()
: Subset rows using column valuesgroup_by()
: group data by one or more variablessummarize()
orsummarise()
: summarize each group to fewer rows. Creates new data frame.
ggplot2
ggplot()
: initializes a ggplot objectgeom_line()
: connects variables in order of variable on x axis. Used to create a line graphgeom_point()
: used to create scatterplot, or add points to data on graphscale_x_continous()
: adjusts scale of continous variables on x axis.