Hi Nicolas,

On Tue, May 10, 2011 at 12:29 PM, Nicolas Servant
<[email protected]> wrote:
> Thanks a lot. It works but then, do you how I can have access to the
> result !
> For instance :
>>g$V1
>  [1]Error: 'getCharCE' must be called on a CHARSXP

Hmm ... this works for me:


R> dt <- data.table(
  reads=c(
    "1279_1000_530_F3-ad",
    "1279_1000_530_F3-ad",
    "1279_1000_940_F3-ad",
    "1279_1000_940_F3-ad",
    "1279_1018_1051_F3-ad"),

  annot=c(
    "Simple_repeat",
    "LINE",
    "snRNA",
    "snRNA",
    "Simple_repeat"),
  key='reads')

R> g <- dt[, paste(annot, collapse=','), by=reads]
R> g$V1
[1] "Simple_repeat,LINE" "snRNA,snRNA"        "Simple_repeat"

What are you trying exactly?
What is your sessionInfo()?

-steve

-- 
Steve Lianoglou
Graduate Student: Computational Systems Biology
 | Memorial Sloan-Kettering Cancer Center
 | Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact
_______________________________________________
datatable-help mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help

Reply via email to