Reproducible Research Course by Eric C. Anderson for (NOAA/SWFSC)


Problems to be done for “Trial Homework”

These are just four fairly basic homework problems to do with indexing. The main focus of this homework is getting all the GitHub logistics worked out.

Good luck with this. I recommend working in groups and helping each other out.

Instructions For completing this homework can be found HERE

Trial Homework, #1: “word-comps”

# here are some github names of people taking the course
gnames <- c("cpetrik", "wildflowermt", "mad4mocha", "sjohnson216", "okisutch99", "sczTWilliams", "rbeas", "mtarjan", "aaronmams", "lslefebvre")

# return a logical vector that gives TRUE for each name that comes after
# the word "github" alphabetically
submit_answer({
  
})

Trial Homework, #2: “word-comp-extract”

# here are some github names
gnames <- c("cpetrik", "wildflowermt", "mad4mocha", "sjohnson216", "okisutch99", "sczTWilliams", "rbeas", "mtarjan", "aaronmams", "lslefebvre")

# return all the values of gname that come after
# the word "github" alphabetically
submit_answer({
  
})

Trial Homework, #3: “word-comp-alter”

# here are some github names
gnames <- c("cpetrik", "wildflowermt", "mad4mocha", "sjohnson216", "okisutch99", "sczTWilliams", "rbeas", "mtarjan", "aaronmams", "lslefebvre")

# change all the values of gname that come after the word
# "github" alphabetically to "zzzz" and return the resulting
# gname vector
submit_answer({

})

Trial Homework, #4: “two-vec-operations”

set.seed(5) # set random number generator
# here are some github names
gnames <- c("cpetrik", "wildflowermt", "mad4mocha", "sjohnson216", "okisutch99", "sczTWilliams", "rbeas", "mtarjan", "aaronmams", "lslefebvre")
# here is the simulated order in which they signed up for GitHub
ords <- sample(length(gnames))

# return the first 4 github names that were signed up
submit_answer({

})

comments powered by Disqus