Repetitive code expressions exist. While we cannot make them disappear completely, we can wrap 'em into functions.
Useful functions with a long name also exist. Well.. we can make these shorter too.
This is the purpose of typeless - make common code shorter, type less.
Overall there are currently 7 functions for type conversion.
For objects:
shorthand for as.data.frame and as.matrix
For variables:
Theses are shorthand for as.character, as.numeric, as.factor, as.integer and as.logical, respectively.
currently there are 3 functions to extract metadata of data.frames:
cn for colnames, rn for row.names. nas counts the number of NA values in each column of the data.frame.
dvf: divide and format function (specify the decimal points of the divison result)
simp: simle imputation function with naive methods
mod: extract the most frequently appearing value in a vector
pf: convert fractions into percents
cf: display numbers with comma format
convert_unix: convert unix time into a timedate object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.