[R] how to label station names on point

2017-11-12 Thread Javad Bayat via R-help
I have a shapefile point and I plot it over my polygon. Is it possible to label station names over points?Sincerely. S_Point = readOGR(".","point")plot(S_Point,add=TRUE,col="black",pch=20,cex=2) [[alternative HTML version deleted]] __ R-help

[R] Convert poly line to polygon in R

2017-11-12 Thread Javad Bayat via R-help
I have a shape file as poly line and I want to convert it to polygon.Is it possible to do that in R?lake <-readShapeLines("./lake_main_utm.shp")proj4string(lake) <- CRS("+proj=utm +zone=39 +datum=WGS84") Sincerely. [[alternative HTML version deleted]] _

Re: [R] weighted average grouped by variables

2017-11-12 Thread PIKAL Petr
Hi Berend Yes you are correct. My fault, I did not test it before sending. Cheers Petr > -Original Message- > From: Berend Hasselman [mailto:b...@xs4all.nl] > Sent: Saturday, November 11, 2017 11:26 AM > To: PIKAL Petr > Cc: Massimo Bressan ; r-help project.org> > Subject: Re: [R] weig

Re: [R] create waveform sawtooth

2017-11-12 Thread Jeff Newmiller
Ccing the maintainer if the tuneR package. Looks to me like sawtooth (and square) don't behave as expected when using xunit="samples". Workaround is to use xunit="time" instead: sawtooth(110,duration=1/100,samp.rate=sample_rate,xunit="time") I looked at the code but found it to be opaque. --

Re: [R] create waveform sawtooth

2017-11-12 Thread Michael Tiemann
My tuneR sawtooth wave function generator is broken. When I use the sine function, I get exactly what I expect: a sine wave whose frequency is defined by the freq parameter. In particular, higher frequencies have shorter wavelengths (more cycles per second means shorter waves). When I create

Re: [R] Primer for working with survey data in R

2017-11-12 Thread Michael Dewey
Dear Kevin The nearest equivalent to the SPSS VALUE LABELS is the labels in factor(). If you want to attach labels to a whole question like VARIABLE LABELS then you may want to use an attribute using attr() Michael On 11/11/2017 19:56, Kevin Taylor wrote: I am taking a behavioral stats grad