Different tiny helper functions for R.

fallThrough | Returns the first not null argument. |

getAttributeNames | Helper function for determining the vector of attribute names... |

getBootstrapSamples | Compute bootstrap samples from a given vector. |

getRandomElements | Samples a random element. |

grapes-is-grapes | Binary operator which acts as a wrapper for 'inherits'. |

hasAttributes | Check if given object has certain attributes. |

is.subset | Check subset relation on two vectors. |

is.superset | Check superset relation on two vectors. |

is.vector2 | Checks safely if a given object is a vector.... |

mergeLists | Takes two named lists and replaces each element of the first... |

modalValue | Computes modal value of given vector. |

permutate | Simple wrapper function for sample. |

strExplode | Split a string into substrings. |

strImplode | Glue a vector of characters together. |

usedFactorLevels | Determines the factor levels of a factor type vector that are... |

which.max2 | More conventient function to get the index of the minimal... |

which.min2 | More conventient function to get the index of the minimal... |

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.