has_aggr {opm}R Documentation

Are aggregated or discretised data present?

Description

Check whether aggregated or discretised data are present. (See do_aggr and do_disc for generating such data.) This always returns FALSE for the OPM class, but not necessarily for its child classes. Alternatively, check for NA values in the metadata or the estimated parameters.

Usage

  ## S4 method for signature 'MOPMX'
anyNA(x, recursive = TRUE) 
  ## S4 method for signature 'OPM'
anyNA(x, recursive = TRUE) 
  ## S4 method for signature 'OPMA'
anyNA(x, recursive = TRUE) 
  ## S4 method for signature 'OPMD'
anyNA(x, recursive = TRUE) 
  ## S4 method for signature 'OPMS'
anyNA(x, recursive = TRUE) 

  ## S4 method for signature 'MOPMX'
has_aggr(object, ...) 
  ## S4 method for signature 'OPM'
has_aggr(object) 
  ## S4 method for signature 'OPMS'
has_aggr(object, ...) 

  ## S4 method for signature 'MOPMX'
has_disc(object, ...) 
  ## S4 method for signature 'OPM'
has_disc(object) 
  ## S4 method for signature 'OPMS'
has_disc(object, ...) 

Arguments

object

OPM, OPMS or MOPMX object.

x

OPM, OPMS or MOPMX object.

recursive

Logical scalar. When FALSE, the aggregated and discretised values, if available, are checked for NA values (except for the confidence intervals); OPM objects yield FALSE in that case. When TRUE, the metadata are checked recursively for NA values.

...

Optional arguments passed between the methods.

Value

Logical vector, one element per plate, or logical scalar (in the case of anyNA).

See Also

Other getter-functions: aggr_settings, aggregated, anyDuplicated, contains, csv_data, dim, disc_settings, discretized, duplicated, hours, max, measurements, minmax, seq, subset, thin_out, well

Examples

stopifnot(has_aggr(vaas_1), has_disc(vaas_1)) # OPM methods
stopifnot(has_aggr(vaas_4), has_disc(vaas_4)) # OPMS methods
stopifnot(!anyNA(vaas_1), !anyNA(vaas_4))

[Package opm version 1.3.63 Index]