mtx <- matrix(1:12, ncol = 3, dimnames = list(paste0("OTU", 1:4), paste0("Sample", 1:3)))
mtx
suppressWarnings({
mtx_rarefy(mtx)
rarefy_cols(mtx)
mtx_percent(mtx)
mtx_rescale(mtx)
rescale_rows(mtx)
rescale_cols(mtx)
})
Run the code above in your browser using DataLab