Re: [R] [FORGED] Re: Fwd: Rpart help

2017-05-23 Thread Rolf Turner
On 24/05/17 14:38, Bert Gunter wrote: Forget Excel. Erase it from your memory. banish its paradigms from your practices. Faiing to do so will only bring misery as you explore R. R is a rational programming language primarily for data analysis, statistics, and graphics. Excel is, ummm, not.

Re: [R] Fwd: Rpart help

2017-05-23 Thread Bert Gunter
1. Forget Excel. Erase it from your memory. banish its paradigms from your practices. Faiing to do so will only bring misery as you explore R. R is a rational programming language primarily for data analysis, statistics, and graphics. Excel is, ummm, not. 2. Have you read the rpart documents and

Re: [R] Apriori Results- Same number to support an confidence

2017-05-23 Thread Bert Gunter
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 Tue, May 23, 2017 at 3:52 PM, Raquel D. wrote: > Hi! > > > Does anybody knows why it

[R] Fwd: Rpart help

2017-05-23 Thread kristen wissmar
Hi R users! I'm new to R, so I'm starting with a basic exercise in rpart. I'm predicting if a user will churn based on past order history. I've calculated the probabilities in excel, and if user is a single order customer (1), then their probability of churn is 90%, if there are multiple

[R] ggplot problem

2017-05-23 Thread greg holly
Hi all; When I run the following program substantially I have "Warning message: position_dodge requires non-overlapping x intervals" How I can overcome this problem. Regards, Greg p <- ggplot() + geom_point(data=a, aes(x=Betas, y=Traits, color= Super.Pathway), shape=15, size=4) p <- p +

Re: [R] Forecast using VAR model

2017-05-23 Thread John C Frain
Dhivya You have two variables speed and vibration. It strikes me that speed causes vibration and vibration does not cause speed. Forgive me if I have misunderstood. In such a case you would be better off using an ARMAX model with vibration as dependent variable and speed as an explanatory

[R] prcomp: Error in La.svd(x, nu, nv): error code 1 from Lapack routine "dgesdd"

2017-05-23 Thread Fix Ace via R-help
Dear R community, I have a data matrix (531X314), and would like to apply the prcomp. However, I got this error Lapack message. I am using R3.2.2. I googled a bit and found that it might be related to converge issue.  Just wonder if there is a way to get around it? Thank you very much! Ace

Re: [R] Compiling R with zlib in non-standard location

2017-05-23 Thread David Chin
Hi Marc, Pre-compiled RPMs for R are up to 3x slower than "self-compiled" R using Intel MKL. Yes, I do know about Microsoft R Open, but it wants to overwrite the default /usr/bin/R and I have AMD machines in my cluster, which cannot run MRO. So, I want to do my own compilation and install R in a

Re: [R] Identyfing rows with specific conditions

2017-05-23 Thread David L Carlson
You will generally get a better response if you create a data set that we can test our ideas on. You sketched out the data but your final results include meal combinations that are not in your Meals data frame. Also using dput() to provide the data makes it easier to recreate the data since

Re: [R] Compiling R with zlib in non-standard location

2017-05-23 Thread Marc Schwartz
Hi David, It has been a while since I have worked on RH based systems, but looking at Martyn's reply, which includes: CFLAGS="-g -O2 -I/path/to/my/headers" \ LDFLAGS="-L/path/to/my/libs" \ ./configure and references to the R Installation and Administration manual sections B3.3 and B7, if you

Re: [R] Compiling R with zlib in non-standard location

2017-05-23 Thread David Chin
Hi Marc, Pre-compiled RPMs for R are up to 3x slower than "self-compiled" R using Intel MKL. Yes, I do know about Microsoft R Open, but it wants to overwrite the default /usr/bin/R and I have AMD machines in my cluster, which cannot run MRO. So, I want to do my own compilation and install R in a

Re: [R] Fitdistrplus and Parameter Constraints

2017-05-23 Thread Christophe Dutang
Dear Lorenzo, Please do read the posting guide (https://www.r-project.org/posting-guide.html) : The ‘main’ R mailing list, for discussion about problems and solutions using R, about the availability of new functionality for R and documentation of R, comparison and compatibility with S-plus,

Re: [R] Compiling R with zlib in non-standard location

2017-05-23 Thread Marc Schwartz
> On May 23, 2017, at 11:07 AM, David Chin wrote: > > Hi all, > > I am trying to compile R 3.4.0 on a RHEL 6.5 system. R requires a newer > version of zlib than is standard on RHEL 6.5. I do have a newer version > that satisfies R's requirement, but the configure

[R] Compiling R with zlib in non-standard location

2017-05-23 Thread David Chin
Hi all, I am trying to compile R 3.4.0 on a RHEL 6.5 system. R requires a newer version of zlib than is standard on RHEL 6.5. I do have a newer version that satisfies R's requirement, but the configure script gives no way of specifying a non-standard location of zlib. Is there a way around this?

Re: [R] About change columns and specific rows in R

2017-05-23 Thread lily li
Thanks for all your help. It works now. On Tue, May 23, 2017 at 1:34 AM, William Michels via R-help < r-help@r-project.org> wrote: > Hi Ivan, > > I was just writing a follow-up note as your note came in. While the > code I posted previously works fine, using which() is unnecessary. > > > DF <-

[R] Fitdistrplus and Parameter Constraints

2017-05-23 Thread Lorenzo Isella
Dear All, In principle it is a simple question, but not idea about how to tackle it. Suppose you have a distribution depending on two parameters, e.g. beta(a,b). For some reasons, you want to impose that the two parameters of the beta distribution are identical, i.e. you want to fit your data to

[R] Xtractomatic version 3.3.2 now available on CRAN

2017-05-23 Thread Roy Mendelssohn - NOAA Federal
The xtractomatic package version 3.3.2 is now available on CRAN. Besides the improvements listed below, this release fixes a problem caused by an update to the Apache Tomcat used by the ERDDAP server, that broke an important function in the package. Many thanks to the CRAN maintainers for

Re: [R] Installing ranger package in Ubuntu 14

2017-05-23 Thread Jeff Newmiller
A) This should be asked on R-sig-debian or R-devel. This list is about the R language and basic installation issues... compiled installation debugging requires OS and C language skills that are OT here. B) You should read and follow the advice in the Posting Guide for all R mailing lists,

[R] [R-pkgs] Announcing snakecase 0.4.0

2017-05-23 Thread Malte Grosser via R-packages
I am pleased to announce a fresh and simple approach on automatic caseconversion with a concise design philosophy via the snakecase-pkg ( https://cran.r-project.org/package=snakecase). Just use to_any_case(string, case) and (if the cases are too complex for the default options) provide its most

Re: [R] R-help Digest, Vol 171, Issue 20

2017-05-23 Thread Crump, Ron
Hi Brigitte, >Did somebody know why asreml does not provide the same REML loglikehood >as coxme, lme4 or lmne. I don't know the answer to this, but I'd guess it is either to do with the use of the average information REML algorithm or asreml-r is for some reason ending up with a different subset

[R] Installing ranger package in Ubuntu 14

2017-05-23 Thread Iván Blanco
I'm trying to install ranger package (any version) in Ubuntu 14 from a tar.gz file already downloaded, but unsuccessfully. System admin has already installed gcc 5.4 and g++ 5.4 and I've created a ~/.R/Makevars file pointing to these compilers instead of gcc 4.8 that comes in Ubuntu 14 by

Re: [R] P value of VAR model from Portmanteau Test

2017-05-23 Thread Rui Barradas
Hello, It seems to be right. You have Chi-squared = 23.724, df = 8, p-value = 0.002549. So try the R function ?pchisq: pchisq(23.724, df = 8, lower = FALSE) [1] 0.002549054 Hope this helps, Rui Barradas Em 23-05-2017 13:08, Dhivya Narayanasamy escreveu: Hi, I am working with bivariate

[R] P value of VAR model from Portmanteau Test

2017-05-23 Thread Dhivya Narayanasamy
Hi, I am working with bivariate time series data. I used VAR model to fit and forecast. But the "*p*" value from seria.test (Portmanteau Test) gives values *p<< 0.05*. Is that okay? > var1 = VAR(datax.ts, p= 8) > serial.test(var1, lags.pt=10, type = "PT.asymptotic") Portmanteau Test

[R] Error in readRDS(dest) (was Re: Error with installed.packages with R 3.4.0 on Windows)

2017-05-23 Thread Martin Maechler
> Patrick Connolly > on Tue, 23 May 2017 20:47:22 +1200 writes: > On Mon, 22-May-2017 at 05:43AM -0400, Martin Morgan wrote: > |> On 05/22/2017 05:10 AM, Patrick Connolly wrote: > |> >Apparently it isn't harmless. > |> > > |>

Re: [R] Duplicate row names are not allowed

2017-05-23 Thread peter dalgaard
Presumably, RCommander's readXL generates an invalid data frame (John?). To investigate, look at row.names(Dataset) and to fix row.names(Dataset) <- NULL If the issue is that Dataset really isn't a data frame, maybe try Dataset <- as.data.frame(Dataset). [Your screenshot made it through to

[R] Error in readRDS(dest) (was Re: Error with installed.packages with R 3.4.0 on Windows)

2017-05-23 Thread Patrick Connolly
On Mon, 22-May-2017 at 05:43AM -0400, Martin Morgan wrote: |> On 05/22/2017 05:10 AM, Patrick Connolly wrote: |> >Apparently it isn't harmless. |> > |> >>install.packages("withr") |> >Error in readRDS(dest) : error reading from connection |> |> that seems like a plain-old network connectivity

Re: [R] About change columns and specific rows in R

2017-05-23 Thread William Michels via R-help
Hi Ivan, I was just writing a follow-up note as your note came in. While the code I posted previously works fine, using which() is unnecessary. > DF <- read.csv("~/lily.csv") > DF$product1_1 <- NA > DF$product1_1 <- DF[DF$month == 1, "product1"]*3.1 Error in `$<-.data.frame`(`*tmp*`,

Re: [R] About change columns and specific rows in R

2017-05-23 Thread Ivan Calandra
Hi, Actually, you don't need to create the column first, nor to use which: DF[DF$month==1, "product1_1"] = DF[DF$month==1, "product1"] * 3.1 The "[" is a great tool that you need to learn. In this case, you don't need to combine "[" and $: within the square brackets, the vector before the

Re: [R] About change columns and specific rows in R

2017-05-23 Thread William Michels via R-help
Hi Lily, You're on the right track, but you should define a new column first (filled with NA values), then specify the precise rows and columns on both the left and right hand sides of the assignment operator that will be altered. Luckily, this is pretty easy...just remember to use which() on the