CSV 파일을 읽으려면 R timeSeries 패키지를 사용하려고합니다. 이날짜의 POSIX 표현
Date Open High Low Close Volume Adj.Close
4/4/2011 45.07 45.41 44.36 44.83 2133900 44.83
4/1/2011 44.88 45.48 44.78 45.14 2212300 45.14
3/31/2011 44.92 45.02 44.46 44.78 2194900 44.78
3/30/2011 44.79 45.17 44.65 45.09 2514100 45.09
(아래 그것의 처음 몇 줄을 있습니다)를 CSV에 날짜를 인식하지 못하는,
prices <- readSeries(file='A2006-2011.csv',head=T,sep=",",format="%m/%d/%Y")
을하지만 :
이
내가 실행하려고 코드입니다 다음과 같은 경고를 출력합니다 :Warning message:
In readSeries(file = "A2006-2011.csv", head = T, sep = ",", format = "%m/%d/%Y") :
Conversion of timestamps to timeDate objects produced only NAs.
Are you sure you provided the proper format with argument 'format'
or in the header of your file ?
아무도 나에게 도움이된다면 정말 감사하겠습니다.
파일에 쉼표가 없는데도 쉼표를 필드 구분 기호로 사용하는 것이 맞습니까? – rlibby