check.list.format: Check format of dlist

Description Usage Arguments Value Examples

Description

Chech if the list elements are data.table or data.frame, id rownames [[1]] and [[2]] are identical (for data.frame only, use first column as row id with data.table), and if colnames [[1]] are identical to rownames [[3]]. Check also dataframes dimension to check consistency and propose to transform data.frame to data.table.

Usage

1
check.list.format(dlist, rownamesL = F, data.tableL = F, debugL = F)

Arguments

dlist

Three levels list with [[1]] Datamatrix, [[2]] SamplesMetadata, [[3]] VariableMetadata.

rownamesL

Does data.frame store Rows ID as rownames ?

debugL

Logical to show debugging messsages

tibbleL

Logical to convert data.frame and data.table dlist to tibbles.

Value

Print result of check as character and return the dlist (or converted dlist) if format is ok

Examples

1

Mystilivia/SDjoygret documentation built on May 7, 2019, 5:17 p.m.