search for: hereisabigvariablenam

Displaying 1 result from an estimated 1 matches for "hereisabigvariablenam".

Did you mean: hereisabigvariablename
2006 Aug 10
3
Is there a better way than x[1:length(x)-1] ?
...or whatever (note that in MATLAB the parenthetic index notation is used, not brackets as in R). The point is that 'end' allows you to refer to the final index point of the array. Obviously there isn't much gain in syntax when the variable name is x, but when it's something like hereIsABigVariableName(j:end-i) it makes things a lot more readable than hereIsABigVariableName(j:length(hereIsABigVariableName)-i) In R I could do: n<- length(hereIsABigVariableName) hereIsABigVariableName[j:n-i] but I'd like to use something like 'end', if it exists. Am I missing something obvi...