[datatable-help] Obtain the index for an array

dumidu jayasekera dljayasekera at yahoo.com
Wed Mar 16 01:40:08 CET 2016


Hi,
I need to obtain (i.e. from 1 to 23) for "indYear" which means I need my indexing start from 1 to 23. How can I achieve this using R. 
Thanks in advance,
indYear <- which(flows[,1]==tTresults[3,1]):nrow(flows)

> indYear [1] 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/datatable-help/attachments/20160316/8671d75e/attachment.html>


More information about the datatable-help mailing list