search for: mynid

Displaying 8 results from an estimated 8 matches for "mynid".

Did you mean: myid
2015 Dec 11
3
For integer vectors, `as(x, "numeric")` has no effect.
...gt; but I still think we should add such a coercion to R. > Martin Hmm... I've tried to add the above to R and do notice that there are consequences that may be larger than anticipated: Here is example code: myN <- setClass("myN", contains="numeric") myNid <- setClass("myNid", contains="numeric", representation(id="character")) NN <- setClass("NN", representation(x="numeric")) (m1 <- myN (1:3)) (m2 <- myNid(1:3, id = "i3")) tools::assertError(NN (1:3))# in all R...
2015 Dec 12
2
For integer vectors, `as(x, "numeric")` has no effect.
...'ve tried to add the above to R >> and do notice that there are consequences that may be larger than >> anticipated: >> >> Here is example code: >> >> myN <- setClass("myN", contains="numeric") >> myNid <- setClass("myNid", contains="numeric", representation(id="character")) >> NN <- setClass("NN", representation(x="numeric")) >> >> (m1 <- myN (1:3)) >> (m2 <- myNid(1:3, id = "i3"))...
2015 Dec 11
0
For integer vectors, `as(x, "numeric")` has no effect.
...ion to R. > >> Martin > > Hmm... I've tried to add the above to R > and do notice that there are consequences that may be larger than > anticipated: > > Here is example code: > > myN <- setClass("myN", contains="numeric") > myNid <- setClass("myNid", contains="numeric", representation(id="character")) > NN <- setClass("NN", representation(x="numeric")) > > (m1 <- myN (1:3)) > (m2 <- myNid(1:3, id = "i3")) > tools::assertError...
2015 Dec 19
2
For integer vectors, `as(x, "numeric")` has no effect.
...ve to R >>>> and do notice that there are consequences that may be larger than >>>> anticipated: >>>> >>>> Here is example code: >>>> >>>> myN <- setClass("myN", contains="numeric") >>>> myNid <- setClass("myNid", contains="numeric", representation(id="character")) >>>> NN <- setClass("NN", representation(x="numeric")) >>>> >>>> (m1 <- myN (1:3)) >>>> (m2 <- myNid(1:3, id =...
2015 Dec 08
2
For integer vectors, `as(x, "numeric")` has no effect.
We do need an explicit method here, I think. The issue is that as() uses methods for the generic function coerce() but cannot use inheritance in the usual way (if it did, you would be immediately back with no change, since "integer" inherits from "numeric"). Copying in the general method for coercing to "numeric" as an explicit method for "integer" gives
2015 Dec 19
0
For integer vectors, `as(x, "numeric")` has no effect.
...ve to R >>> and do notice that there are consequences that may be larger than >>> anticipated: >>> >>> Here is example code: >>> >>> myN <- setClass("myN", contains="numeric") >>> myNid <- setClass("myNid", contains="numeric", representation(id="character")) >>> NN <- setClass("NN", representation(x="numeric")) >>> >>> (m1 <- myN (1:3)) >>> (m2 <- myNid(1:3, id =...
2015 Dec 26
0
[Bioc-devel] For integer vectors, `as(x, "numeric")` has no effect.
...t; and do notice that there are consequences that may be larger than >>>>> anticipated: >>>>> >>>>> Here is example code: >>>>> >>>>> myN <- setClass("myN", contains="numeric") >>>>> myNid <- setClass("myNid", contains="numeric", representation(id="character")) >>>>> NN <- setClass("NN", representation(x="numeric")) >>>>> >>>>> (m1 <- myN (1:3)) >>>>> (m2 <- m...
2016 Jan 05
2
For integer vectors, `as(x, "numeric")` has no effect.
...bove to R >>>> and do notice that there are consequences that may be larger than >>>> anticipated: >>>> >>>> Here is example code: >>>> >>>> myN <- setClass("myN", contains="numeric") >>>> myNid <- setClass("myNid", contains="numeric", representation(id="character")) >>>> NN <- setClass("NN", representation(x="numeric")) >>>> >>>> (m1 <- myN (1:3)) >>>> (m2 <- myNid(1:3, id = &...