knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

Introduction

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.

Installation:

install_github("KPdir/foofactors")

Load in R:

library(foofactors)

Usage

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!!!



KPdir/foofactors documentation built on May 8, 2019, 4:41 p.m.