db.stat {RGeoS}R Documentation

Statistics on a set of variables

Description

Calculate the statistics for a set of variables

Usage

db.stat(db, fun = "mean", names = NA, ngrep=NA, flag.mono=FALSE)

Arguments

db

The db-class structure where the variables are stored

fun

The code giving the operation that must be performed between the variables at the same point:

  • "num" : Number of valid samples

  • "mean" : Mean over the valid samples

  • "var" : Variance over the valid samples

  • "stdv" : Standard deviation over the valid samples

  • "mini" : Minimum over the valid samples

  • "maxi" : Maximum over the valid samples

  • "plus" : Number of positive values

  • "moins" : Number of negative values

  • "zero" : Number of zero values

names

List of the names of the attributes to be compared

ngrep

Generic name for the attributes. If defined, it overwrites the 'names' argument

flag.mono

When TRUE, only the monovariate statistics are printed. Otherwise and if the number of variables is larger than 1, the multivariate statistics are printed.

Value

A printout with the statistics that you required

See Also

db-class


[Package RGeoS version 9.1.1 Index]