ipfGroup: Creates groups based on the specified parameters

Description Usage Arguments Value Examples

Description

This function groups the data based on the specified variables and assigns an id to each group

Usage

1

Arguments

data

A data frame

...

Variables to group by. All variables (columns) will be used if no parameter is provided.

Value

A numeric vector with the ids of the groups, in the same order as they appear in the data provided.

Examples

1
2
3
4
5
    group <- ipfGroup(mtcars, cyl)

    group <- ipfGroup(mtcars, gear, carb)

    group <- ipfGroup(ipftrain, X, Y)

ipft documentation built on May 2, 2019, 7:23 a.m.

Related to ipfGroup in ipft...