[datatable-help] example(data.table) confusing use of "v"
Arunkumar Srinivasan
aragorn168b at gmail.com
Wed Dec 23 16:34:59 CET 2015
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 (clark9876 at airquality.dk) 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
datatable-help at lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/datatable-help/attachments/20151223/d076254c/attachment.html>
More information about the datatable-help
mailing list