completeness | R Documentation |
completeness
takes the first day of the latest quarter
of data which are included in the current HSMR publication. It extracts
completeness information for the SMR01 dataset from the
SMR Completeness Estimates spreadsheet
published on the
ISD website. It extracts the
completeness percentages for the two most recent quarters for all health
boards and Scotland.
completeness(
quarter = c("previous", "current"),
level = c("board", "scotland"),
first_day
)
quarter |
A |
level |
A |
first_day |
The first day of the latest quarter, supplied with
|
The completeness
function assumes that the list of health
board names (including Scotland) is contained in cells B31:B47 in the
spreadsheet, where B29 is 'NHS Board' and B47 is 'All NHS Boards'. Should
this change, completeness
should be edited accordingly.
The URL of the spreadsheet is occasionally modified. Should this happen,
completeness
should again be edited accordingly.
If the ISD website is down, completeness
will return an error saying
it has timed out. The hsmr
package will also fail to build when the
website is down, and the unit tests relating to completeness
will
fail, as access to the spreadsheet is required. Nothing can be done in this
instance other than waiting for the website to return to normal.
When level
is set equal to board
, completeness
returns a sentence listing the boards (if any) which had an SMR01
completeness level of less than 95 percent for the specified quarter
.
When level
is set equal to scotland
, completeness
returns Scotland's SMR01 completeness level for the specified quarter
as a percentage.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.