Learn R Programming

Zelig (version 5.1.7)

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