Displaying 20 results from an estimated 6000 matches similar to: "[., multiple inheritance, and R 1.6"
2008 Jul 01
1
[.data.frame speedup
Below is a version of [.data.frame that is faster
for subscripting rows of large data frames; it avoids calling
duplicated(rows)
if there is no need to check for duplicate row names, when:
i is logical
attr(x, "dup.row.names") is not NULL (S+ compatibility)
i is numeric and negative
i is strictly increasing
"[.data.frame" <-
function (x, i, j,
2006 Nov 07
1
data frame subscription operator
Hi all,
I was looking at the data frame subscription operator (attached in the end
of this e-mail) and got puzzled by the following line:
class(x) <- attr(x, "row.names") <- NULL
This appears to set the class and row.names attributes of the incoming data
frame to NULL. So far I was not able to figure out why this is necessary -
could anyone help ?
The reason I am
2005 May 23
2
Documentation of S3 and S4 classes, inheritance
I'd like to have a class A that computes a likelihood, and a subclass B
that computes the same likelihood by sometimes throws in an additional
term (B includes measurement error).
So B's likelihood needs to call A's, and then (sometimes) multiply by an
additional term.
It sounds as if, in the S3 scheme, NextMethod is supposed to do this:
like.A <- function(stuff) compute value
2008 Sep 29
1
describe function in package Hmisc and function format.dates in chron (PR#13087)
Full_Name: Kem Phillips
Version: 2.7.1 (2008-06-23)
OS: Windows Xp professional
Submission from: (NULL) (98.221.200.108)
The Hmisc function describe fails, giving the error message:
Error in formatDateTime(dd, atx, !timeUsed) :
could not find function "format.dates"
Loading the chron package, where function dates apparently resides, does not
fix the problem. Note
2005 May 23
1
SV: Documentation of S3 and S4 classes, inheritance
I am sure that I do not have the answer to your question - but I would like to add to your views regarding the S4-issue. I've been involved in the gRbase package for graphical modelling in R. The first version was implemented in S4 but now we have made a roll-back to using S3 methods.
While, I can see that S3 is not really comprehensive enough for 'proper' object oriented
2008 Jan 13
1
Hmisc latex() does not want to work
I seem to have a problem getting latex (Hmisc) to
work.
Any suggestions as to what I am doing wrong?
Thanks
library(Hmisc)
aa <- data.frame(aa=1:10, bb=rnorm(10, 5, 2),
cc=rnorm(10, 20, 4))
rr <- lm(cc~aa+bb, data=aa); rr
latex(rr)
> latex(rr)
'latex' is not recognized as an internal or external
command,
operable program or batch file.
Warning messages:
1: In cbind(cx, cxk) :
2006 Dec 31
1
Genotype importing from Sequenom
Sequenom has an odd format of calling a SNP genotype
gg
[1] "C" "GA" "A" "C" "C" "AG" "C" "C" "T" "G"
homozygous A is called A and heterozygous is called AT
The genetics package cannot handle the fact that some genotypes are declared
with 2 letter while other are declared with only 1.
2016 Dec 07
1
Unusual System State
I have seen *some* similar activity in different machines through the years and it *always* turns out to be a hardware issue. If this machine is particularly old, I would be suspicious of that.
Linc Fessenden
________________________________________
From: CentOS [centos-bounces at centos.org] on behalf of m.roth at 5-cent.us [m.roth at 5-cent.us]
Sent: Wednesday, December 07, 2016 1:51 PM
To:
2009 Oct 14
1
using mapply to avoid loops
Hello, I would like to use mapply to avoid using a loop but for some reason, I can't seem to get it to work. I've included copies of my code below. The first set of code uses a loop (and it works fine), and the second set of code attempts to use mapply but I get a "subscript out of bounds" error. Any guidance would be greatly appreciated. Xj, Yj, and Wj are also lists, and s2,
2004 Aug 06
0
̨Íåºê´ó¹ú¼ÊÉÌó³ÏÑ°¹óµØºÏ×÷»ï°é£¬ÏúÊÛµçÄÔÅä¼þ¡¢ÊÖ»ú¡¢±Ê¼Ç±¾µçÄÔ ÁªÏµÈË:³ÂÊÀ½Ü µç»°:013850704389
̨Íåºê´ó¹ú¼ÊÉÌó¹«Ë¾³ÏÑ°¹óµØºÏ×÷»ï°é£¬ÏúÊÛµçÄÔ¡¢Åä¼þ¡¢ÊÖ»ú¡¢±Ê¼Ç±¾µçÄÔ¡££¨²Î¿¼¼Û¸ñ±íÈçÏ£©
ÎÒ˾±£Ö¤²úƷΪȫÐÂÔ×°,»õµ½¸¶¿î¡£Óв»Ïê¿ÉÀ´ÈËÀ´µç×Éѯ£º
ÁªÏµÈË:³ÂÊÀ½Ü µç»°:013850704389
Ò»¡¢Ä¦ÍÐÂÞÀ µ¥Î»/Ôª
T189--400 T190--350 T191--500 C289--550
T2988--350 A388--1600 A6288--1300 V70--2000
V8088--800 V998++ --700 V60+ --1200 V66+GPRS--950
ŵ»ùÑÇ
3310--400 3330--450
2007 Mar 11
1
Problem in Mounting Exaclibur 4GB USB Pen Drive on Centos4.0
Hi Friends,
I have an Excalibur 4GB USB Pen Drive Model Number EXC4. I think it
is getting detected by the Centos but I am not sure about the mount
point or the device point it is taking /dev/s??
Logs from /var/log/messages.
Mar 11 11:30:06 l_l_box kernel: usb 1-1: USB disconnect, address 3
Mar 11 11:30:22 l_l_box kernel: usb 1-1: new high speed USB device
using address 4
Mar 11 11:30:22
2006 Jan 16
0
USB Problem
I am having this problem where out of the blue my mouse and UPS will
stop functiong. Once this even occurs I will find multiple messages like:
Jan 15 10:40:32 nureyev kernel: drivers/usb/input/hid-core.c: control
queue full
Jan 15 10:40:42 nureyev kernel: drivers/usb/input/hid-core.c: control
queue full
iin /var/log/messages. The only way I can get the mouse and UPS back is
to ssh into the
2010 Jul 08
1
Prefered Method for UPS?
Hello,
since I had delayed the programming of the UPS Device part, now it is
time to continue...
My Device is "24 V DC modular ATX PSU" which replace the standard ATX
Power Supply in PCs and use 15-43 V Input Voltage. The microcontroller
is a TI LM3S5T36 Cortex M3 and I get the "UPS" infos using up to 4 Maxim
DS1780 and some I?C current sensors. The ATX PSU has 4
2008 Apr 15
0
Same output in NUT as from APC tools?
Hello,
Since I have now nearly all stuff running on my LH7A404 and now I am
working on my DS80C411, I like to know, whether NUT show the APC UPS
stats like the APC tools.
Currently I do not know, HOW NUT triber the USB-Poert to get out the
infos of the UPS. In theory I do send out only arround 5-60 lines of
data which then NUT or any other programs must parse or something
2005 Jul 12
1
Tripplite and newhidups
--zhXaljGHf11kAtnf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
I'm trying to set up a TrippLite Internet Office 750 just like this guy:
http://lists.alioth.debian.org/pipermail/nut-upsuser/2005-June/000007.html
Here's the output of a few interesting commands
stuart@tyro:~+ dpkg-query -l nut nut-usb| tail -n2| awk
2004 May 24
1
as.matrix.data.frame() in R 1.9.0 converts to character when it should (?) convert to numeric
Conversion of a data frame to a matrix using as.matrix() when a
column of the data frame is POSIXt and all other columns are numeric
has changed in R 1.9.0 from R 1.8.1. The new behavior issues a
warning message and converts to a character matrix. In R 1.8.1, such
an object was converted to a numeric matrix.
Here is an example.
#### R 1.9.0 ####
> foo <- data.frame(
2002 Oct 09
1
problems with missing values created by conversion using as.matri (PR#2130)
> version
_
platform sparc-sun-solaris2.8
arch sparc
os solaris2.8
system sparc, solaris2.8
status
major 1
minor 6.0
year 2002
month 10
day 01
language R
2017 Dec 01
1
Bug is as.matrix.data.frame with nested data.frame
Converting a data.frame with a nested data.frame to a matrix fails:
x <- structure(list(a = data.frame(letters)),
class = "data.frame",
row.names = .set_row_names(26))
as.matrix(x)
#> Error in ncol(xj) : object 'xj' not found
The offending code is here, in the definition of as.matrix.data.frame
(source/base/all.R):
for (j in pseq) {
2008 Sep 03
1
problem with Hmisc
Dear All,
I'm reading Frank Harrell's wonderful Regression
Modeling Strategies book and ran into a problem
following the example in Chapter 8. I'm working
on
platform: Ubuntu 8.04 (i486-pc-linux-gnu)
R version: 2.7.2 (2008-08-25)
and my command sequence was:
library(chron)
library(Hmisc)
load("prostate.sav")
describe(prostate)
The last command returned the error
2012 Oct 26
2
connect points in charts
Hi
is there a automatic way that long distances between points are not
connected. I have something like
plot(x,y,type="o",...)
atx <- seq(as.Date("2009-04-01"),as.Date("2011-04-01"),"month")
axis.Date(1, at=atx,labels=format(atx, "%b\n%Y"), padj=0.5 )
but I do not want lines between points whose distance is greater than
two weeks.
thx