[R-sig-Geo] for loop with kde (ks package) function not working

2013-03-03 Thread kalee
andom selection process) but it produces the same errors when I look at the results. I'm sure I'm missing something really obvious I'm just not sure where to look. Many thanks Code: library(ks) setwd("/Users/kalee/Documents/Feb 2013/") for (i in 1:5 ) { x <- sample(-30

[R-sig-Geo] spsample random sampling a subset of polygons based on a variable from a different dataframe

2013-02-24 Thread kalee
Hi all, Data background: I have a dataframe of fish telemetry locations where we have to estimate the X and Y co-ordinates based on the depth at which the fish is detected and the receiver number (combined into one attribute named 'RecDepth' within the dataframe; 20 fish each with 1,000-10,000 loc

Re: [R-sig-Geo] 3D kde output conversion to volume

2012-02-02 Thread kalee
I had a reply back from the developer of the ks package to the same query I sent him. His response was: "I'll include this functionality in a future update in the ks library. But in the meantime, you can compute volumes manually using these commands, continuing the 3-d example, ct <- contourLevel

[R-sig-Geo] 3D kde output conversion to volume

2012-01-19 Thread kalee
Hi I'm trying to calculate the volume of a 3D kernel density estimator that has been calculated using the kde command from the ks package. So far I'm just working with the examples given before applying this to my own data so only have that example data to give (found under "plot" of the package

[R-sig-Geo] Calculate area/volume of kde output from ks package

2012-01-16 Thread kalee
Hi I'm trying to calculate the volume of a 3D kernel density estimator that has been calculated using the kde command from the ks package. So far I'm just working with the examples given before applying this to my own data so only have that example data to give (found under "plot" of the package m

[R-sig-Geo] Calculate area/volume of kde output from ks package

2012-01-16 Thread kalee
Hi I'm trying to calculate the volume of a 3D kernel density estimator that has been calculated using the kde command from the ks package. So far I'm just working with the examples given before applying this to my own data so only have that example data to give (found under "plot" of the package m