Learn R Programming

⚠️There's a newer version (1.0.0) of this package.Take me there.

forcats

Copy Link

Version

Install

install.packages('forcats')

Monthly Downloads

725,835

Version

0.0.0.9000

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

January 29th, 2023

Functions in forcats (0.0.0.9000)

fct_reorder

Reorder the levels of a function according to another variable
fct_recode

Change the levels of a factor
fct_inorder

Reorders levels in order of first appearance or frequency.
fct_drop

Drop unnused levels
fct_relevel

Change the order of levels in a factor
fct_collapse

Collapse factors into groups.
fct_c

Concatenate factors, unioning levels.
fct_rev

Reverse the levels of a factor
fct_unify

Unify the levels in a list of factors
lvl_union

Find all levels in a list of factors
fct_shuffle

Randomly permute the levels of a factor
lvls_union

Find all levels in a list of factors
lvls

Low-level functions for manipulating levels
fct_count

Count entries in a factor
fct_shift

Shift the order of levels of a factor
fct_unique

Unique values of a factor
fct_lump

Lump together least/most common levels into "other".
%>%

Pipe operator
fct_explicit_na

Make missing values explicit
fct_expand

Add additional levels to a factor
gss_cat

A sample of categorical variables from the General Social survey
fct_anon

Anonymise factor levels