search for: slacey

Displaying 20 results from an estimated 24 matches for "slacey".

Did you mean: lacey
2006 Apr 06
3
skipping rows in trellis key
Hi, I would like to add a key to my trellis plot using draw.key. Here is what I want: 3 x 6 key where the first row is a header. row 1: empty, "S-R Mapping", "R^2" row 2: pch=17, "Color", 0.951 row 2: pch=17, "Shape", 0.934 ect... The problem is that I would like the cell in the upper left corner to be empty (a placeholder) with the remaining
2006 Jan 19
2
creating objects with a slot of class formula, using new
Hi, This works fine. >setClass("a",representation(b="list",c="list")) >new("a",b=list(7)) >An object of class "a" Slot "b": [[1]] [1] 7 Slot "c": list() But, now suppose you want a slot to accept an object of class formula... >setClass("a",representation(b="list",c="formula"))
2006 Apr 06
2
key position in trellis plotting area
Hi, I want to do the following: 1) create a trellis plot with 1 x 1 layout 2) add a key in the upper right hand corner of the plotting region (i.e., the panel), but after the initial call to trellis 3) resize the resulting device graphics device without changing the relative position of the key For instance, the code below draws the key relative to the device window--not the plotting area.
2006 Apr 12
1
S4 class slot names
Hi, Why doesn't this work? setClass("test",representation(names="character")) tmp <- new("test") tmp@names <- "a" Error in "slot<-"(object, name, TRUE, value) : 'names' attribute [1] must be the same length as the vector [0] Why does this work (replace names with name)?
2006 Mar 22
1
setting argument defaults in setMethod
Hi, I want to set a default value in a method of a generic function. This seems as though it should be possible. From R help on setMethod... Method definitions can have default expressions for arguments. If those arguments are then missing in the call to the generic function, the default expression in the method is used. If the method definition has no default for the
2006 Apr 13
0
S4 class slot name 'names' is not allowed (PR#8767)
>>>>> "SteveL" == Steven Lacey <slacey at umich.edu> >>>>> on Wed, 12 Apr 2006 19:06:52 -0400 writes: SteveL> Hi, Why doesn't this work? setClass("tests", representation(names = "character")) tmp <- new("tests"); tmp at names <- "a" SteveL&gt...
2006 Apr 13
0
S4 class slot name 'names' is not allowed (PR#8768)
...From: Martin Maechler [mailto:maechler at stat.math.ethz.ch] Sent: Thursday, April 13, 2006 3:11 AM To: Steven Lacey Cc: R-bugs at stat.math.ethz.ch; r-help at stat.math.ethz.ch Subject: S4 class slot name 'names' is not allowed >>>>> "SteveL" == Steven Lacey <slacey at umich.edu> >>>>> on Wed, 12 Apr 2006 19:06:52 -0400 writes: SteveL> Hi, Why doesn't this work? setClass("tests", representation(names = "character")) tmp <- new("tests"); tmp at names <- "a" SteveL&gt...
2004 Jun 25
1
understanding nlm
Hi, I am using the nlm() function to fit the following exponential function to some data by minimizing squared differences between predicted and observed values: csexponential<- function(x, t1, ti, p){ ti + abs(t1 - ti)*(exp(-(p*(x-1)))) } As background, the data is performance measured across time. As you might imagine, we get rapid improvement across the first couple of time points
2006 Mar 25
4
object size vs. file size
Hi, There is rather large discrepancy in the size of the object as it lives in R and the size of the object when it is written to the disk. The object in question is an S4 of a homemade class "sa". I first call a function that writes a list of these objects to a file called "data.RData". The size of this file is 14,411 KB. I would assume on average then, that each list
2006 Apr 07
0
[R] documenting s4 methods in package
...>>> You can edit the MkRules file to disable production of this kind of >>> help page. >>> >>> Duncan Murdoch >>>> Thanks, >>>> Steve >>>> >>>> -----Original Message----- >>>> From: Steven Lacey [mailto:slacey at umich.edu] >>>> Sent: Tuesday, April 04, 2006 1:54 PM >>>> To: 'Thomas Lumley' >>>> Cc: 'r-help at stat.math.ethz.ch' >>>> Subject: RE: [R] documenting s4 methods in package >>>> >>>> >>>> Thomas,...
2005 Mar 18
1
slow computation of mixed ANOVA using aov
Dear R-help list, I am trying to do a mixed ANOVA on a 8960 x 5 dataframe. I have 3 factors for which I want to test all main effects and interactions : f1 (40 levels), f2 (7 levels), and f3 (4 levels). I also have a subject factor, subject, and a dependent variable, dv. Some more information about the factors: f2 is a between-subject factor. That is, for each level of f2 there are 8 nested
2006 Apr 04
2
documenting s4 methods in package
Hi, I have written a package that contains many s4 generic functions and associated methods. I am having a lot of trouble getting R to build the help pages for these generic functions without reporting, "missing link(s): ~~fun~~, which means that it cannot find the appropriate function when code in the example section of the help is run. Right? After some playing around I can get it to
2004 Mar 03
1
nesting vectors in a dataframe
Hi, I want to create a dataframe where one of the columns does not hold individual elements, but a vector instead. For example, imagine the following dataframe without any vectors as elements . . . ex X1 X2 1 5 15 2 7 12 3 9 14 If I have a pre-existing dataframe, then setting an element in the dataframe
2004 Mar 22
2
calling bwplot within a for loop
Hi, I am working with R 1.81. When I call bwplot() it prints the output to the windows device as it should. For example, d<-data.frame(y=c(2,3,4,5,12,14,16,11),x=c(rep("group1",4),rep("group2",4))) bwplot(y~x,data=d) This code results in a parallel boxplot. That is a single plot with 2 boxplots next to each other; a boxplot for "group1" and a boxplot
2006 Apr 21
1
message posting
Hi, I sent two emails to the R help list and got no reply. While this may be my question, it is unlike the users of this list not to reply (thankfully!). I checked for my message using the archive for April 2006 and found the following where the text of message should have been: An embedded and charset-unspecified text was scrubbed... Does this message mean that my message wasn't posted
2007 Mar 04
1
factor analysis and pattern matrix
Hi, In a discussion of factor analysis in "Using Multivariate Statistics" by Tabachnick and Fidell, two matrices are singled out as important for interpreting an exploratory factor analysis (EFA) with an oblique promax rotation. One is the "structure matrix". The structure matrix contains the correlations between variables and factors. However, these correlations may be
2006 Mar 17
0
setMethod bug
Hi, I define a generic function that has many parameters (~20). I then want to define methods for the generic function with setMethod. The default behavior for setGeneric is to allow dispatching on any argument in the def function, expect ... For example, # define a generic function setGeneric("test", useAsDefault=FALSE,
2007 May 20
2
miktex 2.6 and R
Hi, I am new to Latex and in the process of installing miktex to work with R on windows XP professional. From earlier posts, I see that fptex was the preferred version, but it is no longer available. Now miktex is preferred. However, there are known issues with finding the style files in version 2.4. Fortunately, www.murdoch-sutherland.com/Rtools/mikitex.html provides a series of workarounds.
2006 Jan 06
1
help with strip.default
Hi, I am creating a multi-conditioned trellis plot. My data look something like this: Factor A Factor B IV DV X 1 X 2 X 3 X 4 Y 1 Y 2 Y 3 Y 5 Z 1 Z 2 Z 3 Z 4 In one sense these data are suitable for trellis because for every level of factor A
2006 Apr 20
1
aov contrasts residual error calculation
Hi, I am using aov with an Error component to model some repeated measures data. By repeated measures I mean the data look something like this... subj A B C 1 4 11 15 2 3 12 17 3 5 9 14 4 6 10 18 For each subject I have 3 observations, one in each of three conditions (A, B, C). I want to test the