Re: [R] hclust/dendrogram merging

2013-09-16 Thread Thomas Parr
Josh, A couple of things: 1) It would be helpful if you can provide some reproducible data and the code you have developed thus far. 2) This is more of a stackexchange.com or crossvalidated.com question. That said...without seeing the data... Dendrograms/hclust are generated by using a distance ma

Re: [R] Returning name of dataframe?

2013-06-19 Thread Thomas Parr
1544 0.60247030 -0.27653274 -1.29190483 2.16970664 > [16,] -0.25704995 0.03947102 -0.07675004 -0.19652487 -0.61109230 > [17,] -1.67056007 -0.43978334 0.46164805 -0.97022452 -0.92957787 > [18,] 0.34908174 1.29140274 -0.69428669 -0.94739520 0.67424984 > [19,] -0.07291139 0.14937308 0.25048

[R] Returning name of dataframe?

2013-06-19 Thread Thomas Parr
I am writing a function and I would like to return the name of a data frame in a paste call, but I can't figure out how to just get the name. The names of the data frames used, won't be the same each time. I have to be overlooking the obvious. #For example: a<-replicate(5, rnorm(20)) b<-replicat

[R] rda variance partioning in vegan problems

2013-05-01 Thread Thomas Parr
This is not a request for coding help so there is no reproducible code, rather I am trying to figure out if anyone had had a similar experience. My question is related to partitioning the variance in rda (vegan) results for multiple groups of variables. I have a high dimensional dataset with 79

Re: [R] ggplot2: Controlling line width of panel borders

2013-03-27 Thread thomas . parr
This is an old post, but I had the exact problem described here and after two days of monkeying around in theme, I wanted to provide the non-ggplot related "solution." In summary, the problem is that in the faceted plots, lines on the right an bottom in the subplots appear to be thicker than f

[R] PARAFAC with PTAk in R?

2011-04-06 Thread Thomas Parr
This is not a programming question. I am looking for someone with experience using PTAk to perform PARAFAC (canonical decomposition CANDECOMP) analysis on fluorescence EEMs in [R]. I want to transition into R for this analysis since I already am using R for everything else. Most helpful would be

[R] Writing to a file

2010-12-02 Thread Thomas Parr
From: Thomas Parr [mailto:thomas.p...@maine.edu] Sent: Thursday, December 02, 2010 10:52 PM To: r-help-requ...@stat.math.ethz.ch Subject: Writing to a file I am trying to get my script to write to a file from the for loop. It is "working", but the problem is at it is outputting to t

[R] RODBC - odbcConnectExcel2007 headers issue

2010-11-01 Thread Thomas Parr
Apologies if this is already answered elsewhere, but I could not find the answer searching the archives. I am trying to bring my data in from an .xlsx file. The data of interest is an n x m array, but it is preceded with ~2 columns and 30 rows of instrumental "information." An abbreviated example

[R] Function not working

2010-11-01 Thread Thomas Parr
Below is the (really basic) script I am creating to call a function that sets the working directory, determines the number of files it will need to process in that directory, and creates a mask. A "for" loop will eventually be added that will loop through the files (arrays) in that directory perfo

[R] Data manipulation in R

2010-09-24 Thread Thomas Parr
If this has already been answered, my apologies in advance I am relatively new to this aspect of [R]. it is a bit of a basic question. I have 4 columns of data (site, Date, measurement type, value) in a tab delimited text file. Site is a site where measurements were collected, Date is a date i