Learn R Programming

sasLM (version 0.10.5)

af: Convert some columns of a data.frame to factors

Description

Conveniently convert some columns of data.frame into factors.

Usage

af(DataFrame, Cols)

Value

Returns a data.frame with converted columns.

Arguments

DataFrame

a data.frame

Cols

column names or indices to be converted

Author

Kyun-Seop Bae k@acr.kr

Details

It performs conversion of some columns in a data.frame into factors conveniently.