Contains some of my R codes

addClass | Adds cls to class(x). |

addr | Alias for 'pryr::address' |

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

asNonBlanks | Explicitly marks given strings as trimmed and non-blank. User... |

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

asTrimmeds | Explicitly marks given strings as trimmed. User takes... |

boolsAnd | Short-circuit evaluator for Boolean values |

brewerTheme | Custom pleasant theme from:... |

callCaptArgs | Invokes f with the last captured arguments. |

captArgs | Captures the arguments for calling f. When called without f... |

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

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

copyDoubles | Works like System.arraycopy(...) in Java for double vectors. |

copyInts | Works like System.arraycopy(...) in Java for integer vectors. |

countWorkdays | Computes number of work days (1-5/Mon-Fri) fot the total... |

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

disj | Peformance optimized base::setdiff |

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

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

emptyHashMap | Returns an empty hash map implemented as an environment. |

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

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

getProp | Alias for '.subset2' |

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-NAor-grapes | Defaults for a single NA value. |

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

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

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. |

memoBool | A fast memoizer for values of depending on some logical... |

memuse | Alias for 'pryr::mem_used' |

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

mostFrequent | Returns a vector xs sorted by the (decreasing) frequency of... |

moveDTprops__ | Diagnostic version of 'moveDTprops' |

moveNames | Thanks to:... |

nonBlanks | Asserts non-blankness and returns koR.Trimmed strings as... |

ofClass | Sets class(x) to cls. |

osize | Alias for 'pryr::object_size' |

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. |

setDTpropsorder__ | Diagnostic version of 'setDTpropsorder' |

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

stopIfNot | A faster (trivial) version of stopifnot. |

stopIfNot__ | Alias for 'base::stopifnot' |

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... |

trimmeds | Trims given strings (both ends) |

userInstalledPackages | Gets user installed packages. |

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.