metan (version 1.2.1)

is.split_factors: Check if an object is of class split_factors

Description

Functions to check if an object is of class split_factors

Usage

is.split_factors(x)

Arguments

x

The input data.

Value

A logical value TRUE or FALSE.

Details

A dataframe may be easily coerced to be split into named subsets based on each combination of factors existing in the original dataframe. For example, if the original data has two columns, namely ENV (four levels) and HIB (ten levels), and ten numeric columns, then using as.split_factors will split the data into 40 10-columns subsets, corresponding to each combination of ENV x HIB.

Examples

Run this code
# NOT RUN {
library(metan)
spdata = as.split_factors(iris)
is.split_factors(spdata)

# }

Run the code above in your browser using DataCamp Workspace