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") )
df
a dataframe containing at least a nameVar column
nameVar
the column name of the name to lookup (default "name")
outputCodeVar
the column name of the code to return (default "code")
outputCodeTypeVar
the 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 )
df
a dataframe containing at least a nameVar column
codeVar
the column name of the code to lookup (default "code")
outputNameVar
the column name of the code to return (default "name")
outputCodeTypeVar
the 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)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.