Hallo everybody! I am trying to perform a TiTAN (Baker & King 2010) analysis with R 2.14.1. I have come that far: h89Abund <- read.csv("Fish89Abund.csv")> names (Fish89Abund)[1] "StationCode" "Abramisbrama" "Alburnoidesbipunctatus" "Alburnusalburnus" [5] "Ameiurusmelas"> Fish89PCA <-read.csv("Fish89PCA.csv") > names (Fish89PCA)[1] "StationCode" "PCA1"> # Check data (1:X rows, e.g. 1:3,=1.-3.row or else) > Fish89PCA [1:3,]StationCode PCA1 1 DE582 -1.5592527 2 DE38 0.3530658 3 FR02116570 2.8057854> > names (Fish89PCA)[1] "StationCode" "PCA1"> Fish89TiTAN <- titan(Fish89PCA, Fish89Abund, minsplt=5,+ numprm=250, nboot=500, boot=TRUE, deviance=TRUE) [1] "Taxa frequency screen complete" [1] "Function definition complete" Error in is.data.frame(x) : subscript out of bounds This essror mesage is killing me. I checked the data tables and the internet, but nowhere any satisfying answer. Can anybody help me please? Thanks in advance!! -- View this message in context: http://r.789695.n4.nabble.com/error-data-frame-tp4649491.html Sent from the R help mailing list archive at Nabble.com.
Hello, You don't provide a reproducible example. And, also, the package the "titan" function comes from. The function I found doesn't use the options you used in yours. Regards, Pascal Le 14/11/2012 23:10, Sonja69 a ?crit :> Hallo everybody! > I am trying to perform a TiTAN (Baker & King 2010) analysis with R 2.14.1. I > have come that far: > > h89Abund <- read.csv("Fish89Abund.csv") >> names (Fish89Abund) > [1] "StationCode" "Abramisbrama" > "Alburnoidesbipunctatus" "Alburnusalburnus" > [5] "Ameiurusmelas" >> Fish89PCA <-read.csv("Fish89PCA.csv") >> names (Fish89PCA) > [1] "StationCode" "PCA1" >> # Check data (1:X rows, e.g. 1:3,=1.-3.row or else) >> Fish89PCA [1:3,] > StationCode PCA1 > 1 DE582 -1.5592527 > 2 DE38 0.3530658 > 3 FR02116570 2.8057854 >> >> names (Fish89PCA) > [1] "StationCode" "PCA1" >> Fish89TiTAN <- titan(Fish89PCA, Fish89Abund, minsplt=5, > + numprm=250, nboot=500, boot=TRUE, deviance=TRUE) > [1] "Taxa frequency screen complete" > [1] "Function definition complete" > > Error in is.data.frame(x) : subscript out of bounds > > This essror mesage is killing me. I checked the data tables and the > internet, but nowhere any satisfying answer. > Can anybody help me please? Thanks in advance!! > > > > > -- > View this message in context: http://r.789695.n4.nabble.com/error-data-frame-tp4649491.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
Hello, Your function is a supplementary material. I tried to apply this function using the example provided and it failed. I use R version 2.15.2 (2012-10-26). Regards, Pascal Le 15/11/2012 15:36, Stendera, Sonja, Dr. a ?crit :> Thanks, but sorry, that's all I have. I ran the script with the functions provided by Baker & King, installed the package, improrted the data files, but then, when I try this formula: > Fish89TiTAN <- titan(Fish89PCA, Fish89Abund, minsplt=5, >> + numprm=250, nboot=500, boot=TRUE, deviance=TRUE) (Baker & King) > I get the error. > Best, Sonja > ________________________________________ > Von: Pascal Oettli [kridox at ymail.com] > Gesendet: Donnerstag, 15. November 2012 03:26 > An: Sonja69 > Cc: r-help at r-project.org > Betreff: Re: [R] error data frame > > Hello, > > You don't provide a reproducible example. And, also, the package the > "titan" function comes from. The function I found doesn't use the > options you used in yours. > > Regards, > Pascal > > > Le 14/11/2012 23:10, Sonja69 a ?crit : >> Hallo everybody! >> I am trying to perform a TiTAN (Baker & King 2010) analysis with R 2.14.1. I >> have come that far: >> >> h89Abund <- read.csv("Fish89Abund.csv") >>> names (Fish89Abund) >> [1] "StationCode" "Abramisbrama" >> "Alburnoidesbipunctatus" "Alburnusalburnus" >> [5] "Ameiurusmelas" >>> Fish89PCA <-read.csv("Fish89PCA.csv") >>> names (Fish89PCA) >> [1] "StationCode" "PCA1" >>> # Check data (1:X rows, e.g. 1:3,=1.-3.row or else) >>> Fish89PCA [1:3,] >> StationCode PCA1 >> 1 DE582 -1.5592527 >> 2 DE38 0.3530658 >> 3 FR02116570 2.8057854 >>> >>> names (Fish89PCA) >> [1] "StationCode" "PCA1" >>> Fish89TiTAN <- titan(Fish89PCA, Fish89Abund, minsplt=5, >> + numprm=250, nboot=500, boot=TRUE, deviance=TRUE) >> [1] "Taxa frequency screen complete" >> [1] "Function definition complete" >> >> Error in is.data.frame(x) : subscript out of bounds >> >> This essror mesage is killing me. I checked the data tables and the >> internet, but nowhere any satisfying answer. >> Can anybody help me please? Thanks in advance!! >> >> >> >> >> -- >> View this message in context: http://r.789695.n4.nabble.com/error-data-frame-tp4649491.html >> Sent from the R help mailing list archive at Nabble.com. >> >> ______________________________________________ >> R-help at r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> >