Contains some of my R codes

addr | Alias for 'pryr::address' |

archF | Moves the file to a proper archive/ subdir |

assertDTcols | Asserts that colnames(dt) equals cols |

assocKvs | Puts all key/value mapping pairs into m. |

bindDTs | Binds the data.table arguments into one data.table,... |

brewerTheme | Custom pleasant theme from:... |

catimela | 'cat's (logs) time elapsed for expr to evaluate. |

chatty | Debug wrapper generator. Returns a diagnostic wrapper around... |

createEnvMap | Creates an env using the enumerated collection of key/value... |

createListMap | Creates a list using the enumerated collection of key/value... |

doCall | Works like 'do.call' but optionaly removes all NULL args. |

dotEvery | Returns a a decorator of f that prints . every n. |

ensureF | Ensures that either file argument or its archived version... |

epsiEqual | Returns TRUE iff |x - y| <= e |

forDT | Executes f for every row of dt |

getDTcolsMatching | Returns a set of dt columns c such that match predicate pred... |

grapes-equals-e12-grapes | Returns TRUE iff |x - y| <= 1e-12. |

grapes-equals-e16-grapes | Returns TRUE iff |x - y| <= 1e-16. |

grapes-equals-e1-grapes | Returns TRUE iff |x - y| <= 0.1. |

grapes-equals-e2-grapes | Returns TRUE iff |x - y| <= 0.01. |

grapes-equals-e3-grapes | Returns TRUE iff |x - y| <= 0.001. |

grapes-equals-e4-grapes | Returns TRUE iff |x - y| <= 1e-4. |

grapes-equals-e5-grapes | Returns TRUE iff |x - y| <= 1e-5. |

grapes-equals-e6-grapes | Returns TRUE iff |x - y| <= 1e-6. |

grapes-equals-e7-grapes | Returns TRUE iff |x - y| <= 1e-7. |

grapes-equals-e8-grapes | Returns TRUE iff |x - y| <= 1e-8. |

grapes-equals-e9-grapes | Returns TRUE iff |x - y| <= 1e-9. |

grapes-equals-NA-grapes | Works like == but for NA == NA returns TRUE and not NA (like... |

grapes-or-grapes | Defaults for NULL values. |

hasDTcols | Checks if cols are valid colnames(dt) |

latexTheme | Theme compatible with LaTeX as much as possible. |

listDiscard | Removes (discards) elements in list l for which p is TRUE. |

listKeep | Keeps elements in list l for which p is TRUE. |

mapDT | Maps f over each singleton data.tables representing the rows... |

memuse | Alias for 'pryr::mem_used' |

modes | Returns a data.table of mode values, together with their... |

mostFrequent | Returns a data.table of n most frequent elements in vector x... |

moveDTcols | Uses 'moveNames' to set a new column ordering (destructive on... |

moveNames | Thanks to:... |

osize | Alias for 'pryr::object_size' |

overDT | Sets data.table's new value of a column to a value of a... |

partition | Splits xs into partitions of length n, thanks to... |

printCondition | Condition handler generator. 'printCondition' returns a... |

qbench | Alias for 'microbenchmark::microbenchmark' |

rgc | Execute gc multiple times. 'rgc' Calls gc() n times, 1 when n... |

savingPlot | Saves a plot using a graphics device and returns the plot. |

setDT | Sets data.table's column value to value and returns the... |

setDTcolorder | Sets columns ordering in dt |

settingClass | Sets class(x) to c and returns x. |

stampString | Returns a timestamp string with the tzone appended. |

strInsertAfterIndex | Inserts what after a non-negative index i in string s.... |

strInsertBeforeIndex | Inserts what before positive index i in string s. Vectorized... |

strs | Works like 'str(object, ...)' but prints to String rather... |

strWrapAll | Wraps every occurence of the pattern with a prefix and a... |

sysSleeping | Returns a decorator of f that sleeps time (in seconds) before... |

userInstalledPackages | Gets user installed packages. |

withDTcols | Builds a data.table by using only cols of dt |

withoutDTcols | Builds a data.table by removing cols of dt |

withStr | Takes a vector of Strings and returns a new vector with a new... |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.