Useful R functions

changeClass | Change classes of multiple variables/columns in a data frame... |

equal | Testing whether all elements in a vector are equal. |

freq | Computing frequencies of elements in a vector. |

grapes-nin-grapes | A shortcut for negation of the %in% operator. |

idxMax | Get the position of a max element, resolving the ties in a... |

is.tri | Verify whether a matrix is a triangular matrix. |

lsos | A nicely formatted listing of objects in the R working... |

mod | Computes a mod statistic. |

repmat | Replicate matrices. |

repvec | A function that replicates a whole vector. |

rescale | Rescaling a numerical vector. |

rmat | Simple matrix wrapper for gnerating random numbers. |

sqrtmat | Computes square root of a matrix. |

streval | A shortcut for evaluating an expression in a string format. |

tlag | Creates a lagged variable of a vector. |

vecSum | Adding two vectors with special treatment of NA's. |

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.