Skip to main content
United States
Jump To
Support
Register or Log In
Support
Register or Log In
Instructors
Browse Products
Getting Started
Students
Browse Products
Getting Started
Return to Research Methods Using R 1e Student Resources
Chapter 19 Multiple choice questions
Quiz Content
*
not completed
.
Which line of code is most easily understood by someone other than the original programmer?
sl <- 1:10
correct
incorrect
stimuluslevels <- 1:10
correct
incorrect
sl <- 1:10 # store all of the stimulus levels
correct
incorrect
stimuluslevels <- 1:10 # store all of the stimulus levels
correct
incorrect
*
not completed
.
Before committing code changes to GitHub, what do you need to do?
stage
the changes
correct
incorrect
pull
the changes
correct
incorrect
push
the changes
correct
incorrect
Delete the original code in the repository
correct
incorrect
*
not completed
.
Which object name is written in Dromedary case?
dataaboutcamels
correct
incorrect
dataAboutCamels
correct
incorrect
DataAboutCamels
correct
incorrect
Dataaboutcamels
correct
incorrect
*
not completed
.
Which of the following DOI numbers links to a publicly available data set? (You can use the website dx.doi.org to resolve them)
10.1037/met0000337
correct
incorrect
10.2871/433783
correct
incorrect
10.17605/OSF.IO/E62WU
correct
incorrect
10.1371/journal.pcbi.1009507.g002
correct
incorrect
*
not completed
.
Install the
osfr
package as described on page 309. Retrieve details of the node
ebhnk
using the
osf_retrieve_node
function, and list its subnodes with
osf_ls_nodes
function. How many sub-nodes are there? (Note you do not need to set up an authentication token to access public files).
1
correct
incorrect
3
correct
incorrect
10
correct
incorrect
15
correct
incorrect
*
not completed
.
Download the list of files for the 6
th
node, entitled "EEG: event-related potentials". What is the name of the figure in this node?
Figure5.pdf
correct
incorrect
Figure10.pdf
correct
incorrect
Figure1.jpg
correct
incorrect
Figure7.png
correct
incorrect
*
not completed
.
Use the
osf_download
function to download the file
powercontoursERP.R
. Open the script. How many lines does it contain?
312
correct
incorrect
457
correct
incorrect
519
correct
incorrect
697
correct
incorrect
*
not completed
.
Install the
hdf5r
package and look at the documentation. Which line of code would use to create a new hdf5 format file?
writeHDF5(filename)
correct
incorrect
H5File$new(filename, mode="w")
correct
incorrect
H5File$new(filename, mode="r+")
correct
incorrect
write.hdf(filename)
correct
incorrect
*
not completed
.
How could you reduce the file size of some data stored in csv format?
Remove all commas in the file
correct
incorrect
Encrypt the data using a public key
correct
incorrect
Use a proprietary data format instead
correct
incorrect
Use zip or gzip to compress the file
correct
incorrect
*
not completed
.
Which of the following would NOT typically be stored in a metadata file:
Information about the conditions in an experiment
correct
incorrect
Information about the equipment used to collect the data
correct
incorrect
Personal details of the participants in the experiment
correct
incorrect
Licensing and sharing information for the data set
correct
incorrect
Previous Question
Submit Quiz
Next Question
Reset
Exit Quiz
Review all Questions
Submit Quiz
Are you sure?
You have some unanswered questions. Do you really want to submit?
Back to top
Printed from , all rights reserved. © Oxford University Press, 2024
Select your Country