Useful Functions for Data Processing

[Up] [Top]

Documentation for package ‘baizer’ version 0.5.0

Help Pages

%neq% not equal calculation operator, support NA
%nin% not in calculation operator
adjacent_div expand a number vector according to the adjacent two numbers
alias_arg use aliases for function arguments
as_md_table trans a tibble into markdown format table
as_tibble_md trans a table in markdown format into tibble
atomic_expr whether the expression is an atomic one
c2r wrapper of tibble::column_to_rownames
cmdargs get the command line arguments
collapse_vector dump a named vector into character
correct_ratio correct the numbers to a target ratio
cross_count count two columns as a cross-tabulation table
detect_dup detect possible duplication in a vector, ignore case, blank and special character
diff_index the index of different character
empty_dir detect whether directory is empty recursively
empty_file detect whether file is empty recursively
expr_pileup pileup the subexpressions which is atomic
extract_kv extract key and values for a character vector
fancy_count fancy count to show an extended column
fetch_char fetch character from strings
filterC apply tbflt on dplyr filter
fix_to_regex trans fixed string into regular expression string
float_to_percent from float number to percent number
fps_vector farthest point sampling (FPS) for a vector
generate_ticks generate ticks for a number vector
gen_outlier generate outliers from a series of number
geom_mean geometric mean
group_vector group chracter vector by a regex pattern
hist_bins separate numeric x into bins
int_digits trans numbers to a fixed integer digit length if a number only have zeros
mini_diamond Minimal tibble dataset adjusted from diamond
move_row move selected rows to target location
nearest_tick the nearest ticks around a number
near_ticks the ticks near a number
number_fun_wrapper wrapper of the functions to process number string with prefix and suffix
ordered_slice slice a tibble by an ordered vector
percent_to_float from percent number to float number
pileup_logical pileup another logical vector on the TRUE values of first vector
pkginfo information of packages
pkglib load packages as a batch
pkgver versions of packages
pos_int_split split a positive integer number as a number vector
r2c wrapper of tibble::rownames_to_column
ref_level relevel a target column by another reference column
reg_join join the matched parts into string
reg_match regex match
remove_nacol remove columns by the ratio of NA
remove_narow remove rows by the ratio of NA
replace_item replace the items of one object by another
round_string from float number to fixed digits character
same_index the index of identical character
sftp_connect connection parameters to remote server via sftp
sftp_download download file from remote server via sftp
signif_ceiling signif while use ceiling
signif_floor signif while use floor
signif_round_string signif or round string depend on the character length
signif_string from float number to fixed significant digits character
sortf sort by a function
split_column split a column and return a longer tibble
split_path split a path into ancestor paths recursively
split_vector split vector into list
stat_fc fold change calculation which returns a extensible tibble
stat_test statistical test which returns a extensible tibble
tbflt create a tbflt object to save filter conditions
uniq only keep unique vector values and its names
write_excel write a tibble into an excel file