make_tibble: Make a Tibble for Plots

View source: R/tables.R

make_tibbleR Documentation

Make a Tibble for Plots

Description

Create a tibble with columns specified in 'columns', and set column names to 'names'.

Usage

make_tibble(
  data,
  domain,
  columns = c("scale", "score", "percentile", "range", "subdomain", "test_name"),
  percentile = NULL,
  round = 0,
  names = c("Scale", "Score", "‰ Rank", "Range", "Subdomain", "Test"),
  ...
)

Arguments

data

A data.frame/dataset, Default: '.'

domain

A character string indicating the domain of interest, Default: NULL

columns

A character vector of column names to be included in the tibble, Default: c("scale", "score", "percentile", "range", "subdomain", "test_name")

percentile

A numeric vector indicating the percentile values to be truncated, Default: NULL

round

A numeric vector indicating the number of digits to round to, Default: 0

names

A character vector of column names to be set in the tibble, Default: NULL

...

Additional arguments to be passed to the function.

Value

A tibble with columns specified in 'columns', and set column names to 'names'.


jtrampush/npsych.data documentation built on Feb. 25, 2025, 12:30 a.m.