Skip to content

Instantly share code, notes, and snippets.

View murraycadzow's full-sized avatar

murraycadzow

  • University of Otago
  • Research and Teaching IT Support
  • 15:20 (UTC +12:00)
View GitHub Profile
---
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)
@murraycadzow
murraycadzow / int_adv_tidyverse.Rmd
Last active February 3, 2018 17:53
Structure of intermediate and advanced tidyverse
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
@murraycadzow
murraycadzow / session2.R
Created October 22, 2017 02:00
Otago SWC 20-10-2017 R session 2
library(tidyverse)
gapminder <- read.csv('data/gapminder-FiveYearData.csv', header = TRUE, stringsAsFactors = FALSE)
str(gapminder)
dim(gapminder)
class(gapminder)
head(gapminder)
@murraycadzow
murraycadzow / useful_rmd.txt
Last active March 2, 2018 23:38
Text file of useful R or Rmd things
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: