: Freitag, 16. Juni 2017 um 18:31 Uhr
Von: "peter dalgaard"
An: "Robert McGehee"
Cc: "Jens Oehlschlägel" ,
"r-devel@r-project.org"
Betreff: Re: [Rd] 'ordered' destroyed to 'factor'
> On 16 Jun 2017, at 15:59 , Robert McGehee wrote:
>
)[[1]] # ordered factor
unlist(lapply(o, min))[[1]] # no longer ordered
sapply(o, min)[[1]] # no longer ordered
Jens Oehlschlägel
P.S: The above examples are silly for simple reproduction. The current behavior
broke my use-case which had a structure like this
# have s
# A couple of years ago
# I helped making R's character NA handling more consistent
# Today I report an issue with R's factor NA handling
# The core problem is that
# levels(g) <- levels(g)
# can change the levels of g
# more details below
# Kind regards
# Jens Oehlschlägel
# Say
Thanks for answering Simon,
> None, there is no concept of "shared" memory at R level. You seem to
be mixing C level API specifics and the R language. In the former
duplicate() creates a new copy.
I take this as evidence that calling duplicate() is the only way to make
sure I have a non-shar
d-access to
sxpinfo_struct.named in .Call (without setting it to 2)? That would give
us more control and also save some unnecessary copying. I guess once R
switches to reference-counting preventive increasing in .Call could not
be continued anyhow.
Kind regards
Jens Oehlschlägel
P.S. please cc
fdf (but something can
be improved about read.table). It is *not* the 'best solution [...] to
rewrite read.table.ffdf()' given that it nicely imports such data, see
4+1 ways to do so below.
Jens Oehlschlägel
# --- first create a csv file for demonstration
---
, I was shocked to see this, and as a
consequence, I suggest we do our homework and suspend -- for a year or two --
any claims that R can be used productive such as SAS.
Yours regretfully
Jens Oehlschlägel
__
R-devel@r-project.org mailing list
https
Thanks,
An overwrite flag would be great. Would make it cristal clear what the expected
behaviour is. Agree that unix behaviour should in case of doubt have priority -
in this case: documentation would help windows users.
Regards
Jens
__
R-devel@r-
Dear R developers,
It would be great if you could implement the two minor code changes suggested
below, which would help processing large objects in R.
Jens Oehlschlägel
# Wish no. 1: let [.AsIs return the class AFTER subsetting, not the class of
the original object
# Wish no. 2: adjust
Hi,
I guess that the followig line in read.table
tmp[i[i > 0L]] <- colClasses
should read
tmp[i[i > 0L]] <- colClasses[i > 0L]
Is this a bug?
Cheers
Jens Oehlschlägel
--
für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02
_
me("./.")
[1] "."
> basename("./.")
[1] "."
> dirname("./")
[1] "."
> basename("./")
[1] "."
Jens Oehlschlägel
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
al object (and the external pointer) on
assignment (or even better only on modify after assignment).
Best regards
Jens Oehlschlägel
> dispatchsecond <- function(first, second)
+ UseMethod("dispatchsecond", second)
>
> dispatchsecond.default <- function(first, second){
al object (and the external pointer) on
assignment (or even better only on modify after assignment).
Best regards
Jens Oehlschlägel
> dispatchsecond <- function(first, second)
+ UseMethod("dispatchsecond", second)
>
> dispatchsecond.default <- function(first, second){
s are never duplicated, you
> ought to be able to take advantage of that to design the copying semantics
> you want.
How that? How do I know that any user has assigned/modified the external
pointer (or a proxy object containing the external pointer) such that I can
invoke the cloning?
e atomic data stored on
disk. I need some advice how to do this maximally performant, which probably
means pure S3!?
Best regards
Jens Oehlschlägel
--
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Dear all,
what is the proper way to make the assignment operator generic and define
methods depending on the class of the assigned value?
Best regards
Jens Oehlschlägel
P.S. I vaguely remember that this was possible in S+. In R I tried to no avail:
# using this like h<-1:3 gives Er
Dear all,
I have defined a generic as.ff(x, ...) and a method as.ff.function(x, ...)
which converts a standard R function x into a chunked version operating on
large ff objects. Everything works fine, but when registering
S3method("as.ff",function)
in NAMESPACE, the installation fails with so
tions for new classes 'hash' (requiring digest) and 'id' (and if
you are curious: first code drafts for the respective ff methods).
Best regards
Jens Oehlschlägel
# Hashing of large objects in ff
# (c) 2007 Jens Oehlschägel
# Licence: GPL2
# Created: 2007-10-30
# L
regression testing (to be defined).
Best regards
Jens Oehlschlägel
P.S.
> # some timings using timefactor(regtest)
> library(rindex)
>
> Vec1 <- c(NA, paste('a', 1:100, sep=""))
> Vec2 <- c(paste('a', 1:100, sep="")
ferently, I'd recommend to change
"rownames" and "colnames" accordingly, in order to have symmetry between
accessor and assignment functions. That would mean defining "names" and
"row.names" and their assignment methods for any classes inheriting fr
te. In order not to 'break'
existing code, what about adding ties.methods
{"NAaverage"|"NArandom"|"NAmax"|"NAmin"} that behave consistently?
Best regards
Jens Oehlschlägel
P.S. Please cc. me, I am not on the list
> version
Dear Brian,
Thanks for picking this up.
I think the critical point is that it is not a single isolated bug and it
would be a main effort to get this stuff consistent, because it (and
implications) seems to be spread all over the code. The to be applauded
efforts to properly sort out "NA" vs. as.c
The alternative would be to disallow "" in names at all.
However, both alternatives rather look like code changes, not only
documentation.
Best regards
Jens Oehlschlägel
--
Highspeed-Freiheit. Bei GMX supergünstig, z.B. GMX DSL_Cityflat,
__
R-
, here is the
original bug report:
(PR#8161)
Dear all,
The following shows cases where accessing elements via their name fails (if
the
name is a string of length zero).
Best regards
Jens Oehlschlägel
> p <- 1:3
> names(p) <- c("a","", as.character(NA))
> p
a
24 matches
Mail list logo