setFVar: Set Factor Variable

View source: R/setFactorVariable.R

setFVarR Documentation

Set Factor Variable

Description

This function just assigns a factor in the dataset to a variable to be used within a function. If no factor name is specified in the function call, it will choose the dataset's active factor.

Usage

setFVar(dataset, factor_name = NULL)

Arguments

dataset

Microvis dataset (mvdata object)

factor_name

(Optional) Name of the desired factor

Value

Factor variable (a list object) with its name, groups, subsetted groups, and print-friendly name (spaces instead of underscores)


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