Skip to content

sethiyap/TidyWrappers

 
 

Repository files navigation

TidyWrappers

Aim of TidyWrappers is to provide handy wrapper functions to deal with tbl object.

Examples

## count variables having all values are 0 in a tbl. 
tbl_count_zero_vars()

## remove variables having all values are 0 in a tbl.
tbl_remove_zero_vars()

## get variables (names) having all values are 0 in a tbl.
tbl_get_zero_vars()

## get records (rows) having all values are 0 in a tbl.
tbl_get_zero_records()

## remove records (rows) having all values are 0 in a tbl.
tbl_remove_zero_records()

# apply log2 on numeric variables.
tbl_convert_log2()

# apply log10 on numeric variables.
tbl_convert_log10()

# apply log to defined base on numeric variables.
tbl_convert_log()

# replace numeric values greater than given cutoff.
tbl_replace_greater_than()

#replace numeric values greater than or equal to given cutoff.
tbl_replace_greater_than_or_equal()

#replace numeric values less than given cutoff.
tbl_replace_less_than()

#replace numeric values less than or equal given cutoff.
tbl_replace_less_than_or_equal()

## convert numeric records (rows) to zscore value. 
tbl_convert_row_zscore()

## convert numeric vars (columns) to zscore value.
tbl_convert_column_zscore()

## remove records with less than or equal cutoff in any one of the numeric var (column).
tbl_remove_less_than_or_equal_any()

## remove records with less than or equal cutoff in all numeric var (column).
tbl_remove_less_than_or_equal_all()

## remove records with greater than or equal cutoff in any numeric var (column).
tbl_remove_greater_than_or_equal_any()

## remove records with greater than or equal cutoff in all numeric var (column).
tbl_remove_greater_than_or_equal_all()

## keep records with less than or equal cutoff in any numeric var (column).
tbl_keep_less_than_or_equal_any()

## keep records with less than or equal cutoff in all numeric var (column).
tbl_keep_less_than_or_equal_all()

## keep records with greater than or equal cutoff in any numeric var (column).
tbl_keep_greater_than_or_equal_any()

## keep records with greater than or equal cutoff in all numeric var (column).
tbl_keep_greater_than_or_equal_all()

About

No description, website, or topics provided.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%