formatLongTable: Convert to internal data format

View source: R/formatLongTable.R

formatLongTableR Documentation

Convert to internal data format

Description

This function converts a given list of relational data tables to an internal quasi-long format

Usage

formatLongTable(
  data.ls,
  sourceKey,
  targetKey,
  tableOrder = c("study", "site"),
  warnMismatch = FALSE,
  verbose = FALSE
)

Arguments

data.ls

list of source relational data tables

sourceKey

table describing the source relational data tables in data.ls. Describes what variable is associated with which source header and table and what kind of information is in that column as well as any hard values associated with a given variable

targetKey

table describing the target data tables (what table to put the variables in)

tableOrder

default order in wihc to process the source tables

verbose

boolean flagging lots of output

Value

a list of data tables in the interal quasi-long format


ISCN/SOCDRaHR2 documentation built on May 26, 2023, 6:44 a.m.