엑셀 CSV에서 인덱스 데이터를 호출했습니다. (날짜 YYYY/MM/DD 형식이다.) I 오류 수신날짜 = as.Date (rownames (df))
library(tseries)
library(minpack.lm)
library(ggplot2)
index <- read.csv("C:\\Users\\Toshiba\\Desktop\\deks\\DATA.csv")
ts <- index
df <- data.frame(ts)
df <- data.frame(ts)
df <- data.frame(Date=as.Date(rownames(df)),Y=df$Close)
:
Error in charToDate(x) : character string is not in a standard unambiguous format
제가
Warning message: In Ops.factor(df$Date, df[1, ]$Date) : - not meaningful for factors
I를 수신
df$days<-as.numeric(df$Date-df[1,]$Date)
를 들어 데이터를 X=DATE(YYYY/MM/DD)
및로 설정하십시오..
날짜를 [(DD/MM/YYYY), (DD-MM-YYYY), (YYYY-MM-DD)]로 변경했지만 여전히 오류가 나타납니다. 어떻게하면됩니까?
연구에서는이 명령을 실행'안양 $ 날짜 [1]'우리에게 출력을 보여줍니다. – stanekam
@iShouldUseAName 출력은 [1] 1991/08/19 595 수준 : 1991/08/19 1991/08/20 1991/08/21 1991/08/22 ... 1994/01/06 – user3664028