Learn R Programming

volker (version 2.1.0)

.factor_with_attr: Create a factor vector and preserve all attributes

Description

Create a factor vector and preserve all attributes

Usage

.factor_with_attr(x, levels = NULL)

Value

A factor vector with the new levels

Arguments

x

The source value, usually a character vector

levels

The new levels