WorksheetsA_Digital_Methods_2019
Total questions: 10
Worksheet time: 10mins
What is an absolute path?
C:/users/me/Desktop/DigitalMethods/data/SAFI_clean.csv
data/SAFI_clean.csv
https://ndownloader.figshare.com/files/11492171
Which one will create a new object called interviews?
interviews[interviews =="yes"]
create.dir(interviews)
interviews <- c(1,2,3)
What does getwd() do in R?
Lists the contents of the current directory
Displays the path to your current working directory
Sets the working space to the current directory
What is the data type of the object
interviews <- c(1, "a", TRUE, "TRUE")
Numeric
Character
Logical
What will the following command rooms[!is.na(rooms)] do?
Extract those elements of rooms which are not missing values
Extract those elements of rooms which contain missing values
Create a rooms object without missing values.
How should you properly name your digital objects?
My_beautiful_object
my.beautiful.object
My beautiful object
My beaut#i.fu.l 9b-ject
MyBeautifulObject
What is a CSV file?
Proprietary file format produced by RStudio
Weird version of my excel spreadsheet
Comma Separated Value file
Tab Separated value file
How will R read the following?
round()
As a Vector
As a Function
As a Subset of an Object
As a Plot
How do you install the tidyverse package in R?
install.tidyverse()
library(tidyverse)
install.packages("tidyverse")
package("tidyverse")
What does the following code do:
read_csv("data/SAFI_clean.csv")
Creates the new SAFI_clean.csv in the data folder
Deletes the SAFI_clean.csv in the data folder
Loads SAFI_clean.csv to R Studio with ephemeral output
Creates a new object called SAFI_clean in R Studio environment.
