cutMy {GCDkit} | R Documentation |
Grouping the data according to the interval of a single numerical variable it falls into.
cutMy(where=NULL,int=NULL,int.lab=NULL,na.lab="Unclassified")
where |
Numeric data column in ' |
int |
Boundaries of intervals. |
int.lab |
Labels for the intervals |
na.lab |
Labels for samples that cannot be classified |
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
'.
groups |
character vector: the grouping information |
grouping |
If the new column was appended the data frame |
Vojtěch Janoušek, vojtech.janousek@geology.cz