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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.