Re: [R] addScales package announcement

2020-05-17 Thread Abby Spurdle
That's a good idea. I used something similar in one of packages: https://cran.r-project.org/web/packages/probhat/vignettes/probhatx_ckernels.pdf (Currently, being updated). Maybe you should write a vignette (even a small one), or create a simple webpage. I doubt that your *description* alone is

[R] iterators : checkFunc with ireadLines

2020-05-17 Thread Laurent Rhelp
Dear R-Help List,    I would like to use an iterator to read a file filtering some selected lines according to the line name in order to use after a foreach loop. I wanted to use the checkFunc argument as the following example found on internet to select only prime numbers : |

Re: [R-es] Tomar los elementos de una colMeans sin los nombres

2020-05-17 Thread Jorge I Velez
Quizás as.numeric(distmeans) es lo que buscas? Saludos, Jorge.- El El dom, 17 de may. de 2020 a la(s) 7:35 a. m., Manuel Mendoza < mmend...@fulbrightmail.org> escribió: > Muy buenas tardes, llevo un rato con una chorrada que casi me da vergüenza > preguntar, pero no doy con la tecla. Creo un

[R-es] Tomar los elementos de una colMeans sin los nombres

2020-05-17 Thread Manuel Mendoza
Muy buenas tardes, llevo un rato con una chorrada que casi me da vergüenza preguntar, pero no doy con la tecla. Creo un vector con las medias de algunas columnas de una df: distmeans<-colMeans(df[,1:6]) Son 6 elementos, pero siguen manteniendo el nombre de las variables originales, incluso

Re: [R] Help with spTransform() function and final plot colors

2020-05-17 Thread Poling, William via R-help
Hello again. I also found this discussion on non-finite transformation error, however, I am not sure what to look for in the output after I apply my data? https://stackoverflow.com/questions/14880294/non-finite-transformation-detected-in-sptransform-in-rgdal-r-package str(sample) GPS.Points

Re: [R] Classification of wind events

2020-05-17 Thread Jim Lemon
Hi Stefano, I don't know whether this will help you, but here is a way to visualize wind speed and direction using clock24.plot: first_day_POSIX <- as.POSIXct("2020-02-19-00-00", format="%Y-%m-%d-%H-%M") last_day_POSIX <- as.POSIXct("2020-02-20-00-00", format="%Y-%m-%d-%H-%M") mydf <-

Re: [R] Help with spTransform() function and final plot colors

2020-05-17 Thread Poling, William via R-help
Hello, I have found an additional problem. I should be getting 3 columns back in the xy@data at some point. $ ID : int 1 2 3 4 5 6 7 8 9 10 ... # $ Clust : int 1 1 1 1 1 1 1 1 1 1 ... This is always - 1 # $ Clust.1 : int 1 1 1 1 1 1 1 1

Re: [R] Classification of wind events

2020-05-17 Thread Abby Spurdle
Sorry, please put my last post aside. I mis-read your question. I agree with Jim's comments. On Sun, May 17, 2020 at 9:52 PM Abby Spurdle wrote: > > Hi Stefano, > > I don't have any specific suggestions, but... > > If you could convert your (character) direction vector into a >

Re: [R] Classification of wind events

2020-05-17 Thread Abby Spurdle
Hi Stefano, I don't have any specific suggestions, but... If you could convert your (character) direction vector into a (numeric) time-ordered direction vector giving radians or degrees, and provide the corresponding speed vector... (i.e. North -> 90 degrees). I'd be happy to try and plot the

[R] Help with spTransform() function and final plot colors

2020-05-17 Thread Poling, William via R-help
#RStudio Version Version 1.2.1335 sessionInfo() # R version 4.0.0 Patched (2020-05-03 r78349) #Platform: x86_64-w64-mingw32/x64 (64-bit) #Running under: Windows 10 x64 (build 17763) Hello. I am running my data through a routine I found that finds clusters of data points based on distance rule.