some | R Documentation |
Returns several random lines from the data.frame, matrix or phyloseq.
Usage is quite similar to the head
or tail
functions.
some(x, n = 10, n_otu = 10)
x |
Coluld be a |
n |
Number of records (or samples in phyloseq) that will be returned |
n_otu |
Number of OTUs to show (if the input is phyloseq-object) |
Part of the data.frame or matrix with n lines or a subset of phyloseq-object.
Adapted from some
in the car-package by John Fox.
# Load phyloseq data
data(enterotype)
some(enterotype)
# If input is data.frame or matrix
x <- matrix(rnorm(500), ncol=5)
some(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.