Learn R Programming

Zelig (version 5.0-13)

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

Description

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

Usage

setfactor(fv, v)

Arguments

fv
factor variable
v
value

Value

a factor variable with a value val and the same levels