image_df_from_grid_file: Read a file containing grid states and process it into a...

Description Usage Arguments Value Examples

View source: R/demonanalysis.R

Description

Read a file containing grid states and process it into a dataframe for plotting.

Usage

1
image_df_from_grid_file(file, trim = -1, as_matrix = FALSE)

Arguments

file

file name including path

trim

how many rows and columns to remove; if trim < 0 (default) then all rows and columns containing NA are removed

as_matrix

whether to return a matrix or a dataframe

Value

Either a dataframe formatted for plotting (as_matrix = FALSE) or a matrix (as_matrix = TRUE)

Examples

1
2
image_df <- image_df_from_grid_file(system.file("extdata", 
"output_passengersgrid.dat", package = "demonanalysis", mustWork = TRUE))

robjohnnoble/demonanalysis documentation built on June 30, 2020, 12:47 a.m.