This document provides a running list of all packages and functions introduced in the DataCamp lecture slides. It will only include the functions explicitly shown in the slides. Therefore, it excludes functions discussed only in the interactive interface.

I will try to update it each Tuesday, just before class. If I forget, please email me.


To get additional information:

  • learn about a package by typing help(package = "PACKAGE_NAME") into the R console.
  • find package tutorials by typing browseVignettes(package = "PACKAGE_NAME")
  • learn about a function by typing ??function_name (two question marks) into the R console.
    • if you already have the package loaded into memory, you can just type ?function_name (one question mark)
    • or, if you know the name of the package, you can type ?package_name::function_name
    • or you can search for the function at rdocumentation.org

Introduction To The Tidyverse

Packages Used

chapter packages_used
chapter1 dplyr
chapter1 gapminder
chapter2 ggplot2

Functions Used

chapter funs_used times_used
chapter1 arrange() 4
chapter1 desc() 3
chapter1 filter() 5
chapter1 library() 2
chapter1 mutate() 3
chapter2 aes() 6
chapter2 facet_wrap() 1
chapter2 filter() 1
chapter2 geom_point() 6
chapter2 ggplot() 6
chapter2 library() 2
chapter3 aes() 3
chapter3 expand_limits() 2
chapter3 filter() 5
chapter3 geom_point() 3
chapter3 ggplot() 3
chapter3 group_by() 5
chapter3 mean() 9
chapter3 sum() 7
chapter3 summarize() 9
chapter4 aes() 7
chapter4 expand_limits() 2
chapter4 filter() 1
chapter4 geom_boxplot() 1
chapter4 geom_col() 1
chapter4 geom_histogram() 3
chapter4 geom_line() 2
chapter4 geom_point() 2
chapter4 ggplot() 7
chapter4 group_by() 1
chapter4 mean() 1
chapter4 summarize() 1

Introduction To Importing Data In R

Packages Used

chapter packages_used
chapter2 data.table
chapter2 readr
chapter3 gdata
chapter3 readxl
chapter4 “XLConnect”
chapter4 readxl
chapter4 XLConnect

Functions Used

chapter funs_used times_used
chapter1 csv() 9
chapter1 delim() 4
chapter1 path() 1
chapter1 str() 1
chapter1 table() 5
chapter2 c() 2
chapter2 csv() 1
chapter2 delim() 1
chapter2 fread() 6
chapter2 library() 2
chapter2 packages() 2
chapter2 read_csv() 1
chapter2 read_delim() 7
chapter2 read_tsv() 1
chapter2 table() 3
chapter3 c() 3
chapter3 dir() 1
chapter3 excel_sheets() 5
chapter3 library() 2
chapter3 packages() 2
chapter3 read_excel() 19
chapter3 xls() 4
chapter4 c() 2
chapter4 createSheet() 6
chapter4 excel_sheets() 1
chapter4 frame() 1
chapter4 getSheets() 2
chapter4 library() 7
chapter4 loadWorkbook() 7
chapter4 packages() 1
chapter4 readWorksheet() 4
chapter4 removeSheet() 4
chapter4 renameSheet() 8
chapter4 saveWorkbook() 5
chapter4 str() 1
chapter4 writeWorksheet() 4

Intermediate Importing Data In R

Packages Used

chapter packages_used
ch5 foreign
ch5 haven

Functions Used

chapter funs_used times_used
ch5 as_factor() 5
ch5 attr() 23
ch5 character() 2
ch5 class() 1
ch5 dta() 11
ch5 library() 2
ch5 packages() 2
ch5 path() 1
ch5 read_dta() 4
ch5 read_por() 1
ch5 read_sas() 7
ch5 read_sav() 2
ch5 read_spss() 1
ch5 read_stata() 4
ch5 spss() 2
ch5 str() 3

Exploratory Data Analysis In R

Packages Used

chapter packages_used
ch1 ggplot2

Functions Used

chapter funs_used times_used
ch1 aes() 8
ch1 facet_wrap() 1
ch1 geom_bar() 8
ch1 ggplot() 8
ch1 levels() 3
ch1 library() 1
ch1 options() 1
ch1 sum() 1
ch1 table() 9
ch1 ylab() 5
ch2_v2 aes() 26
ch2_v2 coord_flip() 4
ch2_v2 facet_grid() 3
ch2_v2 facet_wrap() 4
ch2_v2 factor() 3
ch2_v2 filter() 6
ch2_v2 geom_boxplot() 7
ch2_v2 geom_density() 8
ch2_v2 geom_dotplot() 1
ch2_v2 geom_histogram() 10
ch2_v2 ggplot() 26
ch2_v2 stat_bin() 6
ch2_v2 str() 1
ch2_v2 table() 1
ch3 aes() 4
ch3 arrange() 1
ch3 c() 1
ch3 desc() 1
ch3 diff() 2
ch3 filter() 2
ch3 geom_density() 4
ch3 ggplot() 4
ch3 group_by() 4
ch3 head() 1
ch3 IQR() 2
ch3 log() 1
ch3 mean() 13
ch3 median() 4
ch3 mutate() 2
ch3 range() 2
ch3 round() 1
ch3 sd() 2
ch3 slice() 2
ch3 sort() 2
ch3 sum() 6
ch3 summarize() 3
ch3 summary() 1
ch3 table() 2
ch3 var() 3
ch4 aes() 20
ch4 c() 1
ch4 facet_wrap() 4
ch4 factor() 4
ch4 filter() 1
ch4 geom_bar() 9
ch4 geom_boxplot() 3
ch4 geom_density() 5
ch4 geom_histogram() 3
ch4 ggplot() 20
ch4 group_by() 2
ch4 levels() 1
ch4 log() 1
ch4 mean() 2
ch4 mutate() 8
ch4 slice() 1
ch4 summarize() 1
ch4 table() 1

Analyzing Election And Polling Data In R

Packages Used

chapter packages_used
chapter1 dplyr
chapter1 ggplot2
chapter1 lubridate
chapter1 tidyverse
chapter1 zoo
chapter2 lubridate
chapter2 tidyverse
chapter3 choroplethr
chapter3 ggplot2

Functions Used

chapter funs_used times_used
chapter1 aes() 1
chapter1 filter() 3
chapter1 geom_point() 1
chapter1 ggplot() 1
chapter1 group_by() 4
chapter1 head() 2
chapter1 library() 7
chapter1 mean() 2
chapter1 median() 1
chapter1 month() 2
chapter1 mutate() 2
chapter1 rollmean() 3
chapter1 select() 3
chapter1 summarise() 3
chapter1 ymd() 2
chapter2 aes() 7
chapter2 filter() 2
chapter2 geom_errorbar() 2
chapter2 geom_point() 7
chapter2 geom_smooth() 2
chapter2 ggplot() 6
chapter2 group_by() 4
chapter2 head() 2
chapter2 length() 1
chapter2 library() 2
chapter2 lm() 2
chapter2 mdy() 1
chapter2 mean() 5
chapter2 mutate() 4
chapter2 nrow() 1
chapter2 Pr() 1
chapter2 select() 2
chapter2 sqrt() 1
chapter2 summarise() 3
chapter2 summary() 1
chapter2 value() 1
chapter2 variable() 2
chapter3 aes() 4
chapter3 county_choropleth() 1
chapter3 geom_point() 4
chapter3 geom_sf() 2
chapter3 geom_smooth() 3
chapter3 ggplot() 4
chapter3 head() 1
chapter3 left_join() 1
chapter3 library() 3
chapter3 lm() 4
chapter3 mdy() 1
chapter3 Pr() 2
chapter3 rename() 1
chapter3 summary() 2
chapter4 aes() 3
chapter4 c() 4
chapter4 filter() 5
chapter4 frame() 1
chapter4 geom_abline() 1
chapter4 geom_line() 1
chapter4 geom_point() 1
chapter4 geom_smooth() 2
chapter4 geom_text() 2
chapter4 ggplot() 3
chapter4 group_by() 4
chapter4 lm() 5
chapter4 mean() 6
chapter4 month() 1
chapter4 mutate() 3
chapter4 Pr() 1
chapter4 predict() 1
chapter4 pull() 2
chapter4 rollmean() 1
chapter4 select() 1
chapter4 sqrt() 3
chapter4 summarise() 3
chapter4 summary() 1

Visualizing Geospatial Data In R

Packages Used

chapter packages_used
chapter1 ggmap
chapter1 ggplot2
chapter2 tmap
chapter3 classInt
chapter3 raster
chapter3 RColorBrewer
chapter3 sp
chapter3 viridisLite
chapter4 raster
chapter4 rgdal
chapter4 sp

Functions Used

chapter funs_used times_used
chapter1 aes() 5
chapter1 c() 9
chapter1 facet_wrap() 1
chapter1 geom_point() 5
chapter1 get_map() 6
chapter1 ggmap() 9
chapter1 ggplot() 4
chapter1 head() 3
chapter1 library() 3
chapter1 nrow() 1
chapter2 attr() 3
chapter2 data() 3
chapter2 head() 1
chapter2 library() 3
chapter2 slot() 2
chapter2 str() 3
chapter2 string() 1
chapter2 summary() 2
chapter2 tm_borders() 4
chapter2 tm_bubbles() 1
chapter2 tm_compass() 1
chapter2 tm_dots() 1
chapter2 tm_fill() 3
chapter2 tm_lines() 1
chapter2 tm_polygons() 1
chapter2 tm_raster() 1
chapter2 tm_shape() 4
chapter2 tm_text() 1
chapter2 tmap_style() 1
chapter3 all() 1
chapter3 c() 1
chapter3 classIntervals() 4
chapter3 head() 1
chapter3 library() 5
chapter3 pal() 1
chapter3 viridis() 1
chapter4 attr() 1
chapter4 dir() 4
chapter4 frame() 1
chapter4 function() 1
chapter4 library() 4
chapter4 merge() 2
chapter4 plot() 1
chapter4 raster() 2
chapter4 readGDAL() 1
chapter4 readOGR() 2
chapter4 sapply() 1
chapter4 SpatialPoints() 1
chapter4 SpatialPolygonsDataFrame() 5
chapter4 spTransform() 4
chapter4 str() 3
chapter4 string() 8
chapter4 summary() 1

Analyzing Us Census Data In R

Packages Used

chapter packages_used
chapter1 tidycensus
chapter1 tidyverse
chapter2 tidycensus
chapter2 tidyverse
chapter3 sf
chapter3 tidyverse
chapter3 tigris
chapter4 ggplot2
chapter4 mapview
chapter4 sf
chapter4 tidycensus
chapter4 tidyverse
chapter4 tigris

Functions Used

chapter funs_used times_used
chapter1 aes() 2
chapter1 c() 3
chapter1 census_api_key() 1
chapter1 filter() 1
chapter1 geom_point() 2
chapter1 get_acs() 5
chapter1 get_decennial() 1
chapter1 ggplot() 2
chapter1 head() 2
chapter1 labs() 1
chapter1 library() 4
chapter1 load_variables() 1
chapter1 reorder() 1
chapter1 scale_x_continuous() 1
chapter1 str_detect() 1
chapter1 theme_minimal() 1
chapter2 aes() 4
chapter2 arrange() 1
chapter2 c() 5
chapter2 case_when() 1
chapter2 filter() 2
chapter2 function() 1
chapter2 geom_errorbar() 1
chapter2 geom_errorbarh() 3
chapter2 geom_point() 2
chapter2 get_acs() 6
chapter2 ggplot() 2
chapter2 group_by() 4
chapter2 labs() 1
chapter2 library() 4
chapter2 map_df() 1
chapter2 max() 1
chapter2 moe_product() 1
chapter2 moe_prop() 1
chapter2 moe_ratio() 1
chapter2 moe_sum() 2
chapter2 mutate() 4
chapter2 reorder() 1
chapter2 select() 2
chapter2 str_replace() 1
chapter2 sum() 2
chapter2 summarize() 2
chapter2 tally() 1
chapter2 theme_grey() 1
chapter3 aes() 3
chapter3 attr() 2
chapter3 c() 6
chapter3 class() 1
chapter3 coord_sf() 1
chapter3 counties() 4
chapter3 function() 1
chapter3 geom_sf() 5
chapter3 ggplot() 4
chapter3 glimpse() 1
chapter3 head() 1
chapter3 labs() 1
chapter3 left_join() 1
chapter3 library() 5
chapter3 map() 1
chapter3 options() 2
chapter3 par() 2
chapter3 plot() 7
chapter3 primary_secondary_roads() 1
chapter3 rbind_tigris() 3
chapter3 scale_fill_manual() 2
chapter3 st_geometry() 1
chapter3 state_legislative_districts() 1
chapter3 theme_minimal() 1
chapter3 tigris_cache_dir() 1
chapter3 tracts() 5
chapter4 aes() 6
chapter4 area_water() 1
chapter4 c() 3
chapter4 coord_sf() 3
chapter4 counties() 1
chapter4 facet_wrap() 1
chapter4 filter() 2
chapter4 function() 1
chapter4 geom_sf() 11
chapter4 get_acs() 3
chapter4 ggplot() 6
chapter4 group_by() 1
chapter4 head() 1
chapter4 labs() 2
chapter4 left_join() 1
chapter4 library() 7
chapter4 map() 1
chapter4 mapview() 1
chapter4 mutate() 1
chapter4 options() 1
chapter4 plot() 5
chapter4 reduce() 1
chapter4 roads() 1
chapter4 sample_frac() 1
chapter4 scale_color_brewer() 1
chapter4 scale_color_viridis_c() 2
chapter4 scale_fill_brewer() 1
chapter4 scale_fill_viridis_c() 2
chapter4 scale_size_continuous() 1
chapter4 school_districts() 1
chapter4 st_centroid() 1
chapter4 st_sample() 2
chapter4 st_sf() 1
chapter4 summarize() 1
chapter4 theme_minimal() 1

Correlation And Regression In R

Packages Used

chapter packages_used
chapter4 broom

Functions Used

chapter funs_used times_used
chapter1 aes() 8
chapter1 cut() 3
chapter1 filter() 1
chapter1 geom_boxplot() 1
chapter1 geom_point() 7
chapter1 ggplot() 8
chapter1 scale_x_continuous() 1
chapter1 scale_y_continuous() 1
chapter1 select() 1
chapter2 aes() 6
chapter2 facet_wrap() 1
chapter2 filter() 5
chapter2 geom_point() 6
chapter2 ggplot() 6
chapter2 r() 1
chapter3 aes() 6
chapter3 geom_abline() 3
chapter3 geom_point() 6
chapter3 geom_smooth() 2
chapter3 ggplot() 6
chapter4 aes() 7
chapter4 arrange() 1
chapter4 augment() 4
chapter4 class() 1
chapter4 coef() 1
chapter4 desc() 1
chapter4 filter() 1
chapter4 frame() 1
chapter4 geom_point() 7
chapter4 geom_smooth() 3
chapter4 ggplot() 5
chapter4 head() 2
chapter4 library() 2
chapter4 lm() 8
chapter4 mutate() 2
chapter4 parse_number() 1
chapter4 Pr() 1
chapter4 predict() 1
chapter4 residuals() 1
chapter4 summary() 1
chapter4 values() 1

Modeling With Data In The Tidyverse

Packages Used

chapter packages_used
chapter1 dplyr
chapter1 ggplot2
chapter1 moderndive
chapter2 dplyr
chapter2 ggplot2
chapter2 moderndive
chapter3 dplyr
chapter3 moderndive
chapter4 dplyr

Functions Used

chapter funs_used times_used
chapter1 aes() 7
chapter1 cor() 1
chapter1 geom_boxplot() 1
chapter1 geom_histogram() 4
chapter1 geom_jitter() 2
chapter1 geom_point() 2
chapter1 ggplot() 7
chapter1 glimpse() 3
chapter1 group_by() 1
chapter1 labs() 7
chapter1 library() 15
chapter1 mean() 2
chapter1 median() 1
chapter1 mutate() 2
chapter1 n() 1
chapter1 sd() 2
chapter1 select() 2
chapter1 summarize() 3
chapter2 aes() 5
chapter2 facet_wrap() 1
chapter2 geom_boxplot() 1
chapter2 geom_histogram() 2
chapter2 geom_point() 2
chapter2 geom_smooth() 1
chapter2 get_regression_points() 3
chapter2 get_regression_table() 3
chapter2 ggplot() 5
chapter2 group_by() 3
chapter2 labs() 5
chapter2 library() 12
chapter2 lm() 8
chapter2 mean() 2
chapter2 n() 1
chapter2 sd() 1
chapter2 summarize() 3
chapter3 c() 2
chapter3 data_frame() 1
chapter3 factor() 1
chapter3 get_regression_points() 4
chapter3 get_regression_table() 4
chapter3 glimpse() 1
chapter3 group_by() 1
chapter3 library() 4
chapter3 lm() 4
chapter3 mean() 1
chapter3 mutate() 4
chapter3 n() 1
chapter3 sd() 1
chapter3 select() 1
chapter3 sum() 1
chapter3 summarize() 2
chapter4 c() 2
chapter4 data_frame() 1
chapter4 factor() 1
chapter4 get_regression_points() 12
chapter4 get_regression_table() 2
chapter4 library() 1
chapter4 lm() 12
chapter4 mean() 6
chapter4 mutate() 10
chapter4 mutate_impl() 1
chapter4 sample_frac() 1
chapter4 slice() 2
chapter4 sqrt() 4
chapter4 sum() 4
chapter4 summarize() 10
chapter4 var() 4
chapter4 Var() 17

Most frequently used functions so far

Function Times Used
aes() 148
ggplot() 143
library() 99
geom_point() 63
mean() 49
mutate() 45
c() 44
filter() 43
lm() 43
summarize() 35
group_by() 34
attr() 29
geom_histogram() 22
sum() 21
table() 21
get_regression_points() 19
read_excel() 19
geom_sf() 18
geom_bar() 17
geom_density() 17
head() 17
labs() 17
Var() 17
facet_wrap() 14
geom_boxplot() 14
get_acs() 14
geom_smooth() 13
plot() 13
select() 12
str() 12
dta() 11
csv() 10
factor() 9
get_regression_table() 9
ggmap() 9
string() 9
summarise() 9
summary() 9
renameSheet() 8
sqrt() 8
arrange() 7
loadWorkbook() 7
packages() 7
read_delim() 7
read_sas() 7
var() 7
createSheet() 6
excel_sheets() 6
fread() 6
get_map() 6
median() 6
sd() 6
stat_bin() 6
as_factor() 5
counties() 5
delim() 5
desc() 5
dir() 5
glimpse() 5
Pr() 5
saveWorkbook() 5
slice() 5
SpatialPolygonsDataFrame() 5
tracts() 5
ylab() 5
augment() 4
classIntervals() 4
coord_flip() 4
coord_sf() 4
expand_limits() 4
frame() 4
function() 4
geom_abline() 4
levels() 4
options() 4
read_dta() 4
read_stata() 4
readWorksheet() 4
removeSheet() 4
rollmean() 4
spTransform() 4
tm_borders() 4
tm_shape() 4
writeWorksheet() 4
xls() 4
class() 3
cut() 3
data() 3
facet_grid() 3
geom_errorbar() 3
geom_errorbarh() 3
geom_line() 3
left_join() 3
month() 3
n() 3
rbind_tigris() 3
theme_minimal() 3
tm_fill() 3
character() 2
data_frame() 2
diff() 2
geom_jitter() 2
geom_text() 2
getSheets() 2
IQR() 2
log() 2
map() 2
mdy() 2
merge() 2
moe_sum() 2
nrow() 2
par() 2
path() 2
predict() 2
pull() 2
range() 2
raster() 2
read_sav() 2
readOGR() 2
reorder() 2
sample_frac() 2
scale_color_viridis_c() 2
scale_fill_manual() 2
scale_fill_viridis_c() 2
scale_x_continuous() 2
slot() 2
sort() 2
spss() 2
st_sample() 2
variable() 2
ymd() 2
all() 1
area_water() 1
case_when() 1
census_api_key() 1
coef() 1
cor() 1
county_choropleth() 1
geom_col() 1
geom_dotplot() 1
get_decennial() 1
length() 1
load_variables() 1
map_df() 1
mapview() 1
max() 1
moe_product() 1
moe_prop() 1
moe_ratio() 1
mutate_impl() 1
pal() 1
parse_number() 1
primary_secondary_roads() 1
r() 1
read_csv() 1
read_por() 1
read_spss() 1
read_tsv() 1
readGDAL() 1
reduce() 1
rename() 1
residuals() 1
roads() 1
round() 1
sapply() 1
scale_color_brewer() 1
scale_fill_brewer() 1
scale_size_continuous() 1
scale_y_continuous() 1
school_districts() 1
SpatialPoints() 1
st_centroid() 1
st_geometry() 1
st_sf() 1
state_legislative_districts() 1
str_detect() 1
str_replace() 1
tally() 1
theme_grey() 1
tigris_cache_dir() 1
tm_bubbles() 1
tm_compass() 1
tm_dots() 1
tm_lines() 1
tm_polygons() 1
tm_raster() 1
tm_text() 1
tmap_style() 1
value() 1
values() 1
viridis() 1