convert_to_percentage: convert_to_percentage

Description Usage Arguments Examples

View source: R/convert_to_percentage.R

Description

convert_to_percentage can convert a data frame to percentage.

Usage

1

Arguments

df

A data frame.

row_sum

Default is TRUE. If row_sum == TRUE, then will take every value of a row and divide by the summary of this row, and apply this to every row. If row_sum == FALSE, then will take every value of a column and divide by the summary of this column, and apply this to every column.

Examples

1
convert_to_percentage(demo_dada2_result$seq_tab, row_sum = TRUE) %>% .[,1:5]

yeguanhuav/visual16S documentation built on Aug. 11, 2019, 8:51 a.m.