char2fact: Character to factor

Description Usage Arguments

View source: R/char2fact.R

Description

Converts characters to factors

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
char2fact(x, n = 5)

## Default S3 method:
char2fact(x, n = 5)

## S3 method for class 'character'
char2fact(x, n = 5)

## S3 method for class 'factor'
char2fact(x, n = 5)

## S3 method for class 'data.frame'
char2fact(x, n = 5)

Arguments

x

A vector of characters

n

The limit to the number of unique values for the factor


mark documentation built on Sept. 18, 2021, 5:07 p.m.