Tools for Cleaning Up Messy Files


[Up] [Top]

Documentation for package ‘thinkr’ version 0.15

Help Pages

%ni% not in
.efface_test delete .test file in testthat folder
all_ggplot_to_pptx Save all ggplot in a pptx
as_mon_numeric transform a vector into numeric
clean_levels Clean levels label
clean_names clean_names
clean_vec Clean character vector
dput_levels return R instruction to create levels
excel_col return all excel column name
excel_to_ncol return excel column position number from a column name
find_name find pattern in name's dataset
from_excel_to_posixt transform the excel numeric date format into POSIXct
gsub2 like gsub but keep a factor as factor
is.01 does this vector only contains 0 and 1
is.12 does this vector only contains 1 and 2
is_full_figures Predicate for charater vector full of figures
is_full_na Predicate for full NA vector
is_likert is a factor a likert scale
look_like_a_number return TRUE if this look like a number
make_unique make.unique improvement
ncol_to_excel return excel column name from a position number
peep peep the pipeline
replace_pattern Replace pattern everywhere in a data.frame
save_as_csv export a data.frame to csv
set_col_type set a given coltype to each column in a data.frame