Re: [R] error:max not meaningful for factors

2014-07-04 Thread Jim Lemon
On Thu, 3 Jul 2014 12:34:42 PM Marta valdes lopez wrote: > Thank you Jim for your answer.Ok alpha( it is the speed of the boat) is a > range of number from 0.5 to 10 like 0.5,1,1.5,2, I would like to have > the mean of x and y base on each value of alpha, because I have like ten > numbers of

Re: [R] error:max not meaningful for factors

2014-07-04 Thread PIKAL Petr
Petr > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Marta valdes lopez > Sent: Thursday, July 03, 2014 12:35 PM > To: r-help@r-project.org > Subject: Re: [R] error:max not meaningful for factors > >

Re: [R] error:max not meaningful for factors

2014-07-03 Thread Marta valdes lopez
Thank you Jim for your answer.Ok alpha( it is the speed of the boat) is a range of number from 0.5 to 10 like 0.5,1,1.5,2, I would like to have the mean of x and y base on each value of alpha, because I have like ten numbers of x for each value of speed, thats why I want the mean of that and th

Re: [R] error:max not meaningful for factors

2014-07-02 Thread Jim Lemon
On Wed, 2 Jul 2014 02:42:31 PM Marta valdes lopez wrote: > Hello, > > I run this script , because i would like to do the mean of x and y base on > alpha as factor. > > > library(xlsx) > library(ROCR > filename<-"amanhecer roc.csv" > rocdata<- read.table(filename, sep=";",header=TRUE,dec=",") >

[R] error:max not meaningful for factors

2014-07-02 Thread Marta valdes lopez
Hello, I run this script , because i would like to do the mean of x and y base on alpha as factor. library(xlsx) library(ROCR filename<-"amanhecer roc.csv" rocdata<- read.table(filename, sep=";",header=TRUE,dec=",") rocdata$alpha.15_12 <- as.factor(rocdata$alpha.15_12) TPaverage <- tapply(rocd