validFactor: Factor Validation

View source: R/changeFactor.R

validFactorR Documentation

Factor Validation

Description

Function for checking factors to make sure they are valid for analysis. If the currently active factor only has 1 group, a new active factor will be chosen.

Usage

validFactor(dataset, factor_name = NULL)

Arguments

dataset

MicroVis dataset (mvdata object)

factor

Candidate factor to switch to.

Value

Dataset with a new active factor.


microresearcher/MicroVis documentation built on Feb. 8, 2024, 10:59 a.m.