[R] program avail. for simulating spatial patterns?

2007-04-25 Thread Wade Wall
Hi all, I am wondering if there is a function available in R for simulating spatial distribution of objects (plants in this case) in order to simulate sampling of a population . Specifically, I would like to be able to change the spatial correlation of individuals. I don't want to reinvent the

Re: [R] lda plotting: labeling x axis and changing y-axis scale

2006-12-22 Thread Wade Wall
(), if you know another function, that would be great. Or if you know how to alter the y-axis and label the two group names, that would be great also. I have been working at it for a while and am kicking myself for not saving the commands as a script. Thanks, Wade Wall On 12/22/06, John Kane

[R] lda plotting: labeling x axis and changing y-axis scale

2006-12-20 Thread Wade Wall
Hi all, I have performed an lda on two groups and have plotted using plot(x.lda), with x.lda being my lda results. I have forgotten how to change the labels of the of the x-axes (they are currently listed as Group1 and Group 13), and to rescale the y-axis to reflect frequency. If anyone knows

[R] missing data using BIOENV function

2006-12-12 Thread Wade Wall
Hi all, I am trying to use the BIOENV function in the Vegan package and am wondering if there is a way to perform the function with missing values. Is there a way to pass use=pairwise.complete.obs to the cor function? Or is this the wrong way to approach it? Thanks Wade

[R] posterior probability formula in predict.lda

2006-11-19 Thread Wade Wall
IHi all, have a dataset with rows as plots and environmental data as columns. I have predicted the values using the following ed.pred-predict(lda.ed,ed) #lda.ed the model, ed the env. variables used for the prediction plots I am wanting to know the formula used by predict.lda for calculating

[R] X-fold cross validation function for discriminant analysis

2006-11-16 Thread Wade Wall
Hi all, I ran a discriminant analysis with some data and want to get a general idea of prediction error rate. Some have suggested using X-fold cross validation procedure. Anyone know if there is a function for this in R? Thanks, Wade [[alternative HTML version deleted]]

[R] Box's M test

2006-08-11 Thread Wade Wall
Hi all, Is there a box's M test for R? I have looked around, but have been unable to find it. Thanks Wade __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] subset of rows from matrix

2006-07-28 Thread Wade Wall
Hi all, I have a dataframe of rownames that I would like to extract from a larger matrix to form a new matrix. I have tried to use subset, in this manner x-subset(largematrix, rownames$names=largematrix$rownames) where largematrix is the larger matrix and rownames$names is the dataframe with

[R] trim function in R

2006-07-24 Thread Wade Wall
Hi all, I am looking for a function in R to trim the last two characters of an 8 character string in a vector. For example, I have the codes 37-079-2, 370079-3,37-079-8 and want to trim them to 37-079 by removing the last two characters. Is sub the correct function to use, and if so how can I

[R] random section of samples based on group membership

2006-07-24 Thread Wade Wall
Hi all, I have a matrix of 474 rows (samples) with 565 columns (variables). each of the 474 samples belong to one of 120 groups, with the groupings as a column in the above matrix. For example, the group column would be: 1 1 1 2 2 2 . . . 120 120 I want to randomly select one from each group.

[R] Cluster Analysis with flexible beta linkage method

2006-07-14 Thread Wade Wall
Hi all, I am trying to run a cluster analysis using Sorenson (Bray-Curtis) distance measure with flexible beta linkage method. However, I can't seem to find flexible beta in any of the functions/packages I have looked at. Any help would be appreciated. [[alternative HTML version

[R] replace values in data frame

2006-07-07 Thread Wade Wall
Hi all, I have a three columned list that I have imported into R. The first column is a plot (ex. Plot1), the second is a species name (ex ACERRUB) and the third a numeric value. I want to replace some of the second column names with other names (for example replace ACERRUB with ACERDRU). The

Re: [R] replace values in data frame

2006-07-07 Thread Wade Wall
), but to no avail. I hope this clarifies a little. Sorry about that. On 7/7/06, Marc Schwartz (via MN) [EMAIL PROTECTED] wrote: On Fri, 2006-07-07 at 11:20 -0400, Wade Wall wrote: Hi all, I have a three columned list that I have imported into R. The first column is a plot (ex. Plot1

[R] Way to convert data frame to matrix

2006-06-30 Thread Wade Wall
I have a text file that I have imported into R. It contains 3 columns and 316940 rows. The first column is vegetation plot ID, the second species names and the third is a cover value (numeric). I imported using the read.table function. My problem is this. I need to reformat the information