similar to: Trouble with R proxy

Displaying 19 results from an estimated 19 matches similar to: "Trouble with R proxy"

2010 Apr 16
2
read.table behavior for Dates.
When read.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 <-
2009 Sep 24
1
Downloading currency data from from Yahoo
Hi, I wanted to download some currency data using "quantmod" package, however got following error : > getSymbols('USD/GBP',src='yahoo') Error in download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m, : cannot open URL
2007 Sep 01
1
Problem in downloading Yahoo Finance data from R
Hi R users, I have a problem in downloading 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,
2009 Feb 07
1
Yahoo data downloading problem
Hi, I got some problems while was trying to download data from Yahoo using yahoo.get.hist.quote() function. My script is as follows : app <- yahoo.get.hist.quote("aapl", start="02/07/09", end="02/07/06", quote="close") However I got following error : trying URL
2008 Aug 07
3
Downloading Yahoo data
Hi R, I am trying to download the data from R. I give the below command. > library(fImport) > yahooSeries("IBM") trying URL 'http://chart.yahoo.com/table.csv?s=IBM&a=7&b=08&c=2007&d=7&e=07&f=2008& g=d&x=.csv' Error in download.file(url = url, destfile = file, method = method) : cannot open URL
2009 Aug 03
3
Help with data type
Hi there, Using a quantmod function, I calculate the daily change between two points in a time series. However, I don't think I am using the data correctly. Code: getSymbols("^GSPC", src="yahoo") CloseData <- Cl(GSPC) Delta <- diff(CloseData, lag=1) for (i in 3:length(Delta)) { if (Delta[i]>Delta[i-1]) sum <- sum + Delta } I can't seem to use the Delta
2009 Jun 23
4
SAS Macro Variable in R
Hi I'm 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
2009 Sep 07
1
Rmetrics: Problem with "align"
Hi there! I'm stuck with a problem aligning financial timeseries and haven't found a cue how to fix it... When I run that simple script, everything goes well until the "align"-command: ------ rm(list=ls()) x <- yahooSeries("^GDAXI") head(x) xAligned <- align(x = x, by = "1d", method = "before", include.weekends = FALSE) ------ Here's
2009 Jun 09
1
Using ADF.Test
Hi, I am quite new to R and would appreciate some guidance, if possible. I have imported a csv file: spread <- read.csv("Spread.csv") I get the following error when I try to run adf.test: > adf.test(spread,alternative = c("stationary", "explosive"),0) Error in embed(y, k) : 'x' is not a vector or matrix Why is this? -- View this message in context:
2009 Feb 05
2
Non-linear optimisation
Hi there, I have a piece of Matlab code I use to optimise a trding strategy. If there are any Matlab/R specialists out there, I would appreciate your help in doing the exact same optimisation in R. I suspect I would use nlm() in R but am not sure where to define my constraints. I have attached my Matlab code below for reference. Many thanks. Constraints function [c,ceq]=TriskellConstraints(X)
2018 May 22
0
How to average values from grid cells with coordinates
Hi Jim, Thanks. It works. I now have more complex problems. If at each blackcell, there are two variables such as pop and mood. For each variable, there are daily records in one year, so 365 records for pop and 365 records for mood. The averaged values for the redcells should be daily records too. What kind of format do you recommend for this problem? Right now, I just get the latitudes and
2011 Jan 20
1
Generating time progressing line for Google Earth
Dear, I am trying to visualise a time-progressing line (it's supposed to represent spread patterns) using brew package and Google Earth. The idea is to have a function which takes start and end point geographic coordinates, as well as number of intervals to chop the path up, and returns the collection of points segmenting this line. Unfortunately my calculations fail for large distances,
2018 May 20
1
How to average values from grid cells with coordinates
Hi lily, It's not too hard to do it using dataframes. Getting the indexing right is usually that hardest part: # these values are the centers of the black cells lat<-rep(28:38,11) lon<-rep(98:108,each=11) pop<-sample(80:200,121) # just use the data.frame function blackcells<-data.frame(lat=lat,lon=lon,pop=pop) plot(0,type="n",xlim=c(97.5,108.5),ylim=c(27.5,38.5),
2010 Jul 23
1
Midpoint between coordinates
Dear R users, I need to find the coordinates for the point (midpoint) located half way between two pairs of coordinates (lon1,lat1 and lon2,lat2) assuming a straight line between them. What would be the best way? I tried to find an answer in the help archives but without success. I would greatly appreciate any help. df<- data.frame(lon1=c(-4.568,-4.3980), lat1=c(59.235,56.369),
2014 Dec 03
0
[PATCH] Update links.html
Adding some links to links.html --- images/hw/pioneer_c.png | Bin 0 -> 3389 bytes images/hw/tesla.png | Bin 0 -> 6145 bytes links.html | 13 +++++++++++++ 3 files changed, 13 insertions(+) create mode 100644 images/hw/pioneer_c.png create mode 100644 images/hw/tesla.png diff --git a/images/hw/pioneer_c.png b/images/hw/pioneer_c.png new file mode 100644 index
2010 Jan 05
3
R matching lat/lon pairs from two datasets?
Hello, I am trying to match lat/lon from one dataset with the lat/lon from a second dataset and use that rows data for calculations. I am using match, but this is finding the first match and not comparing the pair, how can I determine if the lat/lon are the same? See example below. Is there a better way to determine to a matching pair of lat/lon values? Example Datasets: > data2
2011 Apr 12
1
How to set the dimension of a matrix correctly?
Hi all, I use kriging to interpolate the precipitation from stations, but the map of this results show lots of stripes. (please see the attachment)I think there's something wrong with the setting of the dimension of this matrix, however, I have no idea how to know or test to see if this setting is correct or not.I've tried to switch the latitude and longitude, but still got the same
2002 Jun 06
3
Problem with get.hist.quote (tseries library)....
Hello, I am having a problem with the get.hist.quote command (tseries library) in the Windows version. This problem is not happening is the Linux version (Mandrake 8.2). Attached is the error message, for an example included in the help file. Also the R.Version() details is attached. Please, do you know if there is a workaround ? Thanks, Carlos. ++++++++++++++++++++++++ ERROR MESSAGE
2009 Aug 06
0
Seasonal analysis
Hi, Are there any R packages around which would break down a time series into a MxN table for analysis purposes? For example, show the total sales per month per calendar year. Jan Feb..... Total 2008 2009 Total Thanks, Eduard -- View this message in context: http://www.nabble.com/Seasonal-analysis-tp24844839p24844839.html Sent from the R help mailing list archive at Nabble.com.