Re: [R] Convert a list of $NULL into multiple dataframes

2018-05-18 Thread Jim Lemon
Hi Ilio, As far as I can see, this is what you have done: A<-data.frame(V1="Year",V2=1992,V3=1993) B<-data.frame(V1=c("Year","18-19"),V2=c("Average (cm)",178.3), V3=c("N",6309),V4=c("SD",6.39)) A V1 V2 V3 1 Year 1992 1993 B V1 V2 V3 V4 1 Year Average (cm)N SD 2 1

Re: [R] Convert a list of $NULL into multiple dataframes

2018-05-18 Thread John Kane via R-help
There must be a simpler and easier way but it's early here and I am only on my first cup of tea. Just but each element into a data frame. Quick and dirty example: dat1  <- list(aa = 1:20, bb  <- data.frame(xx = 1:5, yy = LETTERS[1:5])) dat2 = data.frame(dat1[[1]]) =

[R] Convert a list of $NULL into multiple dataframes

2018-05-18 Thread Ilio Fornasero
I have the following list: > tables $`NULL` V1 V2 V3 1 Year 1992 1993 $`NULL` V1 V2 V3V4 1 Age Average (cm) N S