print.fert_rate_age_f: Print Values of a 'fert_rate_age_f'

View source: R/S3_methods_ccmpp_input_fert_rate_df.R

print.fert_rate_age_fR Documentation

Print Values of a fert_rate_age_f

Description

This is a method for the generic base::print function. Only n rows are printed for convenience. If all rows are desired use as.data.frame(x) or see the definition of argument n.

Usage

## S3 method for class 'fert_rate_age_f'
print(
  x,
  ...,
  n = min(6L, nrow(x)),
  digits = NULL,
  quote = FALSE,
  right = TRUE,
  row.names = FALSE,
  na.print = ".",
  print_what = c("info", "table")
)

Arguments

x

object of class data.frame.

...

optional arguments to print methods.

n

Integer controlling how many rows of x are printed. Passed to link{head}; see the documentation of that function for valid values and associated behaviours.

digits

the minimum number of significant digits to be used: see print.default.

quote

logical, indicating whether or not entries should be printed with surrounding quotes.

right

logical, indicating whether or not strings should be right-aligned. The default is right-alignment.

row.names

logical (or character vector), indicating whether (or what) row names should be printed.

na.print

character string (or NULL) indicating NA values in printed output, see print.default.

print_what

What should be printed?

Details

As well as inheriting the behaviour of print.ccmpp_input_df, entries in the value column corresponding to values of age_start not in non_zero_fert_ages(x) are rendered as “[zero]”. At least some rows with non-zero fertility rate ages will be shown if possible.

Author(s)

Mark Wheldon

See Also

print.demog_change_component_df print.ccmpp_input_df fert_rate_age_f


markalava/ccmppWPP documentation built on April 21, 2022, 12:36 a.m.