Simple R utility functions for convenience

colMax | Max of each column |

colMin | Min of each column |

colSD | Standard deviation of each column |

colSE | Standard Error of mean of columns |

colVar | Variance of each column |

get_pValue_lm | Get p-value from 'lm' |

inRange | Checks if x is inside a range or not |

last | Last element of a vector or list |

mode | Mode of a vector |

na.is.x | Convert NAs to "x" in a vector |

na.is.zero | Convert NAs to Zero in a vector |

normalizeMatrix | Normalize each column a matrix |

normalizeMatrixWithRowSD | Normalize columns of a matrix by rowSD |

normalize_vector | Normalize a vector |

notin | Opposite of '%in%' |

pctChange | Returns percentage change between two numbers |

rowMax | Max of each row |

rowMin | Min of each row |

rowSD | Standard deviation of each row |

rowSE | Standard Error of mean of rows |

rowVar | Variance of each row |

sampleColumns | Returns a subset of data-frame or matrix |

sampleRows | Returns a subset of data-frame or matrix |

truncate_vector | Truncate a vector on one/both sides |

without | Return the elements of x not in y |

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.