Re: [R] function to include factors in summary data frame

2011-09-14 Thread Wade Wall
That is exactly what I was looking for. Thanks, Wade On Wed, Sep 14, 2011 at 5:47 AM, Petr PIKAL petr.pi...@precheza.cz wrote: Hi all, I have a dataframe that includes data on individuals that are distributed across multiple rows. I have aggregated the data using ddply, but I have

[R] function to include factors in summary data frame

2011-09-12 Thread Wade Wall
Hi all, I have a dataframe that includes data on individuals that are distributed across multiple rows. I have aggregated the data using ddply, but I have columns in the original data frame that are factors ( such as sites A, B, and C) that I would like to include in the new data frame. I have

[R] evaluating NAs in a dataframe

2010-12-08 Thread Wade Wall
Hi all, How can one evaluate NAs in a numeric dataframe column? For example, I have a dataframe (demo) with a column of numbers and several NAs. If I write demo.df = 10, numerals will return TRUE or FALSE, but if the value is NA, NA is returned. But if I write demo.df == NA, it returns as NA

Re: [R] evaluating NAs in a dataframe

2010-12-08 Thread Wade Wall
:19 PM, David Winsemius dwinsem...@comcast.netwrote: On Dec 8, 2010, at 3:10 PM, Wade Wall wrote: Hi all, How can one evaluate NAs in a numeric dataframe column? For example, I have a dataframe (demo) with a column of numbers and several NAs. If I write demo.df = 10, numerals will return

[R] assignment operator saving factor level as number

2010-11-05 Thread Wade Wall
Hi all, I have a dataframe (df1) that I am trying to select values from to a second dataframe that at the current time is only for the selected items from df1 (df2). The values that I am trying to save from df1 are factors with alphanumeric names df1 looks like this: 'data.frame': 3014 obs.

Re: [R] assignment operator saving factor level as number

2010-11-05 Thread Wade Wall
to a numeric, it would have made the entire vector a vector of characters: test3[2,1] - 'b' test3$col1 [1] 1 b 3 Hope that demonstrates what's probably going on, Jeff. On Fri, Nov 5, 2010 at 3:54 PM, Wade Wall wade.w...@gmail.com wrote: Hi all, I have a dataframe (df1) that I am

[R] Plot symbols on dendrogram leaves

2010-03-22 Thread Wade Wall
Hi all, I am wondering if there is a way to plot symbols onto the leaves of a dendrogram. Thanks for any help. Wade __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] open script file from command line

2010-02-04 Thread Wade Wall
Hi all, Is there a function to open a script file from the command line? I have several students who are Mac users and when they open up a script file it does not send commands to the console, and unfortunately I don't know how to solve this problem since I am not a Mac user. I have looked over

Re: [R] open script file from command line

2010-02-04 Thread Wade Wall
: On 5/02/2010, at 1:53 PM, Wade Wall wrote: Hi all, Is there a function to open a script file from the command line? I have several students who are Mac users and when they open up a script file it does not send commands to the console, and unfortunately I don't know how to solve

[R] Rotating dendrograms

2010-02-02 Thread Wade Wall
Hi all, I have been looking for a method to rotate a dendrogram, but haven't found any references to a way to do this. I basically want to plot two dendrograms and rotate them so that I can compare the leaves to each other for heuristic purposes within R. Any help would be appreciated. Wade

[R] Color code leaves on dendrogram

2010-02-02 Thread Wade Wall
Hi all, I would like to color code the leaves on a dendrogram to reflect group membership. Does anyone know of a function to do this besides code listed at http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=79? I haven't seen anything recently to accomplish this. I basically just

[R] extract value from first column based on value in second column

2009-12-29 Thread Wade Wall
Hi all, I have two columns of data, the first consists of parameter estimates and the second probability estimates. I would like to extract the value from the first column based on the max value of column two, but not sure how to do this other than by extracting the value and then manually

Re: [R] change order of bar plot categories

2009-10-15 Thread Wade Wall
Department of the Interior US Fish Wildlife Service California, USA --- On Wed, 10/14/09, Wade Wall wade.w...@gmail.com wrote: From: Wade Wall wade.w...@gmail.com Subject: change order of bar plot categories To: ggplot2 ggpl...@googlegroups.com Date: Wednesday, October 14, 2009, 12:40 PM Hi

[R] multiple comparison of means with glm model

2009-10-15 Thread Wade Wall
Hi all, I have a data set that I am analyzing and I am trying to do a multiple comparison of means under a glm model. The factors are 2 light treatments and 3 temperature treatments in a complete block design analyzed using a glm. My question is how do I do a multiple comparison of means using

[R] plotting vector of symbols

2009-09-02 Thread Wade Wall
symbols. I would like to write one line, rather than dividing up the 35 points into categories first, but I can't see to find a way. Basically, I am trying to do this . . . . points(ordination$points, pch=popsymbols[,2]), where popsymbols[,2] is a column of symbol values. Thanks for any help, Wade

[R] excluding NAs in data frame without deleting rows

2009-05-29 Thread Wade Wall
Hi all, I have a binary matrix with NAs included. Each row and column includes at least one NA, so I don't want to omit them. Is there a way to sum across rows and columns, ignoring the NAs but not deleting the row or column? If not, I suppose I can write a loop function, but I have learned

[R] reduce size of plot inside window and place legend beside plot

2009-05-27 Thread Wade Wall
Hi all, I have been trying to figure out how to place a legend beside a plot, rather than within the space to no avail. I am assuming that I need to resize the plot relative to the window. If anyone has any guidance on how to do this, I would greatly appreciate it. Wade

[R] View cluster results of large data sets

2009-05-05 Thread Wade Wall
be appreciated because I have looked around for a solution to no avail. Thanks Wade Wall __ 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

[R] ANOVA with subsampling question

2009-01-26 Thread Wade Wall
Hi all, I am trying to analyze an experiment I ran, but not sure how to code in R. I have germinated seeds in petri dishes at 3 different temperatures (call it low, med, and high) and 2 different light levels (light and dark). For each seed I have recorded time to germination (not counting

[R] Extract rows from data frame based on row names from another data frame

2008-12-11 Thread Wade Wall
Hi all, Is there a function to extract row names from a data frame based on row names from another data frame? I can write a loop function to do this, but this may be inefficient in terms of processing. thanks for any information, Wade __

Re: [R] Process dataframes from list

2008-10-27 Thread Wade Wall
Hi Gabor, Thanks for the code, it's what I was looking for. The route I was thinking about was to use, based on your code, the names from my.data.frames as a pointer to the actually dataframes. I was envisioning something like a - data.frame(1:10) b - data.frame(10:1) c -

[R] Process dataframes from list

2008-10-26 Thread Wade Wall
Hi all, I have roughly fifty dataframes and a dataframe with the names of the fifty dataframes. I want to perform the same set of manipulations on all fifty dataframes, but can't find a way to batch process from a list with the dataframe names using a loop. Is there a way to read the file names

[R] Creating GUIs for R

2008-10-07 Thread Wade Wall
. Wade Wall [[alternative HTML version deleted]] __ 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

Re: [R] Creating GUIs for R

2008-10-07 Thread Wade Wall
functionality. ?winMenuAdd, ?select.list and the links therein will get you started there. Cheers, Bert Gunter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wade Wall Sent: Tuesday, October 07, 2008 9:56 AM To: [EMAIL PROTECTED] Subject: [R] Creating GUIs

[R] multiple comparisons for MANOVA results

2008-09-20 Thread Wade Wall
Hi all, This is both a general and r specific question. I am analyzing some morphological data and have performed a MANOVA on the 5 groups with 5 measured morphological traits. The results provide me with some pairwise comparisons, but I would like to run a multiple comparison test on the

[R] Color coding plotted numbers

2008-09-10 Thread Wade Wall
Hi all, I have run a pca and want to plot the samples multivariate space using the sample numbers. In addition, I would like to color code the sample numbers by group, but can't find a way to color-code the sample numbers by group. So, I have to do it in two separate steps: plot(bulbil.pca,

Re: [R] Color coding plotted numbers

2008-09-10 Thread Wade Wall
() function and it works the way I want it to work. On Wed, Sep 10, 2008 at 1:23 PM, Wade Wall [EMAIL PROTECTED] wrote: Hi all, I have run a pca and want to plot the samples multivariate space using the sample numbers. In addition, I would like to color code the sample numbers by group, but can't

[R] Eliminating columns that sum to zero

2008-08-24 Thread Wade Wall
Hi all, I am trying to look for a way to eliminate columns that sum to zero. Any help would be appreciated. Wade [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

[R] Case statements in R

2008-07-28 Thread Wade Wall
Hi all, I am trying to convert geometric means in a matrix to cover classes. My values are as such: perc-c(0,0.025136418, 0.316227766, 1.414213562,3.16227766, 7.071067812, 15.8113883, 35.35533906, 61.23724357, 84.40971508, 97.46794345) cover-c(0,1,2,3,4,5,6,7,8,9,10) This is what I am trying

Re: [R] Configuring emacs/ess on Ubuntu

2008-05-25 Thread Wade Wall
I first installed through the package manager, but was unable to start R without opening a script file. So I installed from the tarball, but am still unable to open R using any commands; ESS loads into a buffer; but I can't use M-x-R to open R. the only way I can open R is to open a script

Re: [R] Overdispersion in count data

2008-04-03 Thread Wade Wall
too long. I have used traceback() and it seems to be in the glm.fitter function, but as I say I am at the limit of my abilities here. Wade On Thu, Apr 3, 2008 at 7:23 AM, Michael Dewey [EMAIL PROTECTED] wrote: At 17:03 02/04/2008, Wade Wall wrote: Hi all, I have count data (number

Re: [R] Overdispersion in count data

2008-04-03 Thread Wade Wall
binomial distribution models, so I will read up on it before I try to use it. RTFM, right? I will read about using betabinomial for overdispersed data. Thanks for your help, Wade On Thu, Apr 3, 2008 at 8:30 AM, Michael Dewey [EMAIL PROTECTED] wrote: At 12:54 03/04/2008, Wade Wall wrote

[R] Overdispersion in count data

2008-04-02 Thread Wade Wall
that this level of residual deviance is unacceptable, but not sure is transformations are in order. Needless to say that I am at the outer limits of my statistical knowledge. Thanks for any help, Wade Wall [[alternative HTML version deleted

Re: [R] Overdispersion in count data

2008-04-02 Thread Wade Wall
On Wed, Apr 2, 2008 at 12:31 PM, Gavin Simpson [EMAIL PROTECTED] wrote: On Wed, 2008-04-02 at 12:03 -0400, Wade Wall wrote: Hi all, I have count data (number of flowering individuals plus total number of individuals) across 24 sites and 3 treatments (time since last burn). Following

[R] best text editor for Linux?

2008-02-01 Thread Wade Wall
much in the way of a text editor in sync with R. Any experiences, recommendations would be appreciated. Wade Wall [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

[R] Naming list objects

2008-01-07 Thread Wade Wall
to be an elementary question, but I can't find the solution anywhere. Thanks Wade Wall [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

[R] combing two or more matrices into one file

2008-01-04 Thread Wade Wall
Hi all, I am working with the package popbio (demographic work) at the moment and there is an included dataset, whale, that includes to matrices of equal dimensions. One represents transition values and one represents recruitment of new individuals (whale$T and whale$F respectively). I have