locate.mismatch: Identify Sectors not in All Regions

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/locate.mismatch.R

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

1

Arguments

io

An object of class InputOutput created from as.inputoutput.

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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

ioanalysis documentation built on Jan. 13, 2021, 5:16 p.m.