Description Usage Arguments Details Value
View source: R/fun3_2_filter_RegDataStartEnd.R
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.
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
)
|
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 |
Note: This function's name when writing aarsrapport 2019 (in 2020) was: make291_data_filtered
RegData_filtered
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.