A compilation of utility functions

clearScreen | Clear screen in R console |

countEmptyElements | Count the number of empty elemnts in vector x |

defaultPlotTheme | A default plot theme |

dropNA | Drop NA in a vector |

factorc | Combine a list of factors with levels given in specified... |

findColumnNames | Find strings or substrings in the column names of a data... |

findElements | Find elements in vector who have the same index in vector a... |

generateCombinations | Generate unique combinations from a list of vectors |

ggsaveRstudio | Export ggplot figure to file |

hello | Hello, World! |

last | Return the last element(s) of a vector |

msg | Print message to stderr |

readExcel | Read from Excel clipboard |

round_to_digit | Round a numeric value to a given digit |

round_to_effective_digits | Round a numeric value to a given number of effective digits |

scientific_notation | Convert a numeric value to scientific notation with a given... |

timeit | Time an expression run |

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.