Convert SaTScan Results to Data Frame
Source:R/satscan_result_s3_methods.R
as.data.frame.satscan_result.RdConverts a satscan_result object to a standard data frame. You can choose
to extract either clusters or locations.
Usage
# S3 method for class 'satscan_result'
as.data.frame(
x,
row.names = NULL,
optional = FALSE,
what = c("clusters", "locations"),
...
)Examples
if (FALSE) { # \dontrun{
result <- satscanr(cas, geo, pop, ...)
# Get clusters as data frame
clusters_df <- as.data.frame(result)
# Get locations as data frame
locations_df <- as.data.frame(result, what = "locations")
} # }