The ‘v’ in `v <- ‘x’` bears no relation to column name ‘v’. I understand how/why this can be confusing. Perhaps we should rename that to `keycol <- ‘x’` or something like that.. Please file an issue, and even better as a PR.
-- Arun On 21 December 2015 at 12:16:16, Douglas Clark ([email protected]) wrote: In the *Example* section of data.table-package documentation, `v` is used as a column name, and later a variable `v`<-"X" is defined and used in setkeyv(DT,v) to set the key to column `x`. Then `v` is again used as column name. This is confusing to me. Is the double use of `v` as both column name and variable intentional? See the extract of the Examples section below: -- View this message in context: http://r.789695.n4.nabble.com/example-data-table-confusing-use-of-v-tp4715786.html Sent from the datatable-help mailing list archive at Nabble.com. _______________________________________________ datatable-help mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
_______________________________________________ datatable-help mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
