Skip to content

Commit 947980c

Browse files
author
kalibera
committed
Comment re dimensions in lengths().
git-svn-id: https://svn.r-project.org/R/trunk@88895 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 49d7c78 commit 947980c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/library/base/man/lengths.Rd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ airquality$avgOz <- rep(unlist(avgOz, use.names=FALSE), lengths(l))
5757
airquality$avgOz <- unsplit(avgOz, airquality$Month)
5858
5959
## should always be true, except when a length does not fit in 32 bits
60+
## or l has dimensions
6061
stopifnot(identical(lengths(l), vapply(l, length, integer(1L))))
6162
6263
## empty lists are not a problem

0 commit comments

Comments
 (0)