similar to: Error: subscript out of bounds (PR#9305)

Displaying 20 results from an estimated 10000 matches similar to: "Error: subscript out of bounds (PR#9305)"

2010 Jun 14
2
error: subscript out of bounds?
Hi all, I want to get results for cox proportional hazards on SNP data. I'm trying to get HRs, CI's, & p-values for each individual SNP - this is represented by cov[,i]. When I run my code, I get the following error: subscript out of bounds. I don't know why I am getting this error. I have looked through the R logs, but nothing that has been previously suggested has helped so
2018 Feb 21
1
TreeBUGS - subscript out of bounds
Dear all, ? I've only (very) recently started to use R (so please be easy on me if I may omit to mention relevant information or have overlooked fairly basic steps to solving the problem, since I do not have a lot of experience) because I'm interested in multinomial processing tree modeling with the TreeBUGS package (Heck, Arnold & Arnold 2017 - TreeBUGS: An R package for hierarchical
2001 Nov 12
3
'subscript out of bounds' in matrices
Dear list Having read through all the archives of the mailing lists, I've had no luck finding the answer to my problem. I am running a for(i in 1:n) loop and am creating a matrix, p, for each of the n observations. This matrix p is a 2x1 matrix. I am then doing the following: diagp<-diag(c(p[1,1],p[2,1])) to create a matrix with the elements of P on the diagonal (i.e. a 4x4 matrix).
2004 Jul 20
1
Error: subscript out of bounds
Hi I am running a simulation that involves a loop calling three 2 functions that I have written. Everything works fine when the inside of the loop is performed up to 1000 times (for (i in 1:750)). However, I sometimes get : ''Error: subscript out of bounds'' if I try to increase the loop 'size' to 1000. I am thinking it has to to with memory but I am not sure. I have
2012 Jan 25
1
Error in predict.randomForest ... subscript out of bounds with NULL name in X
RF trains fine with X, but fails on prediction > library(randomForest) > chirps <- c(20,16.0,19.8,18.4,17.1,15.5,14.7,17.1,15.4,16.2,15,17.2,16,17,14.1) > temp <- c(88.6,71.6,93.3,84.3,80.6,75.2,69.7,82,69.4,83.3,78.6,82.6,80.6,83.5,76 .3) > X <- cbind(1,chirps) > rf <- randomForest(X, temp) > yp <- predict(rf, X) Error in predict.randomForest(rf, X) : subscript
2011 Mar 24
2
Questions for "domist... subscript out of bounds"
Hi all, I am a new user for R. I faced a questions about subscript out of bounds. Although I checked some other helps before I sent this email, I still don't know how to deal with this problems. I want to use "domain" function to run species distribution model in R. I used "sp.occ.do<-domain(env.pre, pred_train, factors=c('continent')) &
2010 Mar 14
1
Error in object$tables[[v]] : subscript out of bounds
Hi, Could you please tell me how I correct the following error message? “Error in object$tables[[v]] : subscript out of bounds” This is the code: library(e1071) data(iris) attach(iris) class_label <- names(iris)[1] myformula <- formula(paste(class_label,"~ .")) mymodel<-naiveBayes(myformula, iris,cross=3) predict(mymodel,iris) ##Error in object$tables[[v]] :
2012 Mar 13
1
Error " subscript out of bounds"
Hello, R-users,   I have a datafile with 37313 records and each record has 5 different measurements on the same variables. The format looks like this: treeID, VIG0, VIG1, VIG2, VIG3, VIG4 I was trying to convert the one row record to 5 rows record with format like this (treeID, MEASUREMENT, VIGOR). My code like this:   treeMeas<-matrix(data=0,nrow=(length(tree1$indivTree)*5), ncol=3)
2011 Mar 05
2
subscript out of bounds
Dear ALL I cannot run this line stat.obs <- apply (GS, 2, function(z) Hott2(t(DATA[which(z==1),]), cl)) Error in Hott2 (t(DATA[which(z == 1), ]), cl) : subscript out of bounds I will be glade if you guide me. ******************************************************************************* *GS is a matrix 1857*200 *DATA is a matrix 1857*79 *cl <- as.factor(y)
2008 Dec 01
1
Error: "subscript out of bounds"
Hi All, I am trying to replace the "NA" values in a matrix by using the following function: it gets a "name" of the matrix or list or vector and turns it to a matrix called "m". then checks the elements of the matrix and if any of them is "NA" replace them with "0". rep=function(name){ m=as.matrix(name) for(i in 1:length(m)){ for(j in
2002 Mar 13
3
Error: subscript out of bounds
How can locate in my program an error of that kind (Error: subscript out of bounds)? -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
2010 May 25
2
error : subscript out of bounds
Hi, I'm trying to calculate euclidean distance for my matrix rx1. Its a big matrix with 947 elements. However when i do the following, for(k in 1:947) for(m in (k+1):947){ A =rbind(A,c(k,m,ED(rx1[,k], rx1[,m]))) } I get the following error: ED(rx1[,k], rx1[,m]) : subscript out of bounds I checked for k in 1:100 and it runs fine; its a huge matrix and takes atleast an hour to run before I
2003 Dec 09
2
problem with pls(x, y, ..., ncomp = 16): Error in inherit s( x, "data.frame") : subscript out of bounds
I don't know the details of pls (in the pls.pcr package, I assume), but if you use validation="CV", that says you want to use CV to select the best number of components. Then why would you specify ncomp as well? Andy > From: ryszard.czerminski at pharma.novartis.com > > When I try to use ncomp parameter in pls procedure I get > following error: > > >
2013 Jul 12
2
vegan capscale 'subscript out of bounds' error
Hi list, I am using the capscale function in vegan_2.0-7 to do a constrained principal coordinates analysis, and I kept getting the following error message: Error in Y.r[, oo, drop = FALSE] : subscript out of bounds I googled but I couldn't find an answer. Could anyone tell me why this error msg and what to do? Here is the command I used:
2011 Sep 10
2
Error : subscript out of bounds
m<-matrix(byrow=FALSE) t<-as.list(na.exclude(x)) j<-0 o<-0 for(i in 1:998) { d<- 5*(i-1)+3 if(t[[d]][[1]]>80) { j<-j+1 e[j]<-d l<-length(t[[d]]) u<-t[[d]] price_rand<-t[[d-1]] n<-0 for(k in 1:l) { if((u[k]>49)&&(u[k]<51)) { n<-n+1 m[n,j]<-price_rand[k] } } } } I am getting error in assigning the values to a matrix. *Error in m[n, j]
2007 Jul 25
2
Subscript out of bounds when using datadist() from Design library
I am running R version 2.4.1 on Windows XP. I have a question regarding the datadist() function from the Design library. I have a data.frame (call it my.data) with 4 columns. When I submit the code datadist(data=my.data) I get the following error message: Error in X[[1]] : subscript out of bounds I suspect there may be something wrong with my data.frame (I'm certain there is nothing
2007 Jun 15
1
subscript out of bounds error in lda
I work with Windows, R version 2.4.1 I'm trying to do a discriminant analysis and, in trying to figure out how to do it following the example from R help, I'm getting an error that says 'subscript out of bounds'. I don't know what this means and how to solve it (I'm very new with R) I'm doing everything in this made-up test matrix: group var1 var2 var3 1 1
2007 Feb 13
1
RE2: Suddenly "Subscript out of bounds"
If you tell me how to update R itself automatically, I will go for your advice. I am not aware of any method to do it... Bye Rick "ONKELINX, Thierry"
2012 Oct 26
1
SPACECAP error "subscript out of bounds"
CENTERS.csv <http://r.789695.n4.nabble.com/file/n4647606/CENTERS.csv> Hello all, I'm trying to run SPACECAP. A couple of days ago I ran it with a centers file with 300 GPS points, now I'm trying to run it with 2250, but I get this error: Error in NN[i, 1:length(od)] <- od : subscript out of bounds I tried running SPACECAP with 1000 and 2000 points, but it still is not
2012 May 11
1
Strange "Error: subscript out of bounds"
Dear all, I am trying to write a function for visualizing ordinal model results. The function works fine with some values, but then I get "Error: subscript out of bounds" even there the index should be pointing a legal item. Code is below as well as the example of failure: plotProb <- function(pre.mat, parts, split, titles, xlab="") { par(mfrow = split) n <- 1