Displaying 20 results from an estimated 8000 matches similar to: "obstacles to using vectors with attributes"
2008 Feb 29
1
Problems initializing an extended S4 class
Hi all,
I am having trouble extending S4 classes in cases where I'm using both
validity and initialize methods. I've read as much S4 information as I
can find, but I've yet to have that "a-ha" moment.
In my application, I am using validity methods to guard against
inappropriate input data that my code has no way of handling, and
initialize methods to detect and deal
2009 Sep 07
0
performance of vector subscripting via character index
Hi all,
Using character indexing on a vector is quite fast up through vector
length of 46340, then it suddenly it gets 3 orders of magnitude slower.
This is true at least of the special case in which the index vector is
the complete (though possibly out-of-order) set of vector names:
test <- function(n) {
vec <- seq_len(n)
names(vec) <- as.character(vec)
ind <-
2013 Jan 28
1
Minor issue in code of 'diffinv.vector' in R 2.15.2
In R 2.15.2 (and not before), in the definition of function 'diffinv.vector' in package stats, there is
difference <- as.integer(differences)
I believe
differences <- as.integer(differences)
is intended, because 'difference' is not referenced anywhere. However, without conversion of 'differences' to integer, 'diffinv.vector' in R 2.15.2 works OK.
Also,
2004 Feb 25
1
lapack routine dgesdd, error code 1
Hello R-users,
during one of my analyses that involve a SVD, I get the following error
message:
Error in La.svd(x, nu, nv, method) : error code 1 from Lapack routine
dgesdd
With a search on the R web site, I only found references to error codes
17 and 3 for this particular routine. I also found the Lapack web site,
but could not find a list of the possible error messages. If somebody
knows what
1999 Nov 05
1
"break" breaks _outer_ loop -- ugh!
It appears that "break" will break from the outermost enclosing loop not
the innermost loop. Is it a bug or language feature?
Tim
--
Timothy H. Keitt
National Center for Ecological Analysis and Synthesis
735 State Street, Suite 300, Santa Barbara, CA 93101
Phone: 805-892-2519, FAX: 805-892-2510
http://www.nceas.ucsb.edu/~keitt/
1999 Nov 13
1
postgresql package for R
A preliminary release of my postgres package for R is at
http://www.nceas.ucsb.edu/~keitt/R/postgres.tgz
It allows one to read and write data frames to and from a postgres
database, execute queries and has an experimental "proxy" interface that
allows you to access postgres tables using the standard, local data
frame model. All accesses to the data frame generate the appropriate
1999 Nov 13
1
postgresql package for R
A preliminary release of my postgres package for R is at
http://www.nceas.ucsb.edu/~keitt/R/postgres.tgz
It allows one to read and write data frames to and from a postgres
database, execute queries and has an experimental "proxy" interface that
allows you to access postgres tables using the standard, local data
frame model. All accesses to the data frame generate the appropriate
2024 Jul 12
1
xftrm is more than 100x slower for AsIs than for character vectors
Good evening,
I recently have observed slow merges when combining multiple data frames
derived from DataFrame and base::data.frame. I observed that the index
column of intermediate tables was of class <AsIs> (automatically
converted from character). The problem occurred mainly when using the
sorted = T option in base::merge.
This can be traced to xtfrm.AsIs being more than 100 times slower
2024 Jul 14
2
xftrm is more than 100x slower for AsIs than for character vectors
? Fri, 12 Jul 2024 17:35:19 +0200
Hilmar Berger via R-devel <r-devel at r-project.org> ?????:
> This can be finally traced to base::rank() (called from
> xtfrm.default), where I found that
>
> "NB: rank is not itself generic but xtfrm is, and rank(xtfrm(x), ....)
> will have the desired result if there is a xtfrm method. Otherwise,
> rank will make use of ==, >,
2000 Feb 01
1
Install problems with RPgSQL
If you have had problems with the latest configure script in RPgSQL,
please try the version attached to this message. Let me know if you
have any problems. Thanks.
Tim
--
Timothy H. Keitt
National Center for Ecological Analysis and Synthesis
735 State Street, Suite 300, Santa Barbara, CA 93101
Phone: 805-892-2519, FAX: 805-892-2510
http://www.nceas.ucsb.edu/~keitt/
-------------- next part
2000 Feb 01
1
Install problems with RPgSQL
If you have had problems with the latest configure script in RPgSQL,
please try the version attached to this message. Let me know if you
have any problems. Thanks.
Tim
--
Timothy H. Keitt
National Center for Ecological Analysis and Synthesis
735 State Street, Suite 300, Santa Barbara, CA 93101
Phone: 805-892-2519, FAX: 805-892-2510
http://www.nceas.ucsb.edu/~keitt/
-------------- next part
2000 Feb 01
1
INSTALL script
The current INSTALL script calls ./configure if it exists when
installing packages, but does not check the return value from
configure. I have my configure script abort under certain conditions
and it would be nice if the INSTALL script would stop at that point.
Also, is there an autoconf macro for testing for gnu make?
Tim
--
Timothy H. Keitt
National Center for Ecological Analysis and
2004 Jun 21
1
R 1.9.1 is released
I've rolled up R-1.9.1.tgz a short while ago. This is a maintenance
version mainly to fix a number of minor bugs and issues (the most
annoying one seems to have been the change to barplots of tables) and
some installation issues.
Because of the relocation the CVS archives, there is no direct access
to the files until they show up on the CRAN master site. You can then
get it from
2004 Jun 21
1
R 1.9.1 is released
I've rolled up R-1.9.1.tgz a short while ago. This is a maintenance
version mainly to fix a number of minor bugs and issues (the most
annoying one seems to have been the change to barplots of tables) and
some installation issues.
Because of the relocation the CVS archives, there is no direct access
to the files until they show up on the CRAN master site. You can then
get it from
2000 Jul 21
1
save/load hooks
I'd like to suggest a small feature be added to R. It would be nice if
"load" and "save" had function hooks for object initialization and
finalization, e.g.,
load.hook <- function(x) UseMethod("load.hook")
save.hook <- function(x) UseMethod("save.hook")
These would then be called on each object saved or loaded. The default
method would do
2010 Feb 25
1
error in lmLists in lme4 package (bug?)
Hello,
I am trying to use lmLists in the lme4 package and copying over very
standard code from the nlme package given in 'Mixed-Effects Models in S
and S-Plus'. It appears to not accept an 'I(age-11)' in the formula,
though it will accept the formula with out the subtraction of 11 from
age. This seems like it would be a bug, since this is standard formula
syntax, unless
2000 Feb 08
1
0.99
Congrats on the new release. The new package management tools are
great!
A couple of quick comments:
1) it might be nice to add an optional "Autoloads:" field to the
description (the package does not depend on these other packages, but
will autoload them if certain functions are called).
2) on page 3 of the R-exts document, it says to set PKG_* flags in
'Makeconf'; I think
2019 Nov 17
2
Inappropriate class(o)[!inherits(o,"AsIs")] in get_all_vars
SVN?revision?77401?changes
????????x[isM]?<-?lapply(x[isM],?function(o)?`class<-`(o,?class(o)[class(o)?!=?"AsIs"]))
to
????????x[isM]?<-?lapply(x[isM],?function(o)?`class<-`(o,?class(o)[!inherits(o,"AsIs")]))
in?function?'get_all_vars'?in?src/library/stats/R/models.R?in?R?devel.
The?change?is?inappropriate.
2019 Nov 29
0
Inappropriate class(o)[!inherits(o,"AsIs")] in get_all_vars
class(o)[!inherits(o,"AsIs")] is still in function 'get_all_vars' in R patched (in https://svn.r-project.org/R/branches/R-3-6-branch/src/library/stats/R/models.R). It was ported to R patched by r77402. On Monday, 18 November 2019, 8:12:10 PM GMT+7, Martin Maechler <maechler at stat.math.ethz.ch> wrote:
>>>>> Martin Maechler
>>>>>? ?
2019 Nov 18
2
Inappropriate class(o)[!inherits(o,"AsIs")] in get_all_vars
>>>>> Martin Maechler
>>>>> on Mon, 18 Nov 2019 12:15:38 +0100 writes:
>>>>> suharto anggono--- via R-devel
>>>>> on Sun, 17 Nov 2019 10:34:31 +0000 writes:
>> SVN revision 77401 changes
>> x[isM] <- lapply(x[isM], function(o) `class<-`(o, class(o)[class(o) != "AsIs"]))
>> to