center: Compute the center (compositional mean) of a set of...

Description Usage Arguments

View source: R/compositional-mean.R

Description

Unobserved values should be marked as NaN.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
center(
  .data,
  weights = rep(1, nrow(.data)),
  method = "proj",
  in_scale = "linear",
  out_scale = "linear",
  denom = NULL,
  enframe = FALSE,
  components = FALSE
)

Arguments

.data

All-numeric data frame or matrix with taxa as columns.

weights

Sample (row) weights.

method

Method for computing the center: "proj", "gm", or "rss".

in_scale

"linear" or "log".

out_scale

"linear" or "log".

denom

Taxa to use in the denominator; if NULL, use all taxa.

enframe

Whether to return the bias estimate as a two-column tibble.


mikemc/metacal documentation built on Feb. 20, 2022, 1:46 a.m.