Hello, > HI, > this is my problem I want to subset this file df, using only unique > df$exon printing the line once even if df$exon appear several times: > > unique(df$exon) will show me the unique exons > If I try to print only the unique exon lines > with df[unique(df$exon),] -this doesn't print only the unique ones :( >
Try inx <- match(unique(df$exon), df$exon) df[inx, ] Hope this helps, Rui Barradas -- View this message in context: http://r.789695.n4.nabble.com/subseting-a-data-frame-tp4438745p4438922.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.