Learn R Programming

HDSpatialScan (version 1.0.4)

print.ResScanOutput: Prints a result of a scan procedure

Description

This function prints a result of a scan procedure.

Usage

# S3 method for ResScanOutput
print(x, ...)

Value

No value returned, print the ResScanOutput object.

Arguments

x

ResScanOutput. Output of a scan function (UG, UNP, MG, MNP, PFSS, DFFSS, URBFSS, NPFSS, MPFSS, MDFFSS or MRBFSS)

...

Further arguments to be passed to or from methods.

Examples

Run this code
# \donttest{
library(sp)
data("map_sites")
data("funi_data")
coords <- coordinates(map_sites)

res_npfss <- SpatialScan(method = "NPFSS", data = funi_data, sites_coord = coords,
system = "WGS84", mini = 1, maxi = nrow(coords)/2)$NPFSS

print(x = res_npfss)# }
# \dontshow{
library(sp)
data("map_sites")
data("funi_data")
indices <- c(51:75)
coords <- coordinates(map_sites[indices,])
res_npfss <- SpatialScan(method = "NPFSS", data = funi_data[indices,],
sites_coord = coords, system = "WGS84", mini = 1, maxi = nrow(coords)/2,
MC = 99)$NPFSS
if(length(res_npfss$sites_clusters)>0){
print(x = res_npfss)
}

# }

Run the code above in your browser using DataLab