[Rd] is.vector(as.vector(x, m), m) not always TRUE
Hervé Pagès
hpages at fhcrc.org
Thu Apr 25 01:15:15 CEST 2013
On 04/24/2013 09:02 AM, peter dalgaard wrote:
> This is now fixed in R-devel (never actually bit anyone, did it?)
Thanks for fixing... before someone gets bitten :-)
as.vector() just made it into the BiocGenerics package, and the man
page for BiocGenerics::as.vector redirects the reader to the man page
for base::as.vector for the conventions that writers of methods for
"as.vector" should follow. Having base::as.vector actually follow
those conventions increases the chances that writers of "as.vector"
methods will follow them too, which is good.
Cheers,
H.
>
> -pd
>
> On Apr 24, 2013, at 08:11 , peter dalgaard wrote:
>
>>>>
>>>> is.vector(as.vector("a", "name"), "name")
>>> [1] FALSE
>>>
>>> Mmmh, the default method itself doesn't seem to follow its own
>>> conventions :-/
>>>
>>
>> Looks like there should be a straightforward fix, since
>>
>>> is.vector(as.vector("a", "name"), "symbol")
>> [1] TRUE
>>
>> so it is just a matter of implementing "name" as synomyous with "symbol".
>
--
Hervé Pagès
Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M1-B514
P.O. Box 19024
Seattle, WA 98109-1024
E-mail: hpages at fhcrc.org
Phone: (206) 667-5791
Fax: (206) 667-1319
More information about the R-devel
mailing list