Re: [R] matrix help (first occurrence of variable in column)

2011-05-19 Thread Michael Denslow
c("sp.1", "sp.2", "sp.3","sp.4","sp.5"))) mdat3 mdat.df <- as.data.frame(mdat3) new.spec <- sapply(mdat.df, function(x){ x.rle <- rle(x) (length(x.rle$values) > 1) & (x.rle$values[1L] == 0) }) names(mdat.df)[ne

[R] matrix help (first occurrence of variable in column)

2011-05-18 Thread Michael Denslow
o figure out if the species has never occurred before and then sum them up? Thanks in advance, Micheal -- Michael Denslow I.W. Carpenter Jr. Herbarium [BOON] Department of Biology Appalachian State University Boone, North Carolina U.S.A. -- AND -- Communications Manager Southeast Regional Netwo

Re: [R] metaMDS and envfit: Help reading output

2011-05-11 Thread Michael Denslow
ion 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-contained, repr

Re: [R] rgdal intallation mac ox x

2010-10-26 Thread Michael Denslow
man/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Michael Denslow Adjunct Instructor Department of Geography and Planning P.O. Box 32066 Appalachian State Universi

Re: [R] Calculation time of isoMDS and the optimal number of dimensions

2010-05-25 Thread Michael Denslow
__ > 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-contained, reproducible cod

Re: [R] NMDS Ordination Graphics Problem

2010-04-06 Thread Michael Denslow
> -- Was the solution I sent you the other day not helpful? http://n4.nabble.com/How-to-split-data-for-NMDS-plots-td1751101.html#a1751290 If not perhaps you can explain what went wrong. Also you can post a small example of your data using dput(). The best way that I have found to make ordinatio

Re: [R] Biplot for PCA using labdsv package

2010-04-05 Thread Michael Denslow
: chr [1:160] "50001" "50002" "50003" "50004" ... .. ..$ : chr [1:160] "PC1" "PC2" "PC3" "PC4" ... - attr(*, "class")= chr "prcomp" biplot (or biplot.prcomp) is expecting something l

Re: [R] How to split data for NMDS plots

2010-04-04 Thread Michael Denslow
) fig <- plot(mod, type = 'none') points(fig, 'sites', pch = as.numeric(dune.env$Use)) Hope this helps, Michael -- Michael Denslow I.W. Carpenter Jr. Herbarium [BOON] Department of Biology Appalachian State University Boone, North Carolina U.S.A. -- AND -- Communications Mana

Re: [R] Retrieving latitude and longitude via Google Maps API

2010-03-16 Thread Michael Denslow
EASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> > > __________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman

Re: [R] how to import map data (maptools?) from a html set of 'coords'

2010-03-03 Thread Michael Denslow
hat type of data, they're available at > the INSEE website I can not easily find an example on this site. Perhaps you could provide a direct link to the file. Lastly, I suspect that the r-sig-geo mailing list would get you some better answers. Michael -- Michael Denslow I.W. Carpenter Jr.

Re: [R] Three most useful R package

2010-03-03 Thread Michael Denslow
Hi Ralf, >> 1) What are your 3 most useful R package? Its hard to pick three but since you are making me... vegan rgdal (which will also get you sp, another favorite) rms Michael -- Michael Denslow I.W. Carpenter Jr. Herbarium [BOON] Department of Biology Appalachian State University

Re: [R] Dimensional reduction package

2010-02-14 Thread Michael Denslow
__ > 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-contained, reproducible code. > -- Michael Denslow I.W. Carpenter Jr. He

Re: [R] Problems with savePlot() and postscript under Snow Leopard

2010-02-12 Thread Michael Denslow
via a namespace (and not attached): > [1] tools_2.10.1 > > > Are there any configurations I missed to make? > > > Thanks in advance for your time and help! > > Sincerely, > Hannes > > __ > R-help@r-project.org mai

Re: [R] R Output and ArcGIS

2010-01-25 Thread Michael Denslow
_ > 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-contained, reproducible code. > -- Michael Denslow I.W. Car

Re: [R] lapply , mapply questions

2009-12-14 Thread Michael Denslow
/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- Michael Denslow Graduate Student & Adjunct Instructor I.W. Carpenter Jr. Herbarium [BOON] Department of Biology Appalachian State U

Re: [R] Help with RGDAL

2009-11-04 Thread Michael Denslow
harlie > > - > Charlie Sharpsteen > Undergraduate > Environmental Resources Engineering > Humboldt State University > -- > View this message in context: > http://old.nabble.com/Help-with-RGDAL-tp26135289p26199429.html > Sent from the R help mailing list archive at Nabble.com. > > __

Re: [R] Help with RGDAL

2009-11-04 Thread Michael Denslow
Can you provide any help on this? Thanks in advance, Michael > sessionInfo() R version 2.10.0 Patched (2009-11-02 r50295) x86_64-apple-darwin9.8.0 locale: [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets meth

Re: [R] Help understanding lrm function of Design library

2009-08-19 Thread Michael Denslow
t.edu/wiki/Main/RmS#2009_Upcoming_short_courses_in_R). I can not say enough about this course. I am an ecologist but had no problem with the mostly medical examples. Dr. Harrell is a great teacher! There was so much great information presented that I hope to repeat the course if at all possible! Good l

Re: [R] package to convert coordiantes to timezone

2009-08-02 Thread Michael Denslow
t this error but I think this is what you are after, Michael _ > 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 commente

Re: [R] CRAN + geography = Cranography

2009-08-02 Thread Michael Denslow
Hi Barry, This is great! Thanks for doing this. >> Maybe I should get a life. Please don't! Michael -- Michael Denslow Graduate Student I.W. Carpenter Jr. Herbarium [BOON] Department of Biology Appalachian State University Boone, North Carolina U.S.A. -- AND -- Communicati

Re: [R] Kruskal's MDS results

2009-04-16 Thread Michael Denslow
methods was first outlined in Kruskal 1963. http://www.springerlink.com/content/010q1x323915712x/ The you can see MASS::isoMDS or MASS::Shepard to get the exact R calculations. Hope I helped this time, Michael > > Regards, > Dieter > > > Michael Denslow wrote: > > Hi Die

Re: [R] Kruskal's MDS results

2009-04-15 Thread Michael Denslow
> -- > Dieter Vanderelst > PhD Student > > Active Perception Lab > University of Antwerp > http://batbits.webnode.com/ > > Postal Address: > Prinsstraat 13 > B-2000 Antwerp > Belgium Michael Denslow Graduate Student I.W. Carpenter Jr. Herbarium [BOON] D

Re: [R] help with predict and plotting confidence intervals

2009-03-12 Thread Michael Denslow
gA,pp, lty=c(1,2,2),col="red") Michael Denslow Graduate Student I.W. Carpenter Jr. Herbarium [BOON] Department of Biology Appalachian State University Boone, North Carolina U.S.A. -- AND -- Communications Manager Southeast Regional Network of Expertise and Collections sernec.org > >

[R] help with predict and plotting confidence intervals

2009-03-12 Thread Michael Denslow
nited States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_2.8.1 Michael Denslow Graduate Stud

Re: [R] vegan metaMDS

2009-01-23 Thread Michael Denslow
r drops to an acceptable level. here is a rough example! plot(c('2','3','4','5'), c(23.26272,16.37268,12.9641,10.50830), xlab = 'dimensions', ylab = 'stress', type = 'b') hope this helps, Michae

Re: [R] autocorrelation

2009-01-16 Thread Michael Denslow
rrelation in the analysis of species distributional data: a review. Ecography 30:609-628 Also the book by Bivand et al. 2008. (Applied Spatial Data Analysis with R. from Springer) is very good. Hope this helps, Michael Denslow I.W. Carpenter Jr. Herbarium [BOON] Appalachian State University

[R] p-value for Nonmetric Multidimentional Scaling?

2008-07-04 Thread Michael Denslow
Dear R-helpers, I am running metaMDS in the vegan package, which uses isoMDS in MASS, to perform Nonmetric Multidimentional Scaling (NMDS). I have seen some authors report a p-value for the NMDS ordination based on randomization of the dataset. As I understand it this is meant to compare the s

[R] by or tapply?

2008-07-03 Thread Michael Denslow
Dear R-helpers, I have a data frame that is similar to the one below. The row names are species and the E1, E2, E3 columns are presence/absence for a given site. I have an additional column 'origin' which has information about the species. E1 E2 E3 origin BASA 0 0 1 N BASO 0 0 1

[R] Data manipulation question (opposite of table?)

2008-01-27 Thread Michael Denslow
Dear R users, I am a new user (probably obvious by my question) and have really learned a lot from reading this list. Thank you all very much. My main struggles with R are with data manipulation. So here is my question... I have data that is organized as below, this is a short example. value