Displaying 20 results from an estimated 2000 matches similar to: "Extending a group of S4 classes by setClassUnion ?"
2020 Oct 05
2
S4 - inheritance changed by order of setClassUnion and setAs()
Dear colleagues,
there is a behaviour with S4 (virtual) classes that I find very hard to understand: Depending on the position
of setAs(), the tree of inheritance changes.
This is my baseline example that defines the classes "grandma", "mother", "daughter" and a virtual
class "mr_x". For a new instance if "daughter", "mr_x" is betweeen
2010 May 19
2
Joining two (or more) frequency tables
Hi,
I am still new to R and have, in spite of searching all over, found no
"understandable" documentation for how to join two (or more) frequency
tables.
Why would I want to do that and what do I mean by "joining" ? Let me try
to explain:
I have a diagnosis form that allows registration of up to three diagnosis
codes on animals with birth defects, like this:
father.id
2020 Oct 06
0
S4 - inheritance changed by order of setClassUnion and setAs()
Andreas,
As far as I can tell (/conjecture), this is because the list of classes a
particular class inherits from directly is appended to as needed, and so
the order that a class extends others isd refined by the order that those
connections are defined.
We can see this with two setClassUnion calls, rather than required setAs:
> setClass("grandma", slots = c(a =
2006 Sep 21
3
:order by association field
Hi. I''m trying to do something that should be a fairly common pattern,
but I''m currently not sure how.
BACKGROUND:
model Family has_one Father. also, Family has field "country_of_origin"
model Father has a number of fields, such as first_name, age, etc.
It''s easy to sort based on families'' fields:
sorted_families = Family.find(:all, :order =>
2008 May 27
2
HABTM using two columns
Hi all,
I was wondering whether anyone could guide me to docu and code
examples how to create and use a has_and_belongs_to_many relationship
with a joining table where TWO columns are used to identify the
relation to TWO alternative tables.
Example:
table 1: mothers [mother_id, name]
table 2: fathers [father_id, name]
table 3: children [child_id, name]
joining table 4: children_parent
2009 Jan 22
1
infer haplotypes phasing trios tdthap
Dear R mailing list,
I have a dataset with genotypes from trios and I would like to infer
haplotypes for each mother, father and child. The package that I could
find that can do this is tdthap.
But when the mother is homozygous (e.g., 2/2) the haplotype is called as
not possible to infer (0); I would prefer for it to call the genotype
(2). From what I understand it is doing what I would like
2018 Jul 10
4
Construcción de archivo de texto
Hola a todos,
A partir de los siguientes datos:
d <- list(`1` = structure(list(ped = c(1L, 1L, 1L, 1L, 1L, 1L, 1L),
id = 1:7, father = c(2L, 0L, 0L, 2L, 2L, 2L, 2L), mother = c(3L,
0L, 0L, 3L, 3L, 3L, 3L), sex = c(2L, 1L, 2L, 2L, 2L, 1L,
2L), affected = c(1L, 2L, 1L, 1L, 2L, 2L, 2L)), row.names = c("1",
"2", "3", "4", "5",
2014 Mar 12
1
PCI Passthrough of 2 identical devices
hi,
i have a small trouble with pci-passthrough.
i have a working configuration passing a tv card into the guest, all is fine and dandy.
as soon as i add my second identical card into the host i cant start the guest anymore, whether i add the second card to the guest or not. error message is identical in both cases.
message of virt-manager|virsh|libvirtd.log:
> libvirtError: internal error:
2013 Jan 23
4
how to read a df like that and transform it?
Dear all
I have a data.frame like that :
father mother num_daughter daughter
291 3906 0 NULL
275 4219 0 NULL
273 4236 1 49410
281 4163 1 49408
274 4226 1 49406
295 3869 2 49403
49404
287 4113 0 NULL
295 3871 1 49401
292 3895 4 49396
49397
49398
49399
291 3900 3 49392
How to read it into R and transform it like that:
father mother num_daughter
2010 Mar 28
1
Renumbering
HI all,
Is there a renumbering function in R?
I would like to renumber the following id numbers
*Input file
*
Id Father Mother 123 0 0 124 0 0 125 123 124 126 123 0 127 125 126
128 0 127 130 123 125
*Output*
Id Father Mother 1 0 0 2 0 0 3 1 2 4 1 0 5 3 4 6 0 7 7 1 2
Any help is highly appreciated in Advance
Val K
[[alternative HTML version deleted]]
2004 Feb 15
4
father and son heights
Faraway's book titled "Practical Regression and Anova using R",
with full text available online at:
http://cran.r-project.org/doc/contrib/Faraway-PRA.pdf
refers to a data set, stat500, which compares midterm and final
grades. It can be used to illustrate similar concepts.
A google search for faraway.zip will locate the actual data.
---
Date: Sun, 15 Feb 2004 10:37:08 -0800
2007 Mar 26
1
data-frame adding/deleting column
Hallo,
I have got an existing data frame and want to add a new column. The
existing data frame was created like this:
> df <- rbind( c("Fred", "Mary", 4), c("Fred", "Mary", 7),
+ c("Fred", "Mary", 9), c("Barney", "Liz", 3),
+ c("Barney", "Liz", 5) )
> df
2009 Dec 14
2
Doubts about namespace && thunderbird.
Hi people.
I ask this because I'm confuse about the namespace stuff.
I setup a server with Centos 5.4(updated)+dovecot 1.0.7+postfix 2.3.3. We
use thunderbird 2.0.x as our default email client.
I want to use courier-imap inbox layout:
Inbox--
sent
junk
trash
draft
The inbox as father of the tree, other post say something about a
2020 Feb 18
0
Possible Regression in setClassUnion between 3.5.0 and 3.6.0
Hi Robert,
This looks like a bug to me (tested in R 3.6.2 on Windows), f(new("a"))
should return "hi!". I'll add that this DOES work properly in 3.6.1
which leads me to suspect this could be due to the subtle change in the
way method dispatch was performed to fix a different bug, in 3.6.2. Can
anybody else confirm that?
On 2/18/2020 9:32 AM, Robert Harlow wrote:
>
2002 Sep 25
2
Weekly machine password changes (RE: RE: odd: everything SHOULD work... winbind)
No big surprise there. :)
I'm still trying to figure exactly what goes on with the machine
password changing around. Who initiates this? nmbd? The PDC? Who's
notified of this change, and what's going on there.
Perhaps someone can shed some light?
--
Nir Soffer -=- Software Engineer, Exanet Inc. -=-
"Father, why are all the children weeping? / They are merely crying son
O, are
2009 Feb 11
1
setClassUnion with numeric; extending class union
Dear list:
I am looking for a good way to create an S4 class that would extend
numeric, but would allow NULL instead of data as well. As far as I can
see there is no way at the moment to do that, but please correct me if I
am wrong. The best solution I came up with so far was the following (it
also indicates a problem of using setClassUnion with numeric as one of
the classes):
I define a class
2004 Oct 14
2
setClassUnion
Hello,
I have a question concerning "setClassUnion".
I'm working with R 2.0.0 Patched (2004-10-06) on windows 2000.
I tried to use "setClassUnion" in a package I am currently working on. The
situation is similar to the following example:
The DESCRIPTION file has entries:
Depends: R (>= 2.0.0), methods
Imports: methods
LazyLoad: yes
The NAMESPACE file has
2004 Oct 14
2
setClassUnion
Hello,
I have a question concerning "setClassUnion".
I'm working with R 2.0.0 Patched (2004-10-06) on windows 2000.
I tried to use "setClassUnion" in a package I am currently working on. The
situation is similar to the following example:
The DESCRIPTION file has entries:
Depends: R (>= 2.0.0), methods
Imports: methods
LazyLoad: yes
The NAMESPACE file has
2020 Feb 25
0
Possible Regression in setClassUnion between 3.5.0 and 3.6.0
This seems to work as expected (returning "hi!") in R-devel, but there
have been so many destabilizing changes to methods that it would be
tough to port this to release. Probably should just wait for 4.0.
Michael
On Tue, Feb 18, 2020 at 8:00 PM Michael Lawrence <michafla at gene.com> wrote:
>
> Thanks, I'll look into it.
>
> On Tue, Feb 18, 2020 at 8:32 AM Ezra
2006 Apr 12
1
yet another problem with S4 dispatch (with setClassUnion)
Dear John and Seth, dear R-devels,
once again the question of method dispatch in S4 -- this time with
setClassUnion(); taking up your advice in
https://stat.ethz.ch/pipermail/r-devel/2006-April/037200.html
https://stat.ethz.ch/pipermail/r-devel/2006-April/037201.html
I have been too quick in stating that
>setClassUnion()---at least in my case---solves the problem;
>
The problem arises