convertToFactors: converts variables of the data frame to factors

Description Usage Arguments Value Author(s) Examples

Description

the user specifies which variables he/she would like to consider as factors, the functions converts them to factors

Usage

1

Arguments

data

data frame

facs

vector with names of variables that the user would like to convert to factors

Value

returns the same data frame as in the input but with the specified variables converted to factors

Author(s)

Alexandra Kuznetsova

Examples

1
2
3
4
5
6
7
library(SensMixed)
data(ham)
str(ham)

ham <- convertToFactors(ham, c("Gender"))

str(ham)

alku86/SensMixed documentation built on May 10, 2019, 9:21 a.m.