locate.mismatch {ioanalysis} | R Documentation |
Identify Sectors not in All Regions
Description
locate.mismatch
finds which sectors are not found in all regions. If a sector is not in all regions a report is generated to indicate which regions have that sector, which regions don't have that sector, and where this sector is in the repository.
Usage
locate.mismatch(io)
Arguments
io |
An object of class |
Details
locate.mismatch
begins by identifying all sectors. Then if a sector is not in every region, the function identifies which regions have the sector, which regions don't have the sector, and where this sector is located. If it is important to have all regions having the same sectors, the location output can be used in agg.sector
. For a full list of sectors, use easy.select
.
Value
Produces a list of sectors. Each sector has a list of location
, regionswith
, and regionswithout
. For example to find the regions that have a mismatched sector, use
(mismatch.object)$sector$regionswith
Author(s)
John J. P. Wade
See Also
as.inputoutput
, agg.sector
, easy.select
Examples
data(toy.IO)
class(toy.IO)
# No mismatches
MM1 <- locate.mismatch(toy.IO)
# Making toy.IO have mismatches
toy.IO$RS_label <- rbind(toy.IO$RS_label,
c("Valhalla", "Wii"),
c("Valhalla", "Pizza"),
c("Valhalla", "Pizza"),
c("Valhalla", "Minions"))
MM2 <- locate.mismatch(toy.IO)
MM2$Lightsabers