1\name{is.sorted.integer64} 2\alias{is.sorted.integer64} 3\alias{na.count.integer64} 4\alias{nvalid.integer64} 5\alias{nunique.integer64} 6\alias{nties.integer64} 7\title{ 8 Small cache access methods 9} 10\description{ 11 These methods are packaged here for methods in packages \code{bit64} and \code{ff}. 12} 13\usage{ 14 \method{is.sorted}{integer64}(x, \dots) 15 \method{na.count}{integer64}(x, \dots) 16 \method{nvalid}{integer64}(x, \dots) 17 \method{nunique}{integer64}(x, \dots) 18 \method{nties}{integer64}(x, \dots) 19} 20\arguments{ 21 \item{x}{ 22 some object 23 } 24 \item{\dots}{ 25 ignored 26 } 27} 28\details{ 29 All these functions benefit from a \code{\link{sortcache}}, \code{\link{ordercache}} or \code{\link{sortordercache}}. 30 \code{na.count}, \code{nvalid} and \code{nunique} also benefit from a \code{\link{hashcache}}. 31 \cr 32 \code{is.sorted} checks for sortedness of \code{x} (NAs sorted first) \cr 33 \code{na.count} returns the number of \code{NA}s \cr 34 \code{nvalid} returns the number of valid data points, usually \code{\link{length}} minus \code{na.count}. \cr 35 \code{nunique} returns the number of unique values \cr 36 \code{nties} returns the number of tied values. 37} 38\note{ 39 If a \code{\link{cache}} exists but the desired value is not cached, 40 then these functions will store their result in the cache. 41 We do not consider this a relevant side-effect, 42 since these small cache results do not have a relevant memory footprint. 43} 44\value{ 45 \code{is.sorted} returns a logical scalar, the other methods return an integer scalar. 46} 47\author{ 48Jens Oehlschlägel <Jens.Oehlschlaegel@truecluster.com> 49} 50\seealso{ 51 \code{\link{cache}} for caching functions and \code{\link{sortordercache}} for functions creating big caches 52} 53\examples{ 54 x <- as.integer64(sample(c(rep(NA, 9), 1:9), 32, TRUE)) 55 length(x) 56 na.count(x) 57 nvalid(x) 58 nunique(x) 59 nties(x) 60 table.integer64(x) 61 x 62} 63\keyword{ environment } 64\keyword{ methods } 65