IIA2csv: Output the result of Interval level intensity analysis as...

Description Usage Arguments Details Value Examples

Description

Output the result of Interval level intensity analysis as csv.

Usage

1
IIA2csv(IIA.output, time.points, filename)

Arguments

IIA.output

Output list generated by IIA function.

time.points

a charachter vector showing the time point of each raster layer in chronological order.

filename

A charachter variable including an optional path and a required filename to where the user wants to store the csv output. If only the name of the file is provided, it will be stored in the working directory.

Details

Gets the output of IIA function and the path variable and generate a csv report called "IntervalLevelIntensityAnalysis.csv". The output will be stored in "CSVOutput" directory in path direction.

Value

The output is a CSV file.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
raster_2005 <- raster::raster(system.file("external/RASTER_2005.RST", package="intensity.analysis"))
raster_2010 <- raster::raster(system.file("external/RASTER_2010.RST", package="intensity.analysis"))
raster_2012 <- raster::raster(system.file("external/RASTER_2012.RST", package="intensity.analysis"))
raster.layers <- list(raster_2005, raster_2010, raster_2012)
time.points <- c("2005","2010","2012")
categories <- c("Water","Trees","Impervious")
crosstabulation <- multicrosstab(raster.layers, time.points, categories)
IIA.output <- IIA(crosstabulation, time.points)
filename <- file.path(normalizePath(tempdir(), winslash = "/"), "IIA.csv")
IIA2csv(IIA.output,time.points, filename)

intensity.analysis documentation built on May 2, 2019, 2:51 p.m.