My Collection of Miscellaneous R Functions

BoxCox | Box-Cox power transformation of a vector, adjusted to retain... |

carryforward | Carry forward/back imputation of a vector |

duplicates | Return values that are duplicates |

frac | Fractional part of numeric object |

fuzzyround | Fuzzy (random) rounding. |

gel | Transparent shades of grey or other colours |

grepvi | Variations on grep with different defaults, for convenience. |

heat.colours | Some more realistic heat colours |

is.ascii | Identify non-ASCII elements in a character vector. |

is.sorted | Test whether a vector is sorted |

kurtosis | Kurtosis of a vector |

like | Binary operators for regexp string comparisons. |

newpassword | Create a random password. |

new.timing | Timing class for recording computation times |

NoYes | Convert a logical vector to a two-level factor |

nuniques | Number of unique values |

pastel | Pastel colours |

plots | An informative array plots on a numeric vector |

print.timing | Print method for class timing. |

qqnormalise | Transform non-normal data using theoretical normal quantiles |

skewness | Skewness of a vector |

trim | Trim leading and trailing white space |

uniques | Sorted unique values |

update.timing | An update method for a timing object |

Write.csv | Write CSV file with different defaults |

zeropad | Format numbers in constant width with leading zeros |

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.