Re: [R] Please help me, I'm trying to update my version of R

2016-08-22 Thread Thomas Mailund
Hi Ken, You are trying to install R as a package. That won't work. The .pkg file you downloaded from https://cran.r-project.org/bin/macosx/ is an installer, though, so if you just double-click on it, it should take you through the installation. After that you probably need to install a number

[R] Please help me, I'm trying to update my version of R

2016-08-22 Thread KMNanus
I’m a newbie running 3.2.4 on a mac equipped with Yosemite (10.10.5). I want to update to 3.3.1 and have downloaded the package, but have not been able to install it. I’ve tried install.packages("R-3.3.1.tar.gz”) and install.packages("R-3.3.1.pkg”) after downloading both files. I get an error

Re: [R] Estimated Effects Not Balanced

2016-08-22 Thread Bert Gunter
Thanks, Rich. I didn't notice that! -- 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 Mon, Aug 22, 2016 at 1:43 PM, Richard M. Heiberger

Re: [R] Estimated Effects Not Balanced

2016-08-22 Thread Richard M. Heiberger
The problem is that you have 12 observations and 1+2+10=13 degrees of freedom. There should be 1 + 2 + 8 = 11 degrees of freedom. Probably one of your variables is masked by something else in you workspace. Protect yourself by using a data.frame > tmp <-

Re: [R] Loop over folder files

2016-08-22 Thread David Winsemius
> On Aug 22, 2016, at 10:40 AM, Juan Ceccarelli Arias wrote: > > I removed the data,frame=True... > I obtain this warnings... > Error in read.dta(fuente[i]) : not a Stata version 5-12 .dta file Well, that seems fairly self-explanatory. What version of Stata are you using

Re: [R] Loop over folder files

2016-08-22 Thread Juan Ceccarelli Arias
I removed the data,frame=True... I obtain this warnings... Error in read.dta(fuente[i]) : not a Stata version 5-12 .dta file In addition: There were 50 or more warnings (use warnings() to see the first 50) the warnings() throws this Warning messages: 1: In `levels<-`(`*tmp*`, value = if (nl ==

Re: [R] persp fail with non-equidistant dates

2016-08-22 Thread Duncan Murdoch
Please keep discussion on the mailing list. On 22/08/2016 12:08 PM, Tomas Bayer wrote: Hello, we have tried the pre-processing till now but also with this error message: akima.li <- interp(x, y, F, xo=seq(min(x), max(x), length = 100), yo=seq(min(y), max(y), length = 100)) Error: could not

Re: [R] Loop over folder files

2016-08-22 Thread ruipbarradas
Hello, That argument doesn't exist, hence the error. Read the help page ?read.dta more carefully. You will see that already read.dta reads into a data.frame. Hope this helps, Rui Barradas   Citando Juan Ceccarelli Arias : > Hi > I need to apply some code over some stata

Re: [R] Chaid Decision Tree

2016-08-22 Thread Achim Zeileis
On Mon, 22 Aug 2016, MIKE DE LA HOZ wrote: Hi, I am running a chaid tree using titanic dataset (see attachment) setwd("C:/Users/miguel") titanic <- read.csv("train.csv") titanic.s <- subset( titanic, select = -c(PassengerId, Name ) ) ctrl <- chaid_control(minsplit = 20, minbucket = 5,

[R] Loop over folder files

2016-08-22 Thread Juan Ceccarelli Arias
Hi I need to apply some code over some stata files that are in folder. I've wrote this library(foreign) fuente=list.files("C:/Users/Jceccarelli/Bases/Stata", pattern="dta$", full.names=FALSE) for (i in 1:length(fuente)){ xxx=read.dta(fuente[i], to.data.frame=TRUE) } But i get this error

[R] Lemmatization with WORDNET package

2016-08-22 Thread BHANUMATHI H M
Sir I am working on classification project before that i have to do feature selection process. i am very interested to apply lemmatization rather stemming. So i executed the code below according to definition of lemmatization it should give root words like run for running and ran, think for

[R] problem concernig Survsplit, package survival

2016-08-22 Thread Wollschlaeger, Daniel
Thanks for bringing this issue in the book's description of survSplit() to my attention. It seems the change to the behavior of survSplit() was introduced in survival version 2.39-2. Up to (including) version 2.38-3, no formula was required if arguments 'end' and 'event' were specified. A

Re: [R] persp fail with non-equidistant dates

2016-08-22 Thread Duncan Murdoch
On 22/08/2016 11:17 AM, Tomas Bayer wrote: Hello, when I plotted non-equidistant data in 3D (using persp and contour), it was ended with the same error message: persp(y, x, z, xlab="latitude", ylab="longitude", zlab="altiude", main="Altitude") Error in persp.default(y, x, z, xlab =

Re: [R] Estimated Effects Not Balanced

2016-08-22 Thread Bert Gunter
Please! "when I compute the anova R reports that the Estimated Effects are Unbalanced" It does *not* say this. It says that they **may** be unbalanced. They are not. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." --

[R] persp fail with non-equidistant dates

2016-08-22 Thread Tomas Bayer
Hello, when I plotted non-equidistant data in 3D (using persp and contour), it was ended with the same error message: > persp(y, x, z, xlab="latitude", ylab="longitude", zlab="altiude", main="Altitude") Error in persp.default(y, x, z, xlab = "latitude", ylab = "longitude", : increasing 'x' and

[R] Estimated Effects Not Balanced

2016-08-22 Thread Justin Thong
Something does not make sense in R. It has to do with the question of balance and unbalance. *A<-factor(c(1,1,1,1,1,1,2,2,2,2,2,2))* *B<-factor(c(1,1,2,2,3,3,1,1,2,2,3,3))* *y<-rnorm(12)* *mod<-aov(y~A+B)* I was under the impression that the design is balanced ie order does not effect the sums

Re: [R] Intercept in Model Matrix (Parameters not what I expected)

2016-08-22 Thread Bert Gunter
Justin: As you have not yet received any reply... Your question is mostly about statistics (linear models) and, as such, is typically off topic here. Briefly, you do seem confused about contrasts in linear models, but I am confused about your confusion, and so may be of little help. However

Re: [R] read.xlsx function crashing R Studio

2016-08-22 Thread Hadley Wickham
Or readxl. Hadley On Mon, Aug 22, 2016 at 5:54 AM, jim holtman wrote: > try the openxlsx package > > > Jim Holtman > Data Munger Guru > > What is the problem that you are trying to solve? > Tell me what you want to do, not how you want to do it. > > On Sun, Aug 21, 2016 at

Re: [R] problem concernig Survsplit, package survival

2016-08-22 Thread Therneau, Terry M., Ph.D.
On 08/20/2016 05:00 AM, Vinzenz wrote: For some days I have been struggling with a problem concerning the ?survSplit?-function of the package ?survival?. Searching the internet I have found a pretty good -German- description of Daniel Wollschl?r describing how to use survSplit: The survSplit

Re: [R] read.xlsx function crashing R Studio

2016-08-22 Thread jim holtman
try the openxlsx package Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Sun, Aug 21, 2016 at 1:30 PM, Kevin Kowitski wrote: > Hey everyone, > >I have used read.xlsx in the

Re: [R-es] Eliminar for de multiplicación de matriz

2016-08-22 Thread Carlos Ortega
Hola, Se me pasó comentarte que para este caso, no veo forma de eliminar el bucle. De todas formas, por ver si tú que conoces lo que buscas solucionar, mira si la función "Vectorize()" te pudiera optimizar un tanto el código... Saludos, Carlos Ortega www.qualityexcellence.es El 18 de agosto de

Re: [R-es] PROMEDIO POR INTERVALOS

2016-08-22 Thread Carlos Ortega
Hola, Yo crearía una columna adicional donde incluiría un string con la fecha y si el intervalo. Y luego sobre esa columna calcularía los promedios que buscas. Para lo primero como tienes que trabajar sobre fechas, utilizaría el paquete "lubridate" que te simplifica mucho la forma de hacerlo. Y

Re: [R] I had 1 problem with r

2016-08-22 Thread peter dalgaard
On 22 Aug 2016, at 07:06 , 정수빈 wrote: > Hi My name is SuBin-Jung from Korea. > > I can't write english well. so, understand me please. > > I used R Gui(64-bit) program. > > And in program, I imported this csv file named "emp.csv" > > emp.csv >

Re: [R] I had 1 problem with r

2016-08-22 Thread Jim Lemon
Hi SuBin, This seems to work: emp<-read.table(text="empno,ename,job,mgr,hiredate,sal,comm,deptno 7369,SMITH,CLERK,7902,1980-12-17,800,,20 7499,ALLEN,SALESMAN,7698,1981-02-20,1600,300,30 7521,WARD,SALESMAN,7698,1981-02-03,1250,500,30 7566,JONES,MANAGER,7839,1981-03-02,2975,,20

[R] I had 1 problem with r

2016-08-22 Thread 정수빈
Hi My name is SuBin-Jung from Korea. I can't write english well. so, understand me please. I used R Gui(64-bit) program. And in program, I imported this csv file named "emp.csv" emp.csv - empno,ename,job,mgr,hiredate,sal,comm,deptno

[R] read.xlsx function crashing R Studio

2016-08-22 Thread Kevin Kowitski
Hey everyone,     I have used read.xlsx in the past rather than XLConnect for importing Excel data to R.  However, I have been finding now that the read.xlsx function has been causing my R studio to Time out.  I thought it might be because the R studio I had was out of date so I installed R