Learn R Programming

tmap (version 0.6)

convert_shape_data: Convert shape data

Description

Convert data from one polygon shape to another. It uses an intersection matrix, which stores the intersection ratios of the two shape objects per polygon

Usage

convert_shape_data(shp.from, shp.to, variables.from = NULL,
  variables.to = NULL)

Arguments

shp.from
the shape object to be converted. It sould contain data.
shp.to
the shape object to be converted into.
variables.from
names of the variable of shp.from to be converted. If missing, all numeric variables are taken.
variables.to
variable names to be used. Should be the same number of variable names as variables.from

Value

  • shape object shp.to with converted data from shp.from