Advanced Factor Manipulation Utilities


[Up] [Top]

Documentation for package ‘fctutils’ version 0.0.6

Help Pages

fct_apply Apply a Function to Factor Levels
fct_char_freq Reorder Factor Levels Based on Character Frequency at Positions
fct_collapse_lev Collapse Factor Levels Based on Grouping
fct_combine Combine Two Vectors of Unequal Lengths and Sort Based on Specified Levels
fct_concat Concatenate Multiple Factor Vectors
fct_count Reorder Factor Levels by Level Count
fct_decode Decode Numeric Codes into Factor Levels
fct_dummy Create Dummy Variables from Factor Levels
fct_duplicates Flag Duplicate Factor Levels
fct_encode Encode Factor Levels into Numeric Codes
fct_extract Extract Substrings from Factor Levels
fct_factorize Factorize Character Vectors with Consistent Levels
fct_filter_freq Filter Factor Levels by Frequency and Recalculate Character Frequencies
fct_filter_func Filter Factor Levels Using a Function
fct_filter_pos Remove Factor Levels with Specific Characters at Specified Positions
fct_freq Reorder Factor Levels Based on Character Frequency
fct_group_by_prefix Group Factor Levels by Common Prefix
fct_impute Impute Missing Values in Factor Vector
fct_insert Insert New Levels into a Factor Vector After Specified Targets
fct_intersect Get Intersection of Factor Levels from Multiple Vectors
fct_len Sort Factor Levels Based on Their Length
fct_level_lengths Get Character Lengths of Factor Levels
fct_level_order Get Order of Factor Levels in Data
fct_level_stats Calculate Statistics for Each Factor Level
fct_mapping Create a Mapping Table of Original and Modified Factor Levels
fct_map_func Map Factor Levels Using a Function
fct_merge Merge Two Factors and Retain Unique Levels
fct_merge_similar Merge Similar Factor Levels
fct_na Handle NA Values in Factor Vectors
fct_pad_levels Pad Factor Levels with Leading Characters
fct_pattern_replace Replace Patterns in Factor Levels
fct_pos Reorder Factor Levels Based on Characters at Specified Positions
fct_regex_freq Reorder Factor Levels Based on Regex Pattern Frequency
fct_remove_levels Remove Specified Levels from a Factor
fct_rename_levels Rename Factor Levels Using Data Frame Mapping
fct_reorder_within Reorder Factor Levels Within Groups
fct_replace Replace a Factor Level and Optionally Insert at Specified Position
fct_replace_na Replace NA Values in Factor Vector
fct_replace_pattern Replace Parts of Factor Levels Based on a Pattern
fct_reverse Reverse Factor Levels
fct_rollup Aggregate Factor Levels Based on Grouping
fct_sample_levels Sample Levels from a Factor Vector
fct_sort Sort Factor Levels Based on Another Vector or Column
fct_sort_custom Sort Factor Levels Using a Custom Function
fct_split Split Factor Levels and Reorder Based on Specified Criteria
fct_split_levels Split Factor Levels into Multiple Factors
fct_sub Reorder Factor Levels Based on Substrings
fct_substr_freq Reorder Factor Levels Based on Substring Frequency
fct_table Count Character Frequencies in Factor Levels (Including NA Handling)
fct_union Get Union of Factor Levels from Multiple Vectors
fct_unique_comb Create Factor of Unique Combinations from Multiple Factors