sample_partial_styles function

Find unique forms of missingness

Find unique forms of missingness

sample_partial_styles(x)

Arguments

  • x: A partial_time vector

Returns

The indices of the first instance of unique forms of missingness

Examples

x <- as.parttime(c("2022", "2023", "2021-01", "2024-12")) x[parttime:::sample_partial_styles(x)]
  • Maintainer: Doug Kelkhoff
  • License: MIT + file LICENSE
  • Last published: 2024-01-24