burtTable: Creates Burt Matrix

Description Usage Arguments See Also Examples

Description

Utility function to produce a Burt matrix out of a data-frame.

Usage

1

Arguments

data

Data frame to be converted.

See Also

expandFrame, mkIndiList

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## sleeping bags
data(sleeping)
sleeping_cat <- sleeping
temp_cat <- cut(sleeping$Temperature, c(-20, -1, 7), labels = c("warm", "cold")) 
sleeping_cat$Temperature <- temp_cat
weight_cat <- cut(sleeping$Weight, c(700, 1100, 2200), labels = c("light", "heavy")) 
sleeping_cat$Weight <- weight_cat
price_cat <- cut(sleeping$Price, c(100, 250, 350, 700), 
labels = c("cheap", "medium", "expensive"))  
sleeping_cat$Price <- price_cat
sleeping_cat
burtTable(sleeping_cat)

anacor documentation built on May 2, 2019, 9:33 a.m.