search for: 0array

Displaying 2 results from an estimated 2 matches for "0array".

Did you mean: array
2004 Jul 28
3
Best way to store negative indexes
...o store the actual data because of course doing my_vector[i -j] will not work because the index could be negative. I know there's no hash table so what's the best solution, simplicity-wise ? Use a list of pair of values {index, i - j} ? Or can I somehow use negative index, perhaps using 0array ? Any help would be appreciated :) ATM, I use as.character (i-j) to index my data, but I lose all the processing power of R there after. Sorry If it's written somewhere, but I read a lot of docs about it, searched through the ML archives and didn't manage to find an answer. Please als...
2005 Jul 24
2
indexing a vector starting from 0
Hi All, I would like to ask if it possible to start indexing a vector from 0: x = 1:10 y = c(0,0,3,4,5,6,0,8,9,10) I need to use y as an index to extract the values of x, BUT I cannot cull/transform the 0s. What I would like is to start counting the elements of x 0:9 rather than 1:10. Would this be at all possible? Regards, Federico Calboli -- Federico C. F. Calboli Department of