wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

A_Digital_Methods_2019

Total questions: 10

Worksheet time: 10mins

Name
Class
Date
1.

What is an absolute path?

a)

C:/users/me/Desktop/DigitalMethods/data/SAFI_clean.csv

b)

data/SAFI_clean.csv

c)

https://ndownloader.figshare.com/files/11492171

2.

Which one will create a new object called interviews?

a)

interviews[interviews =="yes"]

b)

create.dir(interviews)

c)

interviews <- c(1,2,3)

3.

What does getwd() do in R?

a)

Lists the contents of the current directory

b)

Displays the path to your current working directory

c)

Sets the working space to the current directory

4.

What is the data type of the object

interviews <- c(1, "a", TRUE, "TRUE")

a)

Numeric

b)

Character

c)

Logical

5.

What will the following command rooms[!is.na(rooms)] do?

a)

Extract those elements of rooms which are not missing values

b)

Extract those elements of rooms which contain missing values

c)

Create a rooms object without missing values.

6.

How should you properly name your digital objects?

a)

My_beautiful_object

b)

my.beautiful.object

c)

My beautiful object

d)

My beaut#i.fu.l 9b-ject

e)

MyBeautifulObject

7.

What is a CSV file?

a)

Proprietary file format produced by RStudio

b)

Weird version of my excel spreadsheet

c)

Comma Separated Value file

d)

Tab Separated value file

8.

How will R read the following?


round()

a)

As a Vector

b)

As a Function

c)

As a Subset of an Object

d)

As a Plot

9.

How do you install the tidyverse package in R?

a)

install.tidyverse()

b)

library(tidyverse)

c)

install.packages("tidyverse")

d)

package("tidyverse")

10.

What does the following code do:

read_csv("data/SAFI_clean.csv")

a)

Creates the new SAFI_clean.csv in the data folder

b)

Deletes the SAFI_clean.csv in the data folder

c)

Loads SAFI_clean.csv to R Studio with ephemeral output

d)

Creates a new object called SAFI_clean in R Studio environment.