This is the landing page for Jeff Bone's First Package. This package can be used to make basic manipulations to factors using 3 functions.
To install simply type:
#install.packages("FirstPackage") devtools::install_github("jeffbone/First-Package")
fbind is used to bind two factors together
#bind together basketball teams factor1 <- factor(c("Spurs","Warriors")) factor2 <- factor(c("Clippers","Thunder")) fbind(factor1,factor2)
freq_out creates a frequency table for factors.
x <- factor(c("a","b","c","a","b","c","a","a","b")) freq_out(x)
reorder_factor reorders the levels of a factor based on their frequency.
y <- factor(c("Jeff","Jeff","Jeff","Adrian","Gal","Gal")) y reorder_factor(y)
For more detailed examples and descriptions please see the Vignette.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.