knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
This is a practice package for STAT545 course. The foofactors package has a three cool functions to make working with factors easier and fun. Look at the "Usage" section below or the vignette for examples.
install_github("KPdir/foofactors")
library(foofactors)
Exmaple use of fbind
fbind(iris$Species[c(1, 51, 101)], PlantGrowth$group[c(1, 11, 21)])
Exmaple use of freq_out
freq_out(iris$Species)
Exmaple use of splitlevel
x <- data.frame(first = c(1:6), second = rep(c("A","B"), each = 3), third = rep_len(c("W","X","Y","Z"), 6)) splitlevel(x,"second","A","third", "callitwhatyouwant")
ENJOY!!!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.