unlist_dt: Unlist a data.table

View source: R/unlist_dt.R

unlist_dtR Documentation

Unlist a data.table

Description

Identify columns that are lists and turn them into vectors.

Usage

unlist_dt(dt, exclude = NULL, verbose = TRUE)

Arguments

dt

A data.table.

exclude

Columns to exclude from unlisting.

verbose

Print messages.

Value

dt with list columns turned into vectors.

Examples

dat <- echodata::BST1
dat$SNP <- as.list(dat$SNP)
dat2 <- unlist_dt(dt=dat)

RajLabMSSM/echodata documentation built on Nov. 21, 2023, 8 a.m.