首页 > > 详细

辅导R编程、R语言讲解留学生、辅导R编程、R编程解析

Submission Is via google form. (time stamped) Due March 7th. You will submit your github user id and
the name of your repository.
https://goo.gl/forms/Er1LnwwQtUbKbPzr1(https://goo.gl/forms/Er1LnwwQtUbKbPzr1)
I will pull on the 8th from github, to receive credit it must be public and install directly using devtools
Question 1
Build a package template called BoyangHouTools
This should include the following:
• lastname_first_tools
• DESCRIPTION
• LISCENSE
• R/
• tests/
• man/
• vignettes/
• data/
• NAMESPACE
• Make sure to fill out the DESCRIPTION with your information
Question 2
Data
Add 3 data set from online as .rda file (document it using roxygen2) and devtools function to
generate the data.
Functions
Write the following functions and document them using roxygen2 as in lecture. (make sure the
package imports ggplot2, dplyr)
1. Write a wrapper for ggplot2 which has good defaults for plotting the data in your package.
2. Write a wrapper for acquiring marginals and other slices of your data in your package (at least
one function dplyr).
3. Add all the functions you have made in Quiz/Homework 1 and Quiz/Homework 2 to your
package. Make sure and document each function and provide examples.
4. Add unit tests for all functions.
Question 3
Re-write the vignette using your data (called internally). Plot the data in at least three different ways
using ggplot2 (make sure the package imports ggplot2, dplyr) Make your vignette very good (describe
and give examples for each function). Make good plots for the data. Think big!
Final steps
Upload to github, make sure it installs off of github.
Name: Boyang Hou

联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!