tavareshugo / slcu_r_course

https://tavareshugo.github.io/slcu_r_course/
1 stars 0 forks source link

module01_feedback #11

Open gogleva opened 6 years ago

gogleva commented 6 years ago

24 participants (18 giving feedback)!

tavareshugo commented 6 years ago

A few more detailed comments and suggestions from Katie:

tavareshugo commented 6 years ago

To compensate for unclear session on R, could try and email a normal script with the few lines of code needed to read a CSV file.

Something like:

# Script to read data into R
# Any line starting with the # (hash symbol) is a comment - R "ignores" these lines

# First load all the libraries needed for this script
library(tidyverse)

# Check what the working directory is at the moment
#  this is what "folder" R is working from at the moment
getwd()

# Set working directory to the course materials folder
# Change this to be suitable to your situation
setwd("/home/hugo/Desktop/slcu_r_course/module01_data_and_files")

# Read the CSV file and store the table in an object called "my_surveys"
## In this case, the CSV file is located in the "course_data" folder
my_surveys <- read_csv("../course_data/dataset_tidy.csv")

# View the loaded table
View(my_surveys)
tavareshugo commented 6 years ago

Email participant mentioning the following: