attr2text: get attributes as text

View source: R/attr2text.R

attr2textR Documentation

get attributes as text

Description

extract attributes of dtable to a string (or character vector)

Usage

attr2text(
  dt,
  perc = FALSE,
  perc.sign = "%",
  lessthan = "<",
  attr = c("size", "cc", "weight", "units", "info"),
  units.name = "units",
  sep = ". ",
  vector = FALSE,
  rm.if.all = FALSE
)

Arguments

dt

a dtable

perc

use percentages

perc.sign

percentage sign

lessthan

'strictly less than' sign

attr

which attributes to extract

units.name

character, name of units

sep

separator between attributes for output

vector

return vector instead of a single string

rm.if.all

exclude info on units if all unique


renlund/descripteur documentation built on Sept. 24, 2023, 7:07 p.m.