Package: fctutils 0.0.8

fctutils: Advanced Factor Manipulation Utilities

Provides a collection of utility functions for manipulating and analyzing factor vectors in R. It offers tools for filtering, splitting, combining, and reordering factor levels based on various criteria. The package is designed to simplify common tasks in categorical data analysis, making it easier to work with factors in a flexible and efficient manner.

Authors:Kai Guo [aut, cre]

fctutils_0.0.8.tar.gz
fctutils_0.0.8.zip(r-4.5)fctutils_0.0.8.zip(r-4.4)fctutils_0.0.8.zip(r-4.3)
fctutils_0.0.8.tgz(r-4.4-any)fctutils_0.0.8.tgz(r-4.3-any)
fctutils_0.0.8.tar.gz(r-4.5-noble)fctutils_0.0.8.tar.gz(r-4.4-noble)
fctutils_0.0.8.tgz(r-4.4-emscripten)fctutils_0.0.8.tgz(r-4.3-emscripten)
fctutils.pdf |fctutils.html
fctutils/json (API)

# Install 'fctutils' in R:
install.packages('fctutils', repos = c('https://guokai8.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/guokai8/fctutils/issues

On CRAN:

4.60 score 2 stars 4 scripts 187 downloads 52 exports 9 dependencies

Last updated 1 months agofrom:18ac7c6cf3. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 08 2024
R-4.5-winNOTENov 08 2024
R-4.5-linuxNOTENov 08 2024
R-4.4-winNOTENov 08 2024
R-4.4-macNOTENov 08 2024
R-4.3-winNOTENov 08 2024
R-4.3-macNOTENov 08 2024

Exports:ft_applyft_char_freqft_collapse_levft_combineft_concatft_countft_decodeft_dummyft_duplicatesft_encodeft_extractft_factorizeft_filter_freqft_filter_funcft_filter_posft_freqft_group_by_prefixft_imputeft_insertft_intersectft_lenft_level_lengthsft_level_orderft_level_statsft_map_funcft_mappingft_mergeft_merge_similarft_naft_pad_levelsft_pairsft_pattern_replaceft_posft_regex_freqft_remove_levelsft_rename_levelsft_reorder_withinft_replaceft_replace_naft_replace_patternft_reverseft_rollupft_sample_levelsft_sortft_sort_customft_splitft_split_levelsft_subft_substr_freqft_tableft_unionft_unique_comb

Dependencies:cligluelifecyclemagrittrrlangstringdiststringistringrvctrs

fctutils: Advanced Factor Manipulation Utilities

Rendered fromfctutils.Rmdusingknitr::knitron Nov 08 2024.

Last update: 2024-09-30
Started: 2024-09-19

Readme and manuals

Help Manual

Help pageTopics
Apply a Function to Factor Levelsft_apply
Reorder Factor Levels Based on Character Frequency at Positionsft_char_freq
Collapse Factor Levels Based on Groupingft_collapse_lev
Combine Two Vectors of Unequal Lengths and Sort Based on Specified Levelsft_combine
Concatenate Multiple Factor Vectorsft_concat
Reorder Factor Levels by Level Countft_count
Decode Numeric Codes into Factor Levelsft_decode
Create Dummy Variables from Factor Levelsft_dummy
Flag Duplicate Factor Levelsft_duplicates
Encode Factor Levels into Numeric Codesft_encode
Extract Substrings from Factor Levelsft_extract
Factorize Character Vectors with Consistent Levelsft_factorize
Filter Factor Levels by Frequency and Recalculate Character Frequenciesft_filter_freq
Filter Factor Levels Using a Functionft_filter_func
Remove Factor Levels with Specific Characters at Specified Positionsft_filter_pos
Reorder Factor Levels Based on Character Frequencyft_freq
Group Factor Levels by Common Prefixft_group_by_prefix
Impute Missing Values in Factor Vectorft_impute
Insert New Levels into a Factor Vector at Specified Positionsft_insert
Get Intersection of Factor Levels from Multiple Vectorsft_intersect
Sort Factor Levels Based on Their Lengthft_len
Get Character Lengths of Factor Levelsft_level_lengths
Get Order of Factor Levels in Dataft_level_order
Calculate Statistics for Each Factor Levelft_level_stats
Map Factor Levels Using a Functionft_map_func
Create a Mapping Table of Original and Modified Factor Levelsft_mapping
Merge Two Factors and Retain Unique Levelsft_merge
Merge Similar Factor Levelsft_merge_similar
Handle NA Values in Factor Vectorsft_na
Pad Factor Levels with Leading Charactersft_pad_levels
Generate Pairwise Comparisons Between Elements in factorft_pairs
Reorder Factor Levels Based on Characters at Specified Positionsft_pos
Reorder Factor Levels Based on Regex Pattern Frequencyft_regex_freq
Remove Specified Levels from a Factorft_remove_levels
Rename Factor Levels Using Data Frame Mappingft_rename_levels
Reorder Factor Levels Within Groupsft_reorder_within
Replace a Factor Level and Optionally Insert at Specified Positionft_replace
Replace NA Values in Factor Vectorft_replace_na
Replace Parts of Factor Levels Based on a Patternft_replace_pattern
Reverse Factor Levelsft_reverse
Aggregate Factor Levels Based on Groupingft_rollup
Sample Levels from a Factor Vectorft_sample_levels
Sort Factor Levels Based on Another Vector or Columnft_sort
Sort Factor Levels Using a Custom Functionft_sort_custom
Split Factor Levels and Reorder Based on Specified Criteriaft_split
Split Factor Levels into Multiple Factorsft_split_levels
Reorder Factor Levels Based on Substringsft_sub
Reorder Factor Levels Based on Substring Frequencyft_substr_freq
Count Character Frequencies in Factor Levels (Including NA Handling)ft_table
Get Union of Factor Levels from Multiple Vectorsft_union
Create Factor of Unique Combinations from Multiple Factorsft_unique_comb