check_strictly_positive_vals function

Check if compositional variable are strictly greater than 0

Check if compositional variable are strictly greater than 0

check_strictly_positive_vals(dataf, comps, tol = 1e-06)

Arguments

  • dataf: data.frame containing composition variables
  • comps: character vector of composition variable names in dataf
  • tol: a numeric value that compositional values are expected to be greater or equal than. 1e-6 is deafult

Returns

If any compositional values are found to be strictly less than tol and erro is thrown. Returns TRUE invisibly otherwise.