For the below lists, can we convert to dataframe
x1 <- list(a1 = structure(19116, class = "Date"), inputType = TRUE,
valDate = structure(19116, class = "Date"), MainNavBar = "V",
btnGetDWData = structure(0L, class = c("integer", "shinyActionButtonValue"
)), sd = "Info", fd = NULL,
fd = NULL)
I tried with below, but I am getting error. Can anyone help me?
> data.frame(
names = names(x1),
values = unlist(x1, use.names = FALSE)
)
Error in data.frame(names = names(x1), values = unlist(x1, use.names = FALSE)) :
arguments imply differing number of rows: 8, 6