similar to: loop help

Displaying 6 results from an estimated 6 matches similar to: "loop help"

2009 May 08
2
partial mantel tests "Ecodist"
Hi all, I'm searching for a little clarification on partial mantel tests (ecodist package) I've a distance matrix (x,y), and several others containing environmental/chemical variables. Based on the help file, and the package instructions I've managed to implement the tests as; var1 ~ env1 + space to partial out the effect of space and test the relationship between the
2008 Mar 20
1
minimum distances
Hi, I have a question about computing shortest Euclidean distances between two data frames of spatial points... I have 2 dataframes (not yet converted to spatial class) >Sewers<-data.frame(x=c(10,20,35,50),y=c(100,150,200,300)) >transect <- data.frame(x=seq(from=0, to=50, by=1),y=seq(from=100, to=150, by=1)) I would like to be able to compute the shortest distance from the
2011 May 15
3
Adding dates to time series
Hi there, I have a spreadsheet in excel which consists of first column of dates and then subsequent columns that refer to prices of different securities on those dates. (the first row contains each series name) I saved the excel file as type csv and then imported to excel using prices=read.csv(file="C:/Documents and Settings/Hugh/My Documents/PhD/Option prices.csv",header = TRUE, sep
2008 Apr 17
1
spatialpixelsdataframe
I have a spatialpixelsdataframe containing bathymetry data. Is it possible to save this as something similar to the meuse.grid so it can be loaded without having to run the spatial interpolation each time the script is called? I don't see a straightforward method in the sp documentation.
2008 Apr 16
3
memory issues
Hi all, I've read the R for windows FAQ and am a little confused re: memory.limit and memory.size to start using R 2.6.2 on WinXP, 2GB RAM, I have the command line "sdi --max-mem-size=2047M" Once the Rgui is open, memory.limit() returns 2047, memory.size() returns 11.315, and memory.size(max=T) returns 19.615 Shouldn't memory.size(max=T) return 2047? Upon running several
2008 Aug 12
0
gls and memory allocation
Hi all, A two part quick question regarding gls 1) I'd like to pass a formula to gnls from a gam(mgcv package). Is there a quick way to do this? I tried using >gnls(gam$call$formula, data=df, correlation=AC1) but it keeps outputting a message to the effect that I need x ~ y etc as the formula. I realize now that the $formula part of the gam is only sending x ~ s(y) and that this is