I have a list containing three different length of vectors with unique elements for each vector.
data <- list(ARG=letters[1:8],BRZ=c("a","b","c","f","h","g","l","m","n"),US=c("u","b","c","e","h","f","q","a","n","t"))
I would like to convert this list to a data frame by mergering them together, the result is expected as below or similar output, Thank you for helping this.
ID ARG BRZ US
a 1 1 1
b 1 1 1
c 1 1 1
d 1
e 1 1
f 1 1 1
g 1 1
h 1 1 1
l 1
m 1
n 1 1
q 1
t 1
u 1
library(qdapTools);t(mtabulate(data))