[R] Merging listed dataset into one

2012-06-28 Thread Seungyeul Yoo
gFeatureSet", package = "oligoClasses")' into a data.frame Calls: merge ... merge.default -> merge -> as.data.frame -> as.data.frame.default Can you please help with some advices? Thanks, Best regards, Seungyeul Yoo Postdoc Fellow, Institute of Genomics and Multisc

Re: [R] select subrows based on a specific column in a matrix

2012-06-07 Thread Seungyeul Yoo
(10)), sample(letters[1:4], 10, TRUE)), ncol=2) > colnames(dat) <- c("A", "col10") > dat > > # this does it > ix <- as.logical(ave(seq_len(nrow(dat)), dat[, "col10"], >FUN=function(x) ifelse(x == min(x), TRUE, FALSE))) > dat[ix, ] #

[R] select subrows based on a specific column in a matrix

2012-06-07 Thread Seungyeul Yoo
problem, I have used "match" function and do some manipulate to identify the index of the first appearance of each value but is there any better and neat way to achieve the same function? Thanks, Seungyeul Yoo Postdoc Fellow, Institute of Genomics and Multiscale Biology Department o