I have a little problem with the function as.Date. I downloaded the prn data as a csv file, and my teacher said that everything is fine, then when I try to set my dates in a standard way (y, m, d), it gives me a year as an insane number. The PZU file is the stock price for a Polish company. Also, I'm not quite sure how to set the time. I am very grateful for the help. Just for general information, I use R software with the R studio interface.
pzu<-read.csv("PZU.prn",header=F)[,1:7]
names(pzu)<-c("name","date","time","open","high","low","close")
head(pzu)
class(pzu$date)
str(pzu)
pzu$date<-as.Date(pzu$date)
head(pzu)
source
share