This Package is built for Homework8 of STAT547 course to explore the process of building an R package using devtools()
. The primary skeleton of this package is from Write your own R Package hands on activity, and the aim as it's mentioned in Homework8 description is to add more functionality and testing to foofactors()
initial package.
There work flow of the building a package is well described in Jenny's Write your own R package, also I have put my understandings and work flow in a readme.rmd
for homework8
Here.
install.packages("devtools")
library(devtools)
devtools::install_github("gjahesh/foofactors")
devtools::library(foofactors)
- Rscripts for functions are in
R
folder - Tests for functions are in the
test
folder - Documentation could be found in DESCRIPTION file and
vignette
folder - You could always look at the help file by typing
?function name
example:?fgap_coefs
-
fbind()
examplefbind(iris$Species[c(1, 51, 101)], PlantGrowth$group[c(1, 11, 21)])
-
freq_out()
example
freq_out(iris$Species)
fgap_coefs()
example
fgap_rw(gapminder::gapminder)
fgap_rw()
example
fgap_rw(gapminder::gapminder)