cor_row: Correlation row

cor_rowR Documentation

Correlation row

Description

Correlation row

Usage

cor_row(
  data_item,
  data = NULL,
  data_filter = NULL,
  row_digits = NULL,
  method = c("pearson", "kendall", "spearman")
)

Arguments

data_item

item to be taken from data for row

data

separate dataset to use

data_filter

filter to apply to dataset

row_digits

digits for data item (overrides table as a whole)

method

method parameter passed onto cor: "pearson", "kendall" or "spearman".

Examples

first_table(
  mtcars,
  .column_variable = gear,
  .column_type = "numeric",
  cor_row(disp, method = "spearman")
)

NikNakk/tableone documentation built on March 22, 2022, 1:19 p.m.