search for: cutsie

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

Did you mean: cutie
2004 Oct 07
8
Equivalents of Matlab's 'find' and 'end'
...;d like to find an R equivalent for is 'end'. 'end' is just a simple little command that indicates the end of a row/column. It is incredibly handy when used to subset matrices like Y = X(2:end) and produces Y=[2, 1, 1, 2, 3] if the X is the same as in the previous example. This cutsie little command was extremely useful for composing programs that were flexible and could use input matrices of any size without modifying the code. I realize that you can accomplish the same by Y <- X[2:length(X)] in R, but this method is ungainly, particularly when subsetting matrices rather th...