简体   繁体   English

How to convert Index as column variable in R(资料下载自雅虎财经)

[英]How to convert Index as column variable in R (Data downloaded from Yahoo finance)

I want the index column as date for my data but it is showing as index when I downloaded the data from yahoo finance.我希望索引列作为我的数据的日期,但当我从雅虎财经下载数据时它显示为索引。

在此处输入图像描述

I tried using rownames() function, but didn't get the result我尝试使用 rownames() function,但没有得到结果

We can use我们可以用

library(zoo)
fortify.zoo(HCLTECH)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM