[R] Clustering groups according to multiple variables

2012-10-31 Thread Matthew Ouellette
Dear R help, I am trying to cluster my data according to group in a data frame such as the following: df=data.frame(group=rep(c(a,b,c,d),10),(replicate(100,rnorm(40 I'm not sure how to tell hclust() that I want to cluster according to the group variable. For example:

[R] Clustering groups according to multiple variables

2012-10-31 Thread Matthew Ouellette
Dear R help, I am trying to cluster my data according to group in a data frame such as the following: df=data.frame(group=rep(c(a,b,c,d),10),(replicate(100,rnorm(40 I'm not sure how to tell hclust() that I want to cluster according to the group variable. For example:

Re: [R] Extracting standard errors for adjusted fixed effect sizes in lmer

2012-07-22 Thread Matthew Ouellette
Dear R help, Does no one have an idea of where I might find information that could help me with this problem? I apologize for re-posting - I have half a suspicion that my original message did not make it through. I hope you all had a good weekend and look forward to your reply, MO On Fri, Jul

[R] Extracting standard errors for adjusted fixed effect sizes in lmer

2012-07-20 Thread Matthew Ouellette
Dear R help list, I have done a lot of searching but have not been able to find an answer to my problem. I apologize in advance if this has been asked before. I am applying a mixed model to my data using lmer. I will use sample data to illustrate my question: library(lme4) library(arm)

[R] Multiple cbind according to filename

2012-05-25 Thread Matthew Ouellette
Hi all, I'm just a beginner with R but I have not been able to search for any relevant answer to my problem. I apologize if it has in fact been asked before. Recently I've realized that I need to combine hundreds of pairs of data frames. The filenames of the frames I need to combine have

[R] Sort across multiple csv

2012-05-18 Thread Matthew Ouellette
Dear R help list, I am very new to R and I apologize in advance if this has been answered before. I have done my best to google/R search what I need but no luck. Here is what I am attempting: I have hundreds of .csv files that I need to sort based on a single column of alphanumeric data. All