fun3_2_filter_RegDataStartEnd: Filter function for start-end registrations...

Description Usage Arguments Details Value

View source: R/fun3_2_filter_RegDataStartEnd.R

Description

We use a separate filter function for start-end data. Star-data have the suffix x, and end-data have the suffix y. We can thus for instance filter on dateFrom.x and dateTo.x, if we want to filter on dates of the start registrations, or dateFrom.y and dateTo.y if we want to filter on dates of end registrations.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
fun3_2_filter_RegDataStartEnd(
  RegDataStartEnd = myInData,
  BasisRegStatus.x = c(0, 1, -1),
  BasisRegStatus.y = c(0, 1, -1, NA),
  RegRegType.x = c(0, 1, 2, 3, 4, 5, 6, 98, 99),
  RegRegType.y = c(5, 6, 98, 99, NA),
  dateFrom.x = "2012-01-01",
  dateTo.x = "2100-12-31",
  dateFrom.y = "2012-01-01",
  dateTo.y = "2100-12-31",
  ageFrom.x = 0,
  ageTo.x = 200,
  ageFrom.y = 0,
  ageTo.y = 200
)

Arguments

RegDataStartEnd

myInData

BasisRegStatus.x

c(0,1,-1)

RegRegType.x

c(0,1,2,3,4,5,6,98,99)

RegRegType.y

c(5,6,98,99,NA)

dateFrom.x

"2012-01-01"

dateTo.x

"2100-12-31"

dateFrom.y

"2012-01-01"

dateTo.y

"2100-12-31"

ageFrom.x

0

ageTo.x

200

ageFrom.y

0

ageTo.y

200

Details

Note: This function's name when writing aarsrapport 2019 (in 2020) was: make291_data_filtered

Value

RegData_filtered


Rapporteket/norspis2 documentation built on April 18, 2021, 1:11 a.m.