cutMy {GCDkit}R Documentation

Groups by numerical variable

Description

Grouping the data according to the interval of a single numerical variable it falls into.

Usage

cutMy(where=NULL,int=NULL,int.lab=NULL,na.lab="Unclassified")

Arguments

where

Numeric data column in 'WR' - the basis of the classification.

int

Boundaries of intervals.

int.lab

Labels for the intervals

na.lab

Labels for samples that cannot be classified

Details

The numeric data column is selected using the function 'selectColumnLabel'.

After this is done, the user is prompted to enter a comma-delimited list or at least one break point defining the intervals. The default includes the mean, that will be automatically supplemented by minimum and maximum (i.e. two intervals).

Then the names of the individual groups are to be specified; values out of range are automatically labeled as 'Unclassified'. The vector containing the information on the current groups can be appended to the data frame 'labels'.

Value

groups

character vector: the grouping information

grouping

If the new column was appended the data frame labels, sequence number of this column; if not appended, though, this variable is set to -100.

Author(s)

Vojtěch Janoušek, vojtech.janousek@geology.cz

See Also

cut


[Package GCDkit version 6.1 Index]