A collection of miscellaneous R functions

as_numeric | Converting factors to numeric |

catf | Print the contents of a file |

clear | Remove all objects in an environment |

cv | Coefficient of Variation |

group_demean | Subtract mean values by grouping factor |

logical | Logical operators |

most_freq | Calculate most frequently occuring value in a vector |

n | Count the number of non-NA observations in a vector |

notes_pdf | R Markdown Notes Template (PDF) |

project_template | Create new project |

read_text | Data I/O convenience functions |

recode | Flexible vector recoding |

reshape_stata | Reshape the Stata way |

sample_df | Randomly sample a data.frame |

scaling-functions | Numeric vector rescaling functions |

shuffle | Shuffle an object |

strings | String / text processing functions |

sumstats | Simple summary statistics |

symdiff | Symmetric set difference |

temp_dir | Create a temporary directory |

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.