Rdocumentation
powered by
Learn R Programming
⚠️
There's a newer version (1.0.0) of this package.
Take me there.
forcats
Copy Link
Link to current version
Version
Version
1.0.0
0.5.2
0.5.1
0.5.0
0.4.0
0.3.0
0.2.0
0.1.1
0.1.0
0.0.0.9000
Install
install.packages('forcats')
Monthly Downloads
725,835
Version
0.0.0.9000
License
GPL-3
Issues
23
Pull Requests
7
Stars
554
Forks
127
Repository
https://github.com/hadley/forcats
Maintainer
Hadley Wickham
Last Published
January 29th, 2023
Functions in forcats (0.0.0.9000)
Search all functions
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