convertDataFrameListsToVectors: Convert columns with list in data.frame to vector

Description Usage Arguments Value Note Examples

View source: R/convertDataFrameListsToVectors.R

Description

Convert columns with list in data.frame to vector

Usage

1

Arguments

df

a data.frame

delimiter

a delimiter to concatenate (DEFAULT: ;)

Value

a data.frame without list columns

Note

Lists as columns are useful programmatically, but cause issue in writing output to text-based files

Examples

1
2
3
4
5
   
df <- data.frame(id = 1:2, name = c("Jon", "Mark"), 
  children = I(list(c("Mary", "James"), c("Greta", "Sally"))))
df <- convertDataFrameListsToVectors(df)
  

paxtoolsr documentation built on Nov. 8, 2020, 8:29 p.m.