Skip to contents

The conversion is done by converting to characters, then a factor and then integer

Usage

df2intmat(x)

Arguments

x

Data frame

Examples

x <- mtcars[1:4, 1:5]
x
#>                 mpg cyl disp  hp drat
#> Mazda RX4      21.0   6  160 110 3.90
#> Mazda RX4 Wag  21.0   6  160 110 3.90
#> Datsun 710     22.8   4  108  93 3.85
#> Hornet 4 Drive 21.4   6  258 110 3.08
df2intmat(x)
#> Error in df2intmat(x): could not find function "df2intmat"