[datatable-help] unique() not working. Is it me or the code?

Farrel Buchinsky fjbuch at gmail.com
Tue Jan 27 16:26:04 CET 2015


Thank you Jeff Zemla
That fixed it. I reinstalled data.table and it all worked. Wonder how that
happened. I just installed R 3.1.2 and am almost certain that I reinstalled
data.table yesterday after upgrading R.

Farrel Buchinsky
Google Voice Tel: (412) 567-7870

On Tue, Jan 27, 2015 at 10:06 AM, Jeff Zemla <jeffzemla at gmail.com> wrote:

> R 3.1.0
> data table 1.9.5
>
> can't replicate. did you try reinstalling data table?
>
> On Tue, Jan 27, 2015 at 9:15 AM, Farrel Buchinsky <fjbuch at gmail.com>
> wrote:
>
>> Look what happens when I execute the example. Any idea why I am getting
>> the error.
>>
>> > DT <- data.table(A = rep(1:3, each=4), B = rep(1:4, each=3), C =
>> rep(1:2, 6), key = "A,B")
>> > duplicated(DT)
>>  [1] FALSE  TRUE  TRUE FALSE FALSE  TRUE FALSE  TRUE FALSE FALSE  TRUE
>>  TRUE
>> > unique(DT)
>> Error in .Call("Cwhichwrapper", x, bool) :
>>   "Cwhichwrapper" not resolved from current namespace (data.table)
>>
>> Here is my session info
>>
>> Running from within RStudio Version 0.99.179
>>
>> R version 3.1.2 (2014-10-31)
>> Platform: x86_64-w64-mingw32/x64 (64-bit)
>>
>> locale:
>> [1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United
>> States.1252
>> [3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
>>
>> [5] LC_TIME=English_United States.1252
>>
>> attached base packages:
>> [1] stats     graphics  grDevices utils     datasets  methods   base
>>
>> other attached packages:
>>  [1] knitr_1.9         zoo_1.7-11        RGoogleDocs_0.7-0 reshape2_1.4.1
>>
>>  [5] ggplot2_1.0.0     stringi_0.4-1     stringr_0.6.2     car_2.0-22
>>
>>  [9] plyr_1.8.1        data.table_1.9.5  lubridate_1.3.3   RODBC_1.3-10
>>
>>
>> loaded via a namespace (and not attached):
>>  [1] bitops_1.0-6     chron_2.3-45     colorspace_1.2-4 digest_0.6.8
>>  [5] evaluate_0.5.5   formatR_1.0      grid_3.1.2       gtable_0.1.2
>>  [9] lattice_0.20-29  MASS_7.3-35      memoise_0.2.1    munsell_0.4.2
>> [13] nnet_7.3-8       proto_0.3-10     Rcpp_0.11.4      RCurl_1.95-4.5
>> [17] scales_0.2.4     tools_3.1.2      XML_3.98-1.1
>>
>>
>> Thanks a lot. Farrel
>>
>>
>> Farrel J. Buchinsky MBChB, BSc(HONS)MED, FACS
>> (412) 567-7870 [mobile, work, home]
>> Director, Pediatric Otolaryngology: Allegheny General Hospital
>> Director, Respiratory Papillomatosis Program: Allegheny-Singer Research
>> Institute
>> 320 E. North Ave.
>> Pittsburgh, PA 15212
>>
>> _______________________________________________
>> 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/20150127/89e166cf/attachment.html>


More information about the datatable-help mailing list