addstates: Add State ids and classes

Description Usage Arguments Value Examples

View source: R/addstates.R

Description

Add State ids and classes

Usage

1

Arguments

df

a dataframe with two variables, winners and losers

Value

the df with two extra rows containing state id and class

Examples

1
2
3
4
df<-data.frame(winner=c(1,2,3,1,2,3,2,1,2,3,3,1,2,3,4,3,1,3,2,1,1,1,1,2,2),
loser=c(2,4,4,4,3,2,1,3,3,4,4,2,3,2,3,4,2,4,3,3,3,2,2,4,3)
)
addstates(df)

jalapic/hierformR documentation built on May 18, 2019, 11:18 a.m.