[Rd] problem with as.table (PR#8652)

I.J.Wilson@ncl.ac.uk I.J.Wilson at ncl.ac.uk
Thu Mar 2 13:20:57 CET 2006


# Your mailer is set to "none" (default on Windows),
# hence we cannot send the bug report directly from R.
# Please copy the bug report (after finishing it) to
# your favorite email program and send it to
#
#       r-bugs at r-project.org
#
######################################################


There is a problem with as.table converting from a matrix with
more than 26 rows (or columns) .

rows past 26 are set to <NA>.  This makes operations such as
turning the data back into a data.frame difficult.

example causing problems:

b <-  as.table(matrix(1:60,ncol=2))
as.integer(as.data.frame(b)[,1])

Ian Wilson


--please do not edit the information below--

Version:
 platform = i686-redhat-linux-gnu
 arch = i686
 os = linux-gnu
 system = i686, linux-gnu
 status =
 major = 2
 minor = 2.1
 year = 2005
 month = 12
 day = 20
 svn rev = 36812
 language = R

Locale:
LC_CTYPE=en_GB.UTF-8;LC_NUMERIC=C;LC_TIME=en_GB.UTF-8;LC_COLLATE=en_GB.UTF-8;LC_MONETARY=en_GB.UTF-8;LC_MESSAGES=en_GB.UTF-8;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C

Search Path:
 .GlobalEnv, package:onelocus, package:methods, package:stats, 
package:graphics, package:grDevices, package:utils, package:datasets, 
Autoloads, package:base



More information about the R-devel mailing list