This little helper returns a set of colors which we often use at STATWORX.
Day 14 – little helper print_fs
This little helper returns the folder structure of a given path. With this, one can for example add a nice overview to the documentation of a project or within a git.
Day 13 – little helper read_files
This little helper reads in multiple files of the same type and combines them into a data.table
.
Day 12 – little helper dive
This little helper is a debug function if you do not work with RStudio.
Day 11 – little helper trim
This little helper removes leading and trailing whitespaces from a string. With R version 3.5.1 trimws
was introduced, which does the exact same thing. This just shows, it was not a bad idea to write such a function.
Day 10 – little helper %nin%
This little helper is just a convenience function. It is simply the same as the negated %in%
operator, as you can see below. But in my opinion, it increases the readability of the code.
Day 09 – little helper object_size_in_env
This little helper shows a table with the size of each object in the given environment.
If you are in a situation where you have coded a lot and your environment is now quite messy, object_size_in_env
helps you to find the big fish with respect to memory usage.
Day 08 – little helper intersect2
This little helper returns the intersect of multiple vectors or lists. I found this function here, thought it is quite useful and adjusted it a bit to my liking.
Day 07 – little helper count_na
This little helper counts missing values within a vector.
Day 06 – little helper statusbar
This little helper prints a progress bar into the console for loops.