Re: [R] Help to find ksl data set

2018-10-03 Thread David Winsemius
> On Oct 3, 2018, at 10:18 PM, Jiblal Upadhya wrote: > > Hi, > > I need help in finding the ksl data set mention in the deal package in the > paper attached. I searched in the UCI Machine learning repository, but > couldn’t find. The paper makes me think it is in the archived package (last u

Re: [R] Logic operators...more than one??

2018-10-03 Thread Bert Gunter
Inline. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Wed, Oct 3, 2018 at 4:02 PM David Doyle wrote: > I'm sure this is a simple question but I'm no

Re: [R] Logic operators...more than one??

2018-10-03 Thread Marc Schwartz via R-help
> On Oct 3, 2018, at 7:03 PM, David Doyle wrote: > > I'm sure this is a simple question but I'm not sure where to find the > answer. > > I want to remove some of the data. For example when my Location column is > MW-09, MW-10, or MW-11. > > It works fine if I ONLY list ONE of the locations a

Re: [R] Logic operators...more than one??

2018-10-03 Thread Jim Lemon
Hi David, I think you want this: SampledWells <- MyData[!( MyData$Location %in% c("MW-09", "MW-10")), ] Jim On Thu, Oct 4, 2018 at 9:02 AM David Doyle wrote: > > I'm sure this is a simple question but I'm not sure where to find the > answer. > > I want to remove some of the data. For example w

[R] Logic operators...more than one??

2018-10-03 Thread David Doyle
I'm sure this is a simple question but I'm not sure where to find the answer. I want to remove some of the data. For example when my Location column is MW-09, MW-10, or MW-11. It works fine if I ONLY list ONE of the locations as in: SampledWells <- MyData[ MyData$Location != "MW-09", ] But if

[R] Revolutions blog: September 2018 roundup

2018-10-03 Thread David Smith (CDA) via R-help
Since 2008, Microsoft staff and guests have written about R at the Revolutions blog (http://blog.revolutionanalytics.com) and every month I post a summary of articles from the previous month of particular interest to readers of r-help. In case you missed them, here are some articles related to R f

Re: [R] Maximum number of iterations (maxit) does not work in hydroPSO-modFit-optimr in r

2018-10-03 Thread ProfJCNash
As the author of optimx (there is a new version just up), I can say that maxit only "works" if the underlying solver is set up to use it. You seem to be mistaken, however, in this case, as the following example shows. > library(optimx) > library(adagio) > sessionInfo() R version 3.5.1 (2018-07-02

[R] Maximum number of iterations (maxit) does not work in hydroPSO-modFit-optimr in r

2018-10-03 Thread Ahmed Attia
The argument maxit used in libraries optimr, hydroPSO, and FME to control the maximal number of iterations to be performed does not work at ALL!! This needs to be fixed... mysamp <- function(n, m, s, lwr, upr, nnorm) { samp <- rnorm(nnorm, m, s) samp <- samp[samp >= lwr & samp <= upr] if

Re: [R] R - Reading a horizontally arranged csv file, replacing values and saving again

2018-10-03 Thread William Dunlap via R-help
Using read.table to read data with a variable number of entries per row is probably a mistake - data.frames (which read.table returns) are not meant for this sort of data. You want to store the data in R as a list with names. E.g., readYourFormat <- function(connection) { # connection is a f

Re: [R] Sp-package overlay

2018-10-03 Thread MacQueen, Don via R-help
In addition, the function you want is sp::over or its equivalent in sf -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 On 10/2/18, 1:41 PM, "R-help on behalf of Ben Tupper" wrote: Hi, I'm pr

Re: [R] Polygon

2018-10-03 Thread Rui Barradas
Hello, If you change cord.x and cord.y to cord.x <- c(-3, seq(-3, -1.96, 0.01), -1.96) cord.y <- c(0, dnorm(seq(-3, -1.96, 0.01)), 0) then you will not need the call to abline. Hope this helps, Rui Barradas Às 02:50 de 03/10/2018, Steven Yen escreveu: Thanks!!! It did wonders. Steven On

Re: [R] R - Reading a horizontally arranged csv file, replacing values and saving again

2018-10-03 Thread Manoranjan Muthusamy
Thanks for the short but informative answer, Bill. But still, each row has four columns..right? Although the *NA* is replaced by a blank cell, because of the extra comma it still is a four column row. Is there any way to avoid/remove the extra comma when NA is replaced which will make it a three co