Set new value of a factor variable, checking for existing levels

Share:

Description

Set new value of a factor variable, checking for existing levels

Usage

1
setfactor(fv, v)

Arguments

fv

factor variable

v

value

Value

a factor variable with a value val and the same levels

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.