Unobserved values should be marked as NaN.

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.