I have a list as below (2 elements provided) with length in the thousands.
[[1]]
[1] "few/JJ" "enough/JJ" "particular/JJ"
[[2]]
[1] "signifcant/JJ" "last/JJ" "individual/JJ" "effective/JJ"
I'd like to convert it to a data frame with 1 column in the following format where the data types are characters:
few enough particular
significant last individual effective
I tried a few combinations of do.call, unlist and lapply, but can't seem to get the right format.
any help would be appreciated!
/JJ
part? - akrun"few enough particular"
because of 1 column expected result. - akrununlist(lapply(lst, function(x) paste(gsub("\\/.*", "", x), collapse=" ")))
- akrun