[R] contourLines() documentation

2009-08-26 Thread Derek Lacoursiere

Hello, 

I have searched for documentation on the function contourLines's algorithm
but cannot find a thing.  I am about to submit a paper to a journal but
cannot yet do so because I need to provide some reference for this function. 
Does anyone know what algorithm is used for this function?

Thanks,

Derek Lacoursiere
-- 
View this message in context: 
http://www.nabble.com/contourLines%28%29-documentation-tp25151467p25151467.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] re ference

2009-07-13 Thread Derek Lacoursiere

Hello R users,

I have developed code in R that generates populations of non-overlapping
random polygons ("polygonal maps") for testing certain stereological
estimation methods.  I have tried to look for articles or papers online on
the generation of random polygonal maps and have found very little.  There
seems to be a much greater concern with generating single random polygons
rather than whole maps of random polygons.  Does anyone have an idea of
where I should look or what keywords to use in my search?

I really appreciate your patience with R novices like myself.
-- 
View this message in context: 
http://www.nabble.com/reference-tp24467408p24467408.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Error: argument is of length zero

2009-05-28 Thread Derek Lacoursiere
Hi,

I have the following:

for(j in (y.raw+1):(rownum-1)){
valsum<-tstfframed[min.x,j]+tstfframed[min.x,j+1]
if(valsum == 1){
cat("valsum loop")
int.num<-int.num+1
}

}

but I get the error message: "Error in if (valsum == 1) { : argument is of 
length zero".  I checked whether to see if all the stated variables have 
associated values (and are not NAs) and every variable (even valsum!) has a 
value.  I have no idea where my error is. Can you help me?

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] gpc.poly datatype

2009-06-10 Thread Derek Lacoursiere

I have a list of polygons generated by the contourLines() command (each
object of the list is a list in itself with two objects: a vector of x
values, and a vector of y values for each vertex).  I wish to convert that
list into a gpc.poly object of multiple contours.  How do I do this?  gpclib
apparently has no method of coercing lists into the gpc.poly object type.  
As well, when I have a gpc.poly object, I can view the points using the
get.pts() command, but cannot find a way of only extracting the x values of
a polygon (or the y values, for that matter).  How do I do this?
Any help would be greatly appreciated
-- 
View this message in context: 
http://www.nabble.com/gpc.poly-datatype-tp23967664p23967664.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] driver file

2009-06-23 Thread Derek Lacoursiere

Hi,

How can I, from a single "driver" file, source other files in such a way
that I can access their functions with parameters defined in my "driver"
file?  I wish to do this to avoid creating a single, self-contained but
clunky piece of code.  I have searched and found functions such as file(),
pipe(), open(), found manuals on creating my own packages, etc. but I become
increasingly aware that I don't know exactly what I am looking for (that I
am a "neophyte").  

Help would be appreciated

Derek
-- 
View this message in context: 
http://www.nabble.com/driver-file-tp24171201p24171201.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.