[R] Please read **URGENT** Need help with R

cryan at binghamton.edu cryan at binghamton.edu
Mon Sep 14 00:35:08 CEST 2015


After your 4th line of code (your second read.csv statement) what is the output of

str(EURUSD)

--Chris Ryan

Sent from my android device.

-----Original Message-----
From: Mehmet Dogan <m.dogan at mail.com>
To: r-help at r-project.org
Sent: Sun, 13 Sep 2015 17:57
Subject: [R] Please read **URGENT** Need help with R

library(xts)
library(zoo)

EURUSD<-read.csv("Data_Forecast/EURUSD.csv")   # to load the data

EURUSD<-read.csv("Data_Forecast/EURUSD.csv",stringsAsFactors=F)   # to load as a factor

#??????????
EURUSD$Date<-as.Date(EURUSD$Date,format="%Y-%m-%d" , "h:m:s")   # here the code is not working to format the "Date"


# lets leave just date and close price
EURUSD<-EURUSD[,c(1,5)]


# and change the name of the last column into EURUSD
names(EURUSD)[2]<-"EURUSD"

#?????????????
EURUSD.xts<-xts(EURUSD$EURUSD,SP500$Date)  # here also i create xts object for these time series
______________________________________________
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list