[R] Comparing membership of clusters

2009-11-27 Thread Paul Lemmens
c), or even c(3, 3, 1, 1, 2, 2, 3, 1, 2). So the fact that participant (index) 1, 2, and 8 belong to each other is key. I am most puzzled about how to do the matching / find the similarity between each column and gold standard. Thank you for your time! be

Re: [R] Reading in multiple files in a loop

2008-03-27 Thread Paul Lemmens
On Thu, Mar 27, 2008 at 4:40 PM, Zu Thur Yew <[EMAIL PROTECTED]> wrote: > > for (r in 1:100) { > d1 <-read.table(r.anl) read.table(paste(r,".anl", sep="")) __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do rea

Re: [R] Dynamic string as element name in a list

2008-03-27 Thread Paul Lemmens
t; wrote: > HI, > > I don't understand why you're using lapply. > > Please provide a example of your 'x' data.frame > > str(x) > > > On 27/03/2008, Paul Lemmens <[EMAIL PROTECTED]> wrote: > > > > Hi Henrique,

Re: [R] Dynamic string as element name in a list

2008-03-27 Thread Paul Lemmens
dn't thought of it. But now I have a refinement in foo() foo <- function(x) { out <- list() lapply(x$clipno, function(c) { clipname <- x$clipname # stuff out[[clipname]] <- rnorm(5) }) return(out) } But this returns the/an empty list? Best regards, Paul Lemmens

[R] Dynamic string as element name in a list

2008-03-27 Thread Paul Lemmens
e to do so at all and if so, what am I missing? Kind regards, Paul Lemmens __ 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