Help me please with follow:
I have a list like that:
open close
12.15.16 $15 $16
12.16.16 $18 $19
(Index: Date)
But I need a data-frame like this:
date open close
12.15.16 $15 $16
12.16.16 $18 $19
Help me please with follow:
I have a list like that:
open close
12.15.16 $15 $16
12.16.16 $18 $19
(Index: Date)
But I need a data-frame like this:
date open close
12.15.16 $15 $16
12.16.16 $18 $19
Based on the data showed, it looks like the OP have a data.frame with rownames and wanted to have a separate column with rownames. In that case
df2 <- cbind(date = row.names(df1),df1)
row.names(df2) <- NULL