powered by
Transform a list of character strings into a data.frame
list2df(list, names = NULL, col.names = c("Name", "Item"))
A data.frame
data.frame
A list of character strings
Values in the 'Name' column of the result, used if the input list has no names
Column names of the data.frame
myList <- list(HSV=c("Mueller", "Papadopoulos", "Wood"), FCB=c("Lewandowski", "Robben", "Hummels"), BVB=c("Reus", "Goetze", "Kagawa")) list2df(myList, col.names=c("Club", "Player"))
Run the code above in your browser using DataLab