Re: [R] change frequency of wind data correctly

2020-12-02 Thread Jim Lemon
Hi again, Didn't realize that the example didn't even span a full day. ssdf<-read.table(text="date_POSIX time_POSIX vmax 2018-02-01 00:00:00 27 2018-02-01 00:10:00 41 2018-02-01 00:20:00 46 2018-02-01 00:30:00 39 2018-02-01 00:40:00 34 2018-02-01 00:50:00 32 2018-02-01 01:00:00 37 2018-02-

Re: [R] change frequency of wind data correctly

2020-12-02 Thread Jim Lemon
Hi Stefano, I read in your date-time as two separate fields for convenience. You can split your single field at the space to get the same result. ssdf<-read.table(text="date_POSIX time_POSIX vmax 2018-02-01 00:00:00 27 2018-02-01 00:10:00 41 2018-02-01 00:20:00 46 2018-02-01 00:30:00 39 2018-

Re: [R] [External] Why is R making a copy-on-modification after using str?

2020-12-02 Thread luke-tierney
On Mon, 30 Nov 2020, luke-tier...@uiowa.edu wrote: On Mon, 30 Nov 2020, Georg Kindermann wrote: Dear list members, I was wondering why R is making a copy-on-modification after using str. m <- matrix(1:12, 3) tracemem(m) #[1] "<0x559df861af28>" dim(m) <- 4:3 m[1,1] <- 0L m[] <- 12:1 str(m) #

[R] change frequency of wind data correctly

2020-12-02 Thread Stefano Sofia
Dear list users, I have wind data with frequency of 10 minutes (three years data). For simplicity let me use only max wind speed. I need to reduce the frequency to 30 minutes, at 00 (taking the mean of data at 40, 50 and 00 minutes) and at 30 (taking the mean of data at 10, 20 and 30 minutes)

Re: [R] RGB -> CYMK, with consistent colors

2020-12-02 Thread Derek Jones
Martin, However after some testing. I totally agree that CMYK handling in R using pdf(..., colormodel = "cmyk") is not correct. Looking at the source code of the function PostScriptSetCol in file src/librarygrDevices/src/devPS.c the conversion to CMYK looks correct. Looking at the generated p

Re: [R] Add a third .libPath

2020-12-02 Thread Jeff Reichman
Duncan Yea sort of knew that (lib path) but was hoping Anyway I'm sure our IT folks will allow your suggestion while they go about their actions to cert R / RStudio. Jeff Newmiller provided another option too. Jeff -Original Message- From: Duncan Murdoch Sent: Wednesday, Decemb

Re: [R] Add a third .libPath

2020-12-02 Thread Jeff Newmiller
Current versions of Windows support user environment variables also, so having Administrator change the PATH should not be necessary. On December 2, 2020 7:20:16 AM PST, Duncan Murdoch wrote: >You are mixing up two different things. > >The .libPaths() function returns paths where R searches for

Re: [R] Add a third .libPath

2020-12-02 Thread Duncan Murdoch
You are mixing up two different things. The .libPaths() function returns paths where R searches for R packages. Rtools is not an R package, it is a collection of utilities and support files to run in Windows. For Rtools to be found, you need to add it to the Windows PATH variable, not to .li

[R] Add a third .libPath

2020-12-02 Thread Jeff Reichman
r-help Forum My employer has not yet approved R/RStudio but has allowed me to run R/RStudio from profile. I need to add RTools but not sure I can run RTools from the same location. So I unzipped Rtools and added the folder to my profile location containing R and RStudio and then modified my

Re: [R] calling r from java

2020-12-02 Thread Eduard Drenth
For those interested, I succeeded in creating a stable, fast Java/R connection using https://search.maven.org/search?q=g:org.rosuda.REngine . The whole solution has a maven/docker setup making it reproducable. -Original Message- From: Eduard Drenth To: r-help@r-project.org Subject: Re:

Re: [R] scott-knot ESD effect size test

2020-12-02 Thread Neha gupta
Thank you Michael, But when we use the package, how to perform the test? library(ScottKnottESD) Can we do like sk <- sk_esd(svm, nn) to measure the effect size between the svm and nn ? On Wed, Dec 2, 2020 at 11:54 AM Michael Dewey wrote: > There seems to be a package on CRAN dedicated ex

Re: [R] scott-knot ESD effect size test

2020-12-02 Thread Michael Dewey
There seems to be a package on CRAN dedicated exclusively to this test. It is called ScottKnotESD rather unoriginally. Michael. On 02/12/2020 10:32, Neha gupta wrote: I have the following data from resample svm= svm$resample$RMSE nn= nn$resample$RMSE we perform the statistical tests like wi

[R] scott-knot ESD effect size test

2020-12-02 Thread Neha gupta
I have the following data from resample svm= svm$resample$RMSE nn= nn$resample$RMSE we perform the statistical tests like wilcox.test(svm, nn) I have a question, can we perform the scott-knot ESD test here? if yes, how? [[alternative HTML version deleted]]