Identify columns that are lists and turn them into vectors.

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)
#> Unlisting 1 column(s).