Displaying 2 results from an estimated 2 matches for "r38037".
Did you mean:
138037
2006 May 05
4
str() with attr(*, "names") is extremely slow for long vectors
Hi,
I noticed some time ago that, for instance, named vectors that are
really makes str() really slow when displaying the names attribute. I
don't know exactly when this started, but it wasn't the case say 1-2
years ago. Example (on a WinXP 1.8GHz):
> s <- 1:1000; names(s) <- s
> system.time(str(s))
Named int [1:1000] 1 2 3 4 5 6 7 8 9 10 ...
- attr(*, "names")=
2006 May 20
1
merge problem... extra lines appear in the presence of NAs
...orm i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status Patched
major 2
minor 3.0
year 2006
month 05
day 11
svn rev 38037
language R
version.string Version 2.3.0 Patched (2006-05-11 r38037)
win-xp-pro sp2 - binary installs from CRAN
it works in a similar way if I say
atot <- merge(a1,a2,by.x="mdate",by.y="mdate",all=T)
or even
atot <- merge(a1,a2,by="mdate",all=T)
also tested on versions 2.2.1, 2.3.0
cheers,
Sean O'Riordain
(ps. ctrl-v pa...