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.

11 results for “from:David A. Johnston”

identical values not so identical? newbie help please!
David A. Johnston · Mar 10, 2011 · r-help

The function all.equal also might be helpful. See the help page. >help(all.equal) -David Johnston -- View this message in context: http://r.789695.n4.nabble.com/identical-values-not-so-identical-newbie-help-please-tp3346078p3346581.html Sent from...

sapply puzzlement
David A. Johnston · Jan 27, 2011 · r-help

sapply(z, function(row) ...) does not actually grab a row at a time out of 'z'. It grabs a column (because 'z' is a data.frame) You may want: t(apply(z, 1, function(row) row - means)) or: t(t...

Pulling data from remote MySQL database
David A. Johnston · Jun 21, 2011 · r-help

Hi Joseph, I know that the RMySQL and RODBC packages allow you to pull the result of a MySQL query into a data.frame within R. I like RODBC because you can access many different flavors of RDBMS's. -David...

Interactive plots or graphics libraries for R?
David A. Johnston · May 24, 2011 · r-help

I recommend the 'rgl' package. It can draw 3d scatterplots, shapes, and surfaces. You can spin, and zoom in with the mouse. You can record a "movie" of the rotating graphic. http://cran.r-project.org/web/packages/rgl/index...

Sorting Dataframes
David A. Johnston · Jun 7, 2011 · r-help

Here's one way: # Here I read in your data to a variable 'x' x = read.delim(textConnection( "Bin Depth Fish 1 4 2 1 8 24 1 12 4 2 4 3 2 8 21 2 12 2 3...

Parsing a Simple Chemical Formula
David A. Johnston · Dec 26, 2010 · r-help

There might be something simpler, but this is what I came up with: form = "C5H11BrO" ups = c(gregexpr("[[:upper:]]", form)[[1]], nchar(form) + 1) seperated = sapply(1:(length(ups)-1), function(x) substr(form, ups[x], ups[x+1] - 1...

Help with RGL package problem
David A. Johnston · Dec 15, 2010 · r-help

Thank you Joshua and Duncan for your very quick responses. Joshua, I will indeed read more about the OpenGL and GLU systems. Duncan, I am running R via a console. I also tried via the GUI R.app and the...

apply() returning a list?
David A. Johnston · Jul 20, 2011 · r-devel

I understand that the coercion to a list is somewhat trivial. The coercion is a little less obvious when apply()'s output is a matrix. For example, > x = matrix(1:12, 3, 4) > apply(x, 1, range) [,1] [,2] [,3...

Where are the ticks on grid.xaxis?
David A. Johnston · Aug 18, 2011 · r-help

Hi R list, I like the default ticks that are set up using grid.xaxis() or grid.yaxis() with no arguments. Finding good values for the 'at' argument is usually not a trivial task; the default behavior of these functions...

apply() returning a list?
David A. Johnston · Jul 19, 2011 · r-devel

Hi devel list, I searched for past posts about this issue and found none, so my apologies if this has been addressed before. The sapply() function has an argument 'simplify', and the mapply() function has an argument 'SIMPLIFY'. I am...

Help with RGL package problem
David A. Johnston · Dec 15, 2010 · r-help

Hello, I have been experiencing an odd error with the RGL package that I cannot figure out. I have searched without luck for fixes to this problem on Rseek, Google, and the R-help-list. RGL used to work on...

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