Displaying 8 results from an estimated 8 matches for "pdbailey".
2005 Oct 09
3
cor doesn't accept na.rm? (PR#8193)
Full_Name: Paul Bailey
Version: 2.1.1
OS: OS X 10.3
Submission from: (NULL) (68.252.250.144)
?cor
[tells me that it has a na.rm variable]
> cor(frame2[1,],frame2[2,],na.rm=T)
Error in cor(frame2[1, ], frame2[2, ], na.rm = T) :
unused argument(s) (na.rm ...)
hmm.
2010 Jul 08
2
pass-by-reference
I'm working with a large object that I want to modify slightly in a function.
Pass-by-reference would make a lot of sense, but I don't know how to do it.
I've searched this archive and thought that I can do something like
f <- function(x) {
v1 <- list(a=x,b=3)
g(x)
v1
}
g <- function(x) {
frame <- parent.frame()
assign("v1",list(a=x,b=x),frame)
}
f(4)
2005 May 27
1
crash in R OS X GUI (PR#7903)
When I type an open paren the (otherwise absolutely wonderful)
help dialog at the bottom crashes R.
For example
> polygon(c(
[all is well
> polygon(c((
2005-05-27 14:13:14.843 R[478] *** -[NSCFDate
characterAtIndex:]: selector not recognized
2005-05-27 14:13:14.881 R[478] *** NSTimer discarding
exception 'NSInvalidArgumentException' (reason '*** -[NSCFDate
characterAtIndex:]:
2011 Nov 27
1
Error in Rd[[which]] : subscript out of bounds
I'm getting the following form R CMD CHECK mypackage
-----------
* checking Rd files ... WARNING
Error in Rd[[which]] : subscript out of bounds
problem found in ?myfunction.Rd?
---------
This is... not the most helpful error.
I'd be happy to make a minimal .Rd example file if someone can point me to what a minimal .Rd file has in it.
The file is already pretty minimal, so it's
2011 Jan 28
2
help with S4 objects: trying to use a "link-glm" as a class in an object definition
Hi,
I'm trying to make a new S4 object with a slot for a "link-glm" object. R doesn't like me have a slot of class "link-glm"
> class(make.link("probit"))
[1] "link-glm"
> setClass("a",representation(item="link-glm"))
[1] "a"
Warning message:
undefined slot classes in definition of "a": item(class
2011 Jan 26
1
aggregate(as.formula("some formula"), data, function) error when called from in a function
I'm having a problem with aggregate.formula when I call it in a function and the function is converted from a string in the funtion
I think my problem may also only occur when the left hand side of the formula is cbind(...)
Here is example code that generates a dataset and then the error.
The first function "agg2" fails
> agg2(FALSE)
do agg 2
Error in m[[2L]][[2L]] : object
2008 Jun 17
0
Quickly reading data into the Matrix packages sparse formats
I have data set that I wish to solve with the Matrix package's sparse
matrix functionality. The speed improvements that it has achieved are
amazing, with my dense matrix solutions never taking really long
enough to time in what I've been able to time so far. However, before
I can solve my full linear model, I need to be able to read in all
the data, and therein lies the rub.
2006 Jun 16
0
cat, print and documentation disagree (PR#8992)
The tone of your email makes it look like you think the exact
output of cat and print in these instances is irrelevant and
not worth thinking about and that the documentation is `close
enough,' or up to the (perhaps implied) R documentation
standard. This is a reasonable stance. If you hold it, please
just circular file my bug report as irrelevant and let's not
waste any more time on it.