search for: ichart

Displaying 7 results from an estimated 7 matches for "ichart".

Did you mean: chart
2009 Jun 23
4
SAS Macro Variable in R
...new to R and would like to implement a SAS-like macro variable in R. What I'd like to do is take the simple R code below and change the "=TEF" to different letters to refer to different companies' data for download. # DOWNLOADS FILES FROM YAHOO INTERNET download.file('http://ichart.yahoo.com/table.csv?s=TEF.MC&a=00&b=1&c=2003&d=05&e=23&f=2009&g=d&ignore=.csv', 'c:\\projects\\stock data\\data\\test.csv',quiet=TRUE) As you can see the text I want to change is within the quoted Internet address. Is this possible in R? Thanks in adv...
2007 Sep 01
1
Problem in downloading Yahoo Finance data from R
...Yahoo Finance data from R. I have tried an example given in R, to download. The error is given below: >library(fCalendar) > yahooImport("s=IBM&a=11&b=1&c=1999&d=0&q=31&f=2000&z=IBM&x=.csv ", file = "D:\\ Downlaod",source = "http://ichart.yahoo.com/table.csv?", save = FALSE, sep = ";", swap = 20, try = TRUE) trying URL 'http://ichart.yahoo.com/table.csv?s=IBM&a=11&b=1&c=1999&d=0&q=31&f=2000 &z=IBM&x=.csv' Error in download.file(url = url, destfile = file, method = method) :...
2010 Jan 13
1
Dynamic file / url name with read.csv
Hi- I would like to be able to change the value of SymA below and download a file from the corresponding URL.? Hardcoded, this line works fine: Symbol<- read.csv("http://ichart.finance.yahoo.com/table.csv?s=SPY&ignore=.csv", stringsAsFactors=F) However, when I incorporate using?a variable for the ticker, it no longer works.? SymA<- "SPY" Sym1<- cat('http://ichart.finance.yahoo.com/table.csv?s=",SymA,"&ignore=.csv",sep=&qu...
2010 Apr 16
2
read.table behavior for Dates.
...ad.table imports a table that includes a header called 'Date', it tries to recognize the date format. For example, if one imports this data from Yahoo finance, the Date column is automatically transformed to Y-m-d, whereis in the data it appears as m/d/Y: myData <- read.csv("http://ichart.finance.yahoo.com/table.csv?s=GOOG&a=07&b=19&c=2004&d=03&e=16&f=2010&g=d&ignore=.csv") However, it does not actually convert the variable to Date format. MyData$Date is still a factor. This combination of converting the format but not attributing the 'Date&...
2010 Jan 13
1
plotting moving range control chart
...Analyst" (v. 0.6.0) provides an option to produce a moving range chart with individuals data. The example given in the qAnalyst manual for function spc yields an individuals chart: > #i-chart, moving range to estimate st. dev. is equal to 2 points with testType=1, > data(rawWeight) > ichart=spc(x=rawWeight$rawWeight, sg=2, type="i", name="weight", testType=1) > plot(ichart) > summary(ichart) Changing "type = 'i'" to "type = 'mr'" yields the moving chart: > mrchart = spc(x = rawWeight$rawWeight, sg = 2, type = "mr&...
2004 Jul 02
1
priceIts problem
Dear R People: In library(its), there is a command priceIts. There is a problem with this command. It is returning an error message: > ibm1 <- priceIts(instrument="ibm",start="1998-01-01",quote="Open") Error in download.file(url, destfile, method = method, quiet = quiet) : cannot open URL
2011 May 23
1
MLDownloader 7.1 fails to download data from yahoo
...esult of grep Canonicalize MLD.txt The www.trading-tools.com GETs appear to work. Because these retrieve the data to update the stock symbol lists. They are also repeatable with wget. But notice the embedded \n in the GETs from Yahoo. wget doesn't like them unless the \n are removed. http://ichart.finance.yahoo.com/table.cs\nv?s=MSFT&d=4&e=22&f=2011&g=d&a=3&b=2&c=2007&ignore=.csv Code: 0020:Call wininet.InternetCanonicalizeUrlA(0054f954 "http:///updates/mld.txt",007eddf0,007edde8,02000000) ret=0051cc6d 0020:Call shlwapi.UrlCanonicalizeA(0054f954 &...