extract returns a tibble of selected values across the multiverse in a long format.


# S3 method for mverse
  columns = NULL,
  universe = NULL,
  nuni = NULL,
  frow = NULL,





a mverse object.


a character vector of column names to extract.


an integer vector of universe ids to extract.


a positive integer for the number of universes to extract.


proportion of rows to extract from each universe.


This method extracts data values across the multiverse. You can specify a subset of data to extract using columns, universe, nuni, and frow.

You can specify the columns to extract from each universe by passing the column names as a character vector to columns. The default values is NULL extracting all columns with branches.

Use universe to specify a set of universes by their integer ids. Use nuni to specify the number of universes to extract data from. The method then selects the subset randomly. Specifying universe manually will override nuni value. By default, they are both set to NULL and the method returns data from all universes.

Use frow to randomly extract a fraction of data from each universe. The default value is NULL and all rows are returned as they are. Note if you select 1 the method will return shuffle rows in each universe before returning them. If frow is greater than 1, the method randomly samples rows with replacement.

See also

Other mverse methods: execute_multiverse(), mverse()