mnis_member_date: Returns a tibble with a member's status on a given date.

Description Usage Arguments Value See Also Examples

View source: R/mnis_member_date.R

Description

Returns a tibble with a member's status on a given date.

Usage

1
2
3
4
5
6
mnis_member_date(
  ID = NULL,
  date = Sys.Date(),
  tidy = TRUE,
  tidy_style = "snake_case"
)

Arguments

ID

The ID of the member, or a vector with the IDs of multiple MPs. If given multiple IDs, the results are combined into a single tibble. Currently only accepts IDs from the default membership ID scheme. If NULL the function stops and no data is returned. Defaults to NULL.

date

Accepts character values in 'YYYY-MM-DD' format, and objects of class Date, POSIXt, POSIXct, POSIXlt or anything else than can be coerced to a date with as.Date(). Return details on the requested member's status on that date. Defaults to the current system date.

tidy

If TRUE, fixes the variable names in the tibble to remove non-alphanumeric characters and superfluous text, and convert to a consistent style. Defaults to TRUE.

tidy_style

The style to convert variable names to, if tidy=TRUE. Accepts one of "snake_case", "camelCase" and "period.case". Defaults to "snake_case".

Value

Returns a tibble with the given member's status on the given date.

See Also

mnis_mps_on_date()

Examples

1
2
3
4
## Not run: 
x <- mnis_member_date(172)

## End(Not run)

mnis documentation built on April 4, 2021, 1:06 a.m.