[Rd] Bug in printing array of type "list"
Hervé Pagès
hp@ge@ @ending from fredhutch@org
Wed Sep 26 22:03:40 CEST 2018
Hi,
This array is of type "list" but print() reports otherwise:
a1 <- array(list(1), 2:0)
typeof(a1)
# [1] "list"
a1
# <2 x 1 x 0 array of character>
# [,1]
# [1,]
# [2,]
No such problem with an array of type "logical":
a2 <- array(NA, 2:0)
typeof(a2)
# [1] "logical"
a2
# <2 x 1 x 0 array of logical>
# [,1]
# [1,]
# [2,]
Thanks,
H.
--
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 using fredhutch.org
Phone: (206) 667-5791
Fax: (206) 667-1319
More information about the R-devel
mailing list