Various Useful Helper Functions

factor2Char | Convert a factor to a character vector, while preserving the... |

factorBreakdown | Break down a factor returning the names of the elements in... |

getDataWithCovarianceMatrix | Generates data with covariance structure specified by the... |

getFactorFromP1rds | Get the colors of a pagoda1 serialised app object as a factor |

headtail | Head and tail of a table combined |

ll2a | Convert list of lists of numbers to array |

load.image.fast | Loads an image generated with save.image.fast() |

mergeMatrices | Merge expression matrices in a list, keeping only common... |

minStringDistance | Find minimum string distance strings in a vector |

mixVectorsOnLogical | Generates a new vector from two vectors by combining them... |

namedNames | Get a vector of the names of an object named by the names... |

plotFactorsPercent | Generate a ggplot2 plot comparing two factors for a common... |

preserve.state | Save the session in the current working directory with a file... |

randomPositiveDefiniteMatrix | Generates a random positive definite matrix |

read10xmatrices | read multiple 10x matrices into a single sparse array |

read10xMatrix | Read 10x matrix |

readInDropMatrix | Reads in a data matrix from the in house indrop pipeline |

readKleinMatrix | Reads in an expression matrix as formatted by the Klein lab... |

readMultiple10Xmatrices | wrapper with old name for read10xmatrices |

readMultiple10XmatricesAsList | read multiple 10x matrices and return as a list |

readMultipleInDropMatrices | Reads in multiple indrop matrices |

readMultipleKleinMatrices | Reads in multiple klein matrices and returns them in a list |

replaceClusterFactors | Combine two named factors when the new factor contains a... |

save.image.fast | save a R session image fast |

tableCorners | get NW, NE, SW and SE corners of a dataframe or matrix |

uniqCombs | Get all unique combinations of elements in a list |

writeListOfDFs | Write a list of data.frames as individual csv files |

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.