Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

265 results for “from:Andy Bunn”

don't stop when error occurs
Andy Bunn · Mar 18, 2004 · r-help

You can do that easily with 'try' ?try 'try' is a wrapper to run an expression that might fail and allow the user's code to handle error-recovery. HTH, Andy

[S] plot stacked bar chart in R
Andy Bunn · Dec 16, 2003 · r-help

See ?barplot and pay attention to the 'height' and 'beside' arguments. They produce very nice stacked plots. Some of the examples using the VA deaths dataset displays stacked plots. HTH, Andy

raster: use extract to get data from a categorical/discrete/factor raster
Andy Bunn · Aug 22, 2012 · r-sig-geo

An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20120822/ea3d5624/attachment.pl>

Preprocessing troublesome files in R - looking for some perl like functionality
Andy Bunn · Jun 2, 2005 · r-help

> x <- readLines(...) > tmp <- file() > writeLines(x[substr(x, 83, 86) == "STD"], tmp) > read.fwf(tmp, ...) I wrapped this approach into function and it worked swimmingly. Thanks all. -Andy

convert data
Andy Bunn · Dec 4, 2003 · r-help

Do you just want to out the data vectors together? Try ?scan, ?c, ?data.frame my.data.frame <- data.frame( names = c(OLDa, ALL, OLDc, OLDa, OLDb, NEW......), values = c(1,5,3,1,2,4.....) HTH, -Andy

Printting 'for' and 'while' indices
Andy Bunn · Feb 9, 2004 · r-help

Try this. Look at ?flsuh.console if you are on windows HTH, Andy #~~~~~~~~~~~~~~~~~~~~~~~~ i<-0 while(i<100){ ## "do a lot of commands" ##"print i" cat(i, "\n") ## if using windows flush.console() i<-i+1 }

new package - paraNormal distribution
Andy Bunn · Apr 1, 2005 · r-help

What a great package. I imagined the answer before hand, so I guess it's right... R > rParaNorm(1) [1] 0+42i R > This will really help me through a Bayesian analysis I have to do today. Thanks!

lattice, xyplot, lend=1, type="h"
Andy Bunn · Mar 31, 2006 · r-help

Is there is a way to make square bars in xyplot with type="h"? dat <- data.frame(foo = rep(1:10,2), bar = rep(1:10,2)) xyplot(foo~bar, data = dat, type="h",lwd=20) Thanks! Andy

multiple plots..again
Andy Bunn · Jan 28, 2004 · r-help

Have you tried layout? layout(matrix(1:10, 5, 2, byrow = TRUE)) for(i in 1:10){ plot(rnorm(100), type = "l", col = "red", main = paste("Your Variable Number", i, sep = " ")) lines(runif(100), col = "blue") } Does this get you...

Multiple comparisons in R; multicomp
Andy Bunn · Jan 15, 2004 · r-help

There is now a package in R called multcomp for general multiple comparisons that does things similar to the Splus library you mentioned. BTW, a search of the help archives for multicomp or "multiple comparisons" brings this up. HTH, Andy

(no subject)
Andy Bunn · Mar 12, 2004 · r-help

Look at ?Extract myDF <- data.frame(c1 = c(1,1,1,1,2,2,2,2), c2 = c(23,34,45,45,78,65,45,70), c3 = c(12,15,67,87,23,19,90,32)) mean(myDF[myDF$c2...

assign
Andy Bunn · Jan 7, 2004 · r-help

This is one way: for (j in 1:10) { assign(paste("x", j, sep="."), rnorm(100)) } BTW, there have been many similar posts like this in the past. They are easily found using the search function at http://cran.r...

Rotated EOF
Andy Bunn · Jan 14, 2011 · r-sig-geo

Hi all, I'm developing a teaching example doing EOF analysis on global temperature data using the clim.pact library. Does anybody know if there is an existing function to do rotated EOF analysis? E.g., a varimax rotation on...

citing a package?
Andy Bunn · Feb 9, 2004 · r-help

I had a reviewer request a citation for a package that I had neglected to cite. I followed a similar format to that suggested by Thomas Lumley and also referenced a related book by the package's author. The editor...

GLOBE DEM in R?
Andy Bunn · Nov 9, 2016 · r-sig-geo

Is the GLOBE DEM accessible in R via a package? I usually use raster::getData() when I need elev data but I need to sample a SPDF of a few thousand points with latitudes higher than the SRTM covers. Thoughts...

multidimensional variance on an array?
Andy Bunn · Feb 3, 2017 · r-sig-geo

Has anybody implemented a way of calculating multidimensional variance on a multi band image in R? E.g., http://stats.stackexchange.com/questions/49521/how-to-find-variance-between-multidimensional-points Not eager to reinvent the wheel. Regards to you...

Axes Ticks
Andy Bunn · Jan 22, 2004 · r-help

You need to look at ?axis. Try this: y <- c(-4,3,-2,1) x <- c("time 1", "time 2", "time 3", "time 4") plot(seq(1,length(x), by = 1), y, type = "b", axes = FALSE, xlab = "Times", ylab = "Stuff...

adding header info to write.table
Andy Bunn · Feb 26, 2004 · r-help

> Is everybody writing ArcGIS ASCII rasters recently? The GIS community is hopelessly tied to ESRI. So many people have invested their careers in learning Arc that switching to GRASS is an institutional nightmare. Most of what I do now is...

Unexpected result from binary greater than operator
Andy Bunn · Nov 1, 2005 · r-help

Look at ?all.equal and ?identical as well as searching the archives for those terms. You'll find many an illuminating thread on precision, floating point arithmetic and other wonders. minX <- 4.2 min0 <- 4.1 sigmaG <- 0.1 Diff...

cca in vegan
Andy Bunn · Jan 14, 2004 · r-help

Curious. > I get the following error message: > > Error in cca.default(cnts94, env94): All row and column sums > must be >0 in the community matrix Check the row and column sums if you haven't: colSums(cnts94) rowSums(cnts94) There...

Can't find what you're looking for? Try searching with Google .