Description Usage Arguments Details Value Author(s)
View source: R/teamcodetoname.R
teamcodetoname
is a macro (rather than a function) which converts team codes in the raw SSNAP
data to team names.
1 | append_team_data_from_teamcode(data_table)
|
data_table |
A tibble (optimised data frame) containing S1PostcodeOut. |
This macro takes as input a tibble (an optimised data frame; see the tibble package).
The function API needs nailing down more firmly - at present it knows of three hard-coded column names (TeamName, TransferFrom and TransferTo) but it should be able to work more generically in future if we provide it with a column name to translate and an output name.
It also requires Unit tests which currently we don't have. Take this function as a 'work in progress' It will not win an R beauty contest any time soon.
Data table updated with Team names in TeamName, TransferToTeamName, TransferFromTeamName, and S7TransferHospitalName
Andrew Hill, andrew.hill@doctors.org.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.