[datatable-help] example(data.table) confusing use of "v"

Douglas Clark clark9876 at airquality.dk
Mon Dec 21 11:57:29 CET 2015


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.


More information about the datatable-help mailing list