search for: xsubset

Displaying 2 results from an estimated 2 matches for "xsubset".

Did you mean: subset
2012 Feb 11
1
object not found - Can not figure out why I get this error: Error in NROW(yCoordinatesOfLines) : object 'low' not found
...ction: require(quantmod) # Add horizontal line to graph produced by quantmod::chart_Series() add_HorizontalLine<-function(yCoordinatesOfLines, on=1, ...) { lenv <- new.env() lenv$add_horizontalline <- function(x, yCoordinatesOfLines, ...) { xdata <- x$Env$xdata xsubset <- x$Env$xsubset x0coords <- rep(1, NROW(yCoordinatesOfLines)) x1coords <- rep(NROW(xdata[xsubset]), NROW(yCoordinatesOfLines)) if ((NROW(x0coords) > 0) & (NROW(x1coords) > 0)) { segments(x0coords, yCoordinatesOfLines,...
2012 Nov 30
3
Line numbers with errors and warnings?
Is it possible to get a line number with an error report? I have a long script and an error: Error in `[.xts`(x, xsubset) : subscript out of bounds It would be very helpful, and save a lot of time, if there was some indication in the error message which line the error was. I can find it using binary search but that is a painful process. cheers Worik [[alternative HTML version deleted]]