disProg2sts {surveillance}R Documentation

Convert disProg object to sts

Description

A small helper function to convert a disProg object to become an object of the S4 class sts. In the future the sts should replace the disProg class.

Usage

   disProg2sts(disProgObj, map=NULL)

Arguments

disProgObj object of class disProg
map SpatialPolygonsDataFrame object containing the map visualization

Value

an object of class sts

See Also

sts-class

Examples

  data(ha)
  print(disProg2sts(ha))

[Package surveillance version 0.9-6 Index]