search for: greencastl

Displaying 20 results from an estimated 54 matches for "greencastl".

Did you mean: greencastle
2009 Nov 16
4
Where are usages like "== 2L" documented?
...us: I keep seeing other people?s code that contain ideas like If (x == 2L) X[-1L] X - 1L I have some idea of what?s going on, but where is the use of concepts like ?2L? documented? Thanks, Bryan ************* Bryan Hanson Acting Chair Professor of Chemistry & Biochemistry DePauw University, Greencastle IN USA
2010 Nov 29
3
Replacing several rows of a matrix at once
...rows simultaneously at once. I suppose I can write a function, but this seems pretty fundamental so I feel I must be missing some obvious alternative. I'm feeling like I'm in the Inferno! TIA. Bryan ************* Bryan Hanson Professor of Chemistry & Biochemistry DePauw University, Greencastle IN USA > sessionInfo() R version 2.12.0 (2010-10-15) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) locale: [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] splines datasets tools grid grDevices graphics utils stats [9] methods base...
2008 Apr 17
2
Suggestions: Terminology & Pkgs for following spectra over time
...s (but only 2D), but it's not quite either of those and I need to know what it's really called to investigate further. Any suggestions as to R pkgs and key words/phrases will be appreciated. TIA, Bryan ************* Bryan Hanson Professor of Chemistry & Biochemistry DePauw University, Greencastle Indiana USA
2009 Sep 07
1
xyplot {lattice} are different types possible for each panel?
...ried to do a panel function following something I saw in the Lattice book, but this has no effect at all. Looks like it may have to be more elaborate, but I¹m stuck. Any suggestions appreciated! Thanks, Bryan ************* Bryan Hanson Professor of Chemistry & Biochemistry DePauw University, Greencastle IN USA y <- rnorm(100) x <- rnorm(100) names <- rep(c("Set 1", "Set 2", "Set 3"), 4) df <- data.frame(y = y, x = y, names = as.factor(names)) p <- xyplot(y ~ x | names, layout = c(1, 3), panel = function(...) { panel.xyplot(...)...
2009 Dec 07
1
rgl keyboard shortcut for translation on Mac?
...lates the object. From reading various documents about openGL, it seems there might be a toggle somewhere, but I need a hint! Or do I need to install/invoke some additional command? Thanks, Bryan ************* Bryan Hanson Acting Chair Professor of Chemistry & Biochemistry DePauw University, Greencastle IN USA > sessionInfo() R version 2.10.0 RC (2009-10-19 r50172) i386-apple-darwin8.11.1 locale: [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] datasets tools grid graphics grDevices utils stats methods base other attached packages:...
2009 Dec 29
1
ggplot2, building a simple formula interface
...) f2 <- rep(c("A", "B"), 50) mydata <- data.frame(res, f1, f2) df <- simple(~ res + f1, mydata) p <- ggplot(df, aes(f1, res)) + geom_boxplot() plot(p) Thanks, Bryan ************* Bryan Hanson Acting Chair Professor of Chemistry & Biochemistry DePauw University, Greencastle IN USA > sessionInfo() R version 2.10.1 (2009-12-14) 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] datasets tools grid graphics grDevices utils stats methods base other attached packages: [1] ggplo...
2008 Mar 30
2
Definition of "wrapper"?
...uple of the classic R texts, the extensions and developers' manuals, and R help archives, and didn't find a definition. Of course, I may have missed it. Thanks in advance. Bryan ************** Bryan Hanson Professor of Chemistry & Biochemistry DePauw University 602 S. College Avenue Greencastle, IN 46135 PHONE 765-658-4602 FAX 765-658-6084 hanson at depauw.edu http://academic.depauw.edu/~hanson/deadpezsociety.html http://www.depauw.edu/acad/chemistry/ http://academic.depauw.edu/~hanson/UMP/index.html
2009 Aug 11
1
Selecting/Accessing the last vector in a list of a list of data.frames
...the surface" but then I've lost my carefully constructed naming. Any suggestions appreciated. It seems like there might be a simple approach, but I may be too tired right now to see it! Thanks, Bryan ************* Bryan Hanson Professor of Chemistry & Biochemistry DePauw University, Greencastle IN USA
2009 Oct 23
1
ggplot2: stat_bin ..count.. with geom_text when NA is present
...n't appear on my plot? I suppose I can always clean the data first, but it would be much more practical to do that in the background during the preparation of the plot. Thanks as always, Bryan ************* Bryan Hanson Acting Chair Professor of Chemistry & Biochemistry DePauw University, Greencastle IN USA
2009 Sep 06
1
Matrix as input to xyplot {lattice} - proper extended formula syntax
...oss something quite like this, or at least I don¹t recognize it if I have! Is there a more elegant way to tell xyplot I want to use each row of y repeatedly with the same x, in a loop-like fashion? TIA. Bryan ************* Bryan Hanson Professor of Chemistry & Biochemistry DePauw University, Greencastle IN USA [[alternative HTML version deleted]]
2010 Jun 26
1
boot with strata: strata argument ignored?
...ives a result that seems to make sense (2 levels in the factor, so $t has 2 columns). I either misunderstand the expected behavior or I've missed some punctuation or syntax detail. TIA, Bryan ************* Bryan Hanson Acting Chair Professor of Chemistry & Biochemistry DePauw University, Greencastle IN USA > sessionInfo() R version 2.11.0 (2010-04-22) 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] datasets tools grid graphics grDevices utils stats [8] methods base other attached packages: [1] boot_...
2010 Mar 14
2
Why doesn't vec[-real.number] give an error or warning? Kids do the darndest things!
...? I can see that it avoids doing floor or as.integer in computations where an index is needed but real numbers are generated for whatever reason, but is that common? Thanks for any insight. Bryan ************* Bryan Hanson Acting Chair Professor of Chemistry & Biochemistry DePauw University, Greencastle IN USA
2010 Nov 20
1
Grid newbie: aligning & scaling viewports
..., the outmost circle should touch the ends of the colored axes. My sense is that this has something to do with my mis-handling of the viewports, but I can't quite see it. Any hints much appreciated! Bryan ************* Bryan Hanson Professor of Chemistry & Biochemistry DePauw University, Greencastle IN USA foobar <- function() { # a couple of convenience functions before we begin: p2cX <- function(r, theta) x <- r*cos(theta*2*pi/360) p2cY <- function(r, theta) y <- r*sin(theta*2*pi/360) vp <- viewport(x = 0.5, y = 0.5, width = 0.8, height = 0.8,...
2010 Aug 26
3
Passing data to aov
...ives, the problem might arise with one of the deparse statements in aov, but I can't resolve it. It might also be one of scoping/environment, but again, this is only an idea. TIA for any assistance. Bryan ************* Bryan Hanson Professor of Chemistry & Biochemistry DePauw University, Greencastle IN USA hypTestScores <- function(mylist, score.matrix, pcs = 1:3, fac = NULL, ...) { scores <- score.matrix[,pcs] # str(scores) # looks correct to me form <- as.formula(paste("scores", "~", paste(fac, collapse = "*")), env = p...
2010 Jul 12
2
findInterval and data resolution
...k I can construct the full set of indices I want with a2[1]:a2[2] but is there a more clever way to do this? I'm thinking there might be a function out there that I am not aware of. TIA, Bryan ************* Bryan Hanson Acting Chair Professor of Chemistry & Biochemistry DePauw University, Greencastle IN USA
2009 Oct 02
1
ggplot2: proper use of facet_grid inside a function
...nnet_7.2-48 mclust_3.2 MASS_7.2-48 [21] lars_0.9-7 e1071_1.5-19 class_7.2-48 loaded via a namespace (and not attached): [1] cluster_1.12.0 Thanks for any help! Bryan ************* Bryan Hanson Professor of Chemistry & Biochemistry DePauw University, Greencastle IN USA
2011 May 20
3
Downloading a csv from Dropbox using the shareable link
...to access common data set w/o changing the path to the file each time a different person opens the file and works on it. Perhaps there is another way of doing this. Thanks for any suggestions. Bryan **************** Prof. Bryan Hanson Dept of Chemistry & Biochemistry DePauw University Greencastle IN 46135 USA
2009 Oct 06
1
ggplot2: mapping categorical variable to color aesthetic with faceting
...sm, and then create one long vector of colors for the entire plot? I tried something like this, and was not successful, but perhaps could be with more work. All advice appreciated, Bryan (session info below) ************* Bryan Hanson Professor of Chemistry & Biochemistry DePauw University, Greencastle IN USA > sessionInfo() R version 2.9.2 (2009-08-24) i386-apple-darwin8.11.1 locale: en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] grid datasets tools utils stats graphics grDevices methods [9] base other attached packages: [1] ggp...
2009 Jul 24
3
str(data.frame) after subsetting reflects original structure, not subsetted structure?
...ct the revised object? Is there an argument that I can use to force the updating? For better or worse, I use str() a lot to check my work, and in this case, it seems to have misled me. Thanks as always, Bryan ************* Bryan Hanson Professor of Chemistry & Biochemistry DePauw University, Greencastle IN USA
2009 Aug 10
3
Need Advice: Considering Converting a Package from S3 to S4
...allow for "future expansion" as they say. If methods are not critical, does it make sense to spend the time making the change? Any perspective and advice would be welcomed. Thanks in advance, Bryan ************* Bryan Hanson Professor of Chemistry & Biochemistry DePauw University, Greencastle IN USA