Description Super classes Methods
Process UK ONS code maps
Process UK ONS code maps
ukcovidtools::PassthroughFilesystemCache -> ukcovidtools::DataProvider -> UKCodeMappingProvider
new()UKCodeMappingProvider$new(providerController, ...)
getONSMappings()UKCodeMappingProvider$getONSMappings(...)
getONSRegister()UKCodeMappingProvider$getONSRegister(...)
getManualMappings()UKCodeMappingProvider$getManualMappings(...)
getODSMappings()UKCodeMappingProvider$getODSMappings(...)
getODSCodes()UKCodeMappingProvider$getODSCodes(...)
getManualCodes()UKCodeMappingProvider$getManualCodes(...)
getMappings()UKCodeMappingProvider$getMappings(...)
getTransitiveClosure()UKCodeMappingProvider$getTransitiveClosure(...)
getCodes()UKCodeMappingProvider$getCodes(...)
getDescriptions()UKCodeMappingProvider$getDescriptions(...)
findCodesByName()Get codes from name
UKCodeMappingProvider$findCodesByName(
df,
nameVar = "name",
outputCodeVar = "code",
outputCodeTypeVar = "codeType",
codeTypes = c("LSOA", "CCG", "HB", "LHB", "NHSER", "PHEC", "LAD", "UA", "NHS site",
"NHS trust", "CTRY", "UK")
)dfa dataframe containing at least a nameVar column
nameVarthe column name of the name to lookup (default "name")
outputCodeVarthe column name of the code to return (default "code")
outputCodeTypeVarthe column name of the codeType to return (default "codeType") or NULL for no codeType column
codeTypes- a list of codeTypes to constrain the search (or NULL for no restriction)
a dataframe containing nameVar, outputCodeVar, outputCodeTypeVar
findNamesByCode()Get canonical names from code
UKCodeMappingProvider$findNamesByCode( df, codeVar = "code", outputNameVar = "name", outputCodeTypeVar = "codeType", codeTypes = NULL )
dfa dataframe containing at least a nameVar column
codeVarthe column name of the code to lookup (default "code")
outputNameVarthe column name of the code to return (default "name")
outputCodeTypeVarthe column name of the name to lookup (default "codeType") or NULL for no codeType column
codeTypes- a list of codeTypes to constrain the search (or NULL for no restriction)
a dataframe containing nameVar, outputCodeVar, outputCodeTypeVar
allPresentAndCorrect()UKCodeMappingProvider$allPresentAndCorrect(df, codeVar = "code", codeTypes)
parentCode()UKCodeMappingProvider$parentCode( df, parentCodeTypes, codeVar = "code", codeTypeVar = "codeType", parentCodeVar = "parentCode", parentNameVar = "parentName", parentCodeTypeVar = "parentCodeType" )
clone()The objects of this class are cloneable with this method.
UKCodeMappingProvider$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.