Skip to contents

Extract the number of response values from bru and related objects.

Usage

bru_response_size(object)

# S3 method for class 'bru_like'
bru_response_size(object)

# S3 method for class 'bru_like_list'
bru_response_size(object)

# S3 method for class 'bru_info'
bru_response_size(object)

# S3 method for class 'bru'
bru_response_size(object)

Arguments

object

An object from which to extract response size(s).

Value

An integer vector.

Methods (by class)

  • bru_response_size(bru_like): Extract the number of observations from a bru_like object.

  • bru_response_size(bru_like_list): Extract the number of observations from a bru_like_list object.

  • bru_response_size(bru_info): Extract the number of observations from a bru_info object.

  • bru_response_size(bru): Extract the number of observations from a bru object.

See also

Examples

bru_response_size(
  bru_obs(y ~ 1, data = data.frame(y = rnorm(10)), family = "gaussian")
)
#> [1] 10