row.freq: Row Frequency

Description Usage Arguments Value Examples

View source: R/row.freq.R

Description

Row Frequency

Usage

1

Arguments

x

dataframe or matrix

Value

data with frequency column

Examples

1
row.freq(x=mtcars[,8:11])

Example output

                  vs am gear carb Freq
Mazda RX4          0  1    4    4    2
Datsun 710         1  1    4    1    4
Hornet 4 Drive     1  0    3    1    3
Hornet Sportabout  0  0    3    2    4
Duster 360         0  0    3    4    5
Merc 240D          1  0    4    2    2
Merc 280           1  0    4    4    2
Merc 450SE         0  0    3    3    3
Honda Civic        1  1    4    2    2
Porsche 914-2      0  1    5    2    1
Lotus Europa       1  1    5    2    1
Ford Pantera L     0  1    5    4    1
Ferrari Dino       0  1    5    6    1
Maserati Bora      0  1    5    8    1

do documentation built on July 16, 2021, 9:08 a.m.