是否有R函数将字符转换为日期

时间:2019-07-03 08:36:25

标签: r

我已导入股票数据并将行名转换为日期。但是我无法转换为日期格式

     PURVA <- as.data.frame(getSymbols(c("PURVA.NS"), src = "yahoo", from 
     = "2018-01-01", to = "2019-07-02",verbose = F, auto.assign = F))
     PURVA$Date <- row.names(PURVA)
     PURVA$Date <- as.Date(character(PURVA$Date,'%m/%d/%y'))

0 个答案:

没有答案