data
1 hour
data
1 hour
--- | |
title: "gs webscrape" | |
author: "Murray Cadzow" | |
--- | |
for how to get googlesheets setup first take a look here: | |
https://github.com/murraycadzow/r_googlesheets_lesson | |
```{r} | |
library(here) |
The plan of what to cover for the intermediate/advanced tidyverse workshop for ResBaz2018 Dunedin | |
dplyr: | |
- joins | |
-inner/left/right/anti | |
- suffixes | |
- bind_cols/bind_rows | |
- pull() | |
- summarise_at/summarise_all/summarise_if |
library(tidyverse) | |
gapminder <- read.csv('data/gapminder-FiveYearData.csv', header = TRUE, stringsAsFactors = FALSE) | |
str(gapminder) | |
dim(gapminder) | |
class(gapminder) | |
head(gapminder) |
if rJava package in R fails to install run: "sudo R CMD javareconf" in bash | |
Be able to knit rmarkdown from cmd line | |
first soft link Rstudios pandoc: | |
Newer Systems (Debian/Ubuntu/Fedora/RHEL6+) | |
For newer Linux systems you can make a standalone version of pandoc v1.12.3 available to the system by soft-linking the binaries included with RStudio: | |
$ sudo ln -s /usr/lib/rstudio/bin/pandoc/pandoc /usr/local/bin | |
$ sudo ln -s /usr/lib/rstudio/bin/pandoc/pandoc-citeproc /usr/local/bin | |
then: |