Re: [R] converting a for loop into a foreach loop

2012-01-23 Thread kalee
Thanks Jim for your reply. I've split the dataset into indices but am now having problem with my function. The function I need to use is in two parts: H.scv - Hscv(idh, pilot = unconstr) ## commands from the ks package KDE - kde(idh, H=H.scv, approx.cont=TRUE) I've tried to write these as

Re: [R] converting a for loop into a foreach loop

2012-01-23 Thread kalee
the last value which would be the result of the call to 'kde'. If you want both results returned, then the last statement should possibly be: list(H.scv, KDE) which will return the values in a list that you can then extract from. On Mon, Jan 23, 2012 at 1:14 AM, kalee [hidden email]http

[R] converting a for loop into a foreach loop

2012-01-19 Thread kalee
Dear all, Just wondering if someone could help me out converting my code from a for() loop into a foreach() loop or using one of the apply() function. I have a very large dataset and so I'm hoping to make use of a parallel backend to speed up the processing time. I'm having trouble getting

[R] problem with project command in rgdal

2011-10-18 Thread kalee
Hi I'm trying to analyse some data and need to set the geographic coordinate system before I can do the analysis. I've been trying to use the project command in rgdal but keep getting an error message saying: Error in project(locationsMatrix, PROJECTION.OUT) : latitude or longitude exceeded

Re: [R] problem with project command in rgdal

2011-10-18 Thread kalee
Hi Mike Thanks for your comments. I had the code trying to project() the lat, long so all fixed now. Thanks for your help and pointing out the R-sig-Geo mailing list which I'll use in the future should I have other questions. Thanks Kate -- View this message in context: