Flag non-Scottish residents
Arguments
- data
An SLF individual file.
- slf_pc_lookup
The Source postcode lookup, defaults to
get_slf_postcode_path()
read usingread_file()
.
Details
The variable keep flag can be in the range c(0:4) where
keep_flag = 0 when resident is Scottish
keep_flag = 1 when resident is not Scottish
keep_flag = 2 when the postcode is missing or a dummy, and the gpprac is missing
keep_flag = 3 when the gpprac is not English and the postcode is missing
keep_flag = 4 when the gpprac is not English and the postcode is a dummy
The intention is to only keep the records where keep_flag = 0
See also
Other individual_file:
add_acute_columns()
,
add_ae_columns()
,
add_all_columns()
,
add_at_columns()
,
add_ch_columns()
,
add_cij_columns()
,
add_cmh_columns()
,
add_dd_columns()
,
add_dn_columns()
,
add_gls_columns()
,
add_hc_columns()
,
add_hl1_columns()
,
add_hri_variables()
,
add_ipdc_cols()
,
add_keep_population_flag()
,
add_mat_columns()
,
add_mh_columns()
,
add_nrs_columns()
,
add_nsu_columns()
,
add_ooh_columns()
,
add_op_columns()
,
add_pis_columns()
,
add_sds_columns()
,
add_standard_cols()
,
aggregate_ch_episodes()
,
clean_up_ch()
,
condition_cols()
,
create_individual_file()
,
recode_gender()
,
remove_blank_chi()