search for: sbux

Displaying 5 results from an estimated 5 matches for "sbux".

Did you mean: sbox
2017 Sep 18
3
Convert data into zoo object using Performance analytics package
...trying convert data frame object to zoo object I am getting numeric(0) error in performance analytics package. The source code i am using from this website to learn r in finance: https://faculty.washington.edu/ezivot/econ424/returnCalculations.r # create zoo objects from data.frame objects dates.sbux = as.yearmon(sbux.df$Date, format="%m/%d/%Y") dates.msft = as.yearmon(msft.df$Date, format="%m/%d/%Y") sbux.z = zoo(x=sbux.df$Adj.Close, order.by=dates.sbux) msft.z = zoo(x=msft.df$Adj.Close, order.by=dates.msft) class(sbux.z) head(sbux.z) > head(sbux.z) Data: numeric(0) I w...
2017 Sep 20
1
Convert data into zoo object using Performance analytics package
Dear Sir, Thanks for your mail and help. I got this error while trying to run your code. sbux1.z <- read.csv.zoo(u, FUN = as.yearmon, format = fmt) Error in read.table(file = file, header = header, sep = sep, quote = quote, : 'file' must be a character string or connection Thanks and Regards, Upananda Pani On Tue, Sep 19, 2017 at 4:31 PM, Upananda Pani <upananda.pani at g...
2012 May 20
1
Problem in convert function in RTAQ package
...ination",trades=T,quotes=F,ticker="SUBX",dir=F) The problem is that I am not getting the text files named Ticker.trades in .RData format in the destination folder.The sample data I am using is: DATE TIME SYMBOL EX PRICE SIZE COND CORR G127 2010-07-01 08:04:28 "SBUX" "Q" "24.9500" " 100" "T" "0" "0" 2010-07-01 08:04:28 "SBUX" "Q" "24.9500" " 100" "T" "0" "0" 2010-07-01 08:04:28 "SBUX" "Q" "24.9600"...
2017 Sep 20
0
Convert data into zoo object using Performance analytics package
...dieck <ggrothendieck at gmail.com> > Cc: r-help <r-help at r-project.org> > Subject: Re: [R] Convert data into zoo object using Performance analytics > package > > Dear Sir, > > Thanks for your mail and help. I got this error while trying to run your code. > > sbux1.z <- read.csv.zoo(u, FUN = as.yearmon, format = fmt) Error in > read.table(file = file, header = header, sep = sep, quote = quote, > : > 'file' must be a character string or connection > > Thanks and Regards, > Upananda Pani > > On Tue, Sep 19, 2017 at 4:31 PM...
2017 Sep 22
1
Convert data into zoo object using Performance analytics package
Dear All, Thanks a lot for your help. Would you please let me know if i want to read a csv file as zoo object from my local file rather than directly from the website, how to do that? library(zoo) u <- "https://faculty.washington.edu/ezivot/econ424/sbuxPrices.csv" fmt <- "%m/%d/%Y" With sincere regards, Upananda Pani On Wed, Sep 20, 2017 at 3:22 PM, PIKAL Petr <petr.pikal at precheza.cz> wrote: > Hi > > Gabor's code works as expeceted without error. > What is "u" in your case? > > Cheers &...