R: Advanced Factor Manipulation Utilities

# Advanced Factor Manipulation Utilities

## Documentation for package ‘fctutils’ version 0.0.7

- DESCRIPTION file
- User guides, package vignettes and other documentation

## Help Pages

ft_apply | Apply a Function to Factor Levels
ft_char_freq | Reorder Factor Levels Based on Character Frequency at Positions
ft_collapse_lev | Collapse Factor Levels Based on Grouping
ft_combine | Combine Two Vectors of Unequal Lengths and Sort Based on Specified Levels
ft_concat | Concatenate Multiple Factor Vectors
ft_count | Reorder Factor Levels by Level Count
ft_decode | Decode Numeric Codes into Factor Levels
ft_dummy | Create Dummy Variables from Factor Levels
ft_duplicates | Flag Duplicate Factor Levels
ft_encode | Encode Factor Levels into Numeric Codes
ft_extract | Extract Substrings from Factor Levels
ft_factorize | Factorize Character Vectors with Consistent Levels
ft_filter_freq | Filter Factor Levels by Frequency and Recalculate Character Frequencies
ft_filter_func | Filter Factor Levels Using a Function
ft_filter_pos | Remove Factor Levels with Specific Characters at Specified Positions
ft_freq | Reorder Factor Levels Based on Character Frequency
ft_group_by_prefix | Group Factor Levels by Common Prefix
ft_impute | Impute Missing Values in Factor Vector
ft_insert | Insert New Levels into a Factor Vector After Specified Targets
ft_intersect | Get Intersection of Factor Levels from Multiple Vectors
ft_len | Sort Factor Levels Based on Their Length
ft_level_lengths | Get Character Lengths of Factor Levels
ft_level_order | Get Order of Factor Levels in Data
ft_level_stats | Calculate Statistics for Each Factor Level
ft_mapping | Create a Mapping Table of Original and Modified Factor Levels
ft_map_func | Map Factor Levels Using a Function
ft_merge | Merge Two Factors and Retain Unique Levels
ft_merge_similar | Merge Similar Factor Levels
ft_na | Handle NA Values in Factor Vectors
ft_pad_levels | Pad Factor Levels with Leading Characters
ft_pairs | Generate Pairwise Comparisons Between Elements in factor
ft_pos | Reorder Factor Levels Based on Characters at Specified Positions
ft_regex_freq | Reorder Factor Levels Based on Regex Pattern Frequency
ft_remove_levels | Remove Specified Levels from a Factor
ft_rename_levels | Rename Factor Levels Using Data Frame Mapping
ft_reorder_within | Reorder Factor Levels Within Groups
ft_replace | Replace a Factor Level and Optionally Insert at Specified Position
ft_replace_na | Replace NA Values in Factor Vector
ft_replace_pattern | Replace Parts of Factor Levels Based on a Pattern
ft_reverse | Reverse Factor Levels
ft_rollup | Aggregate Factor Levels Based on Grouping
ft_sample_levels | Sample Levels from a Factor Vector
ft_sort | Sort Factor Levels Based on Another Vector or Column
ft_sort_custom | Sort Factor Levels Using a Custom Function
ft_split | Split Factor Levels and Reorder Based on Specified Criteria
ft_split_levels | Split Factor Levels into Multiple Factors
ft_sub | Reorder Factor Levels Based on Substrings
ft_substr_freq | Reorder Factor Levels Based on Substring Frequency
ft_table | Count Character Frequencies in Factor Levels (Including NA Handling)
ft_union | Get Union of Factor Levels from Multiple Vectors
ft_unique_comb | Create Factor of Unique Combinations from Multiple Factors