[Rd] tabulate() does not check for input bounds

From: Simone Giannerini <sgiannerini_at_gmail.com>
Date: Mon, 04 Oct 2010 01:01:27 +0200


Dear all,

it looks like that tabulate() does not check for the bounds of the input. Reproducible example:

 > b <- 1:2
> tabulate(b[1:100])

[1] 1 1

> R.version

               _
platform       i386-pc-mingw32
arch           i386
os             mingw32
system         i386, mingw32
status         Patched
major          2
minor          11.1
year           2010
month          09
day            30
svn rev        53072
language       R

version.string R version 2.11.1 Patched (2010-09-30 r53072)

> sessionInfo()

R version 2.11.1 Patched (2010-09-30 r53072) Platform: i386-pc-mingw32 (32-bit)

locale:
[1] LC_COLLATE=Italian_Italy.1252 LC_CTYPE=Italian_Italy.1252 LC_MONETARY=Italian_Italy.1252

[4] LC_NUMERIC=C                   LC_TIME=Italian_Italy.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] gtools_2.6.2

loaded via a namespace (and not attached): [1] tools_2.11.1

OS: Windows 7 64 bit

--
______________________________________________________

Simone Giannerini
Dipartimento di Scienze Statistiche "Paolo Fortunati"
Universita' di Bologna
Via delle belle arti 41 - 40126  Bologna,  ITALY
Tel: +39 051 2098262  Fax: +39 051 232153
http://www2.stat.unibo.it/giannerini/

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sun 03 Oct 2010 - 23:03:26 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 04 Oct 2010 - 04:20:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive