From be69ebed4ae452023b6a0aabe1fadca9ba8d4c55 Mon Sep 17 00:00:00 2001 From: Stephen Turner Date: Fri, 3 Jun 2016 13:49:01 -0400 Subject: [PATCH] remove setwd from r scripts --- nutrition-studies/p_hacking.R | 2 +- terrorism/paris_terror_analysis.R | 2 +- unisex-names/unisex_names.R | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nutrition-studies/p_hacking.R b/nutrition-studies/p_hacking.R index 3a26335..24e98a6 100644 --- a/nutrition-studies/p_hacking.R +++ b/nutrition-studies/p_hacking.R @@ -1,7 +1,7 @@ # Nutrition Sutides P-hacking # Andrew Flowers -setwd("~/data/nutrition-studies/") + require(readr) require(plyr) diff --git a/terrorism/paris_terror_analysis.R b/terrorism/paris_terror_analysis.R index a455023..6c22ccc 100644 --- a/terrorism/paris_terror_analysis.R +++ b/terrorism/paris_terror_analysis.R @@ -1,7 +1,7 @@ # Andrew Flowers # Nov 13, 2015 -setwd("~/data/terrorism/") # Change according to one's directory structure + require(readr) require(dplyr) diff --git a/unisex-names/unisex_names.R b/unisex-names/unisex_names.R index 1762caa..1c2dac0 100644 --- a/unisex-names/unisex_names.R +++ b/unisex-names/unisex_names.R @@ -2,7 +2,7 @@ # June 10, 2015 # Andrew -setwd("~/data/unisex-names") # Change for your machine + require(dplyr) require(babynames)