Displaying 1 result from an estimated 1 matches for "list_of_b_object".
Did you mean:
list_of_b_objects
2014 Feb 19
0
dispatch on "c" method when passing named arguments
..._of_A_objects <- lapply(raw_input, function(aa) new("A", aa=aa))
Then:
> do.call("c", list_of_A_objects)
An object of class "A"
Slot "aa":
[1] 1 2 3 11 12
==> all is fine.
But:
setClass("B", contains="A")
list_of_B_objects <- lapply(raw_input, function(aa) new("B", aa=aa))
Then:
> do.call("c", list_of_B_objects)
$chr1
An object of class "B"
Slot "aa":
[1] 1 2 3
$chr2
An object of class "B"
Slot "aa":
[1] 11 12
==> dis...