Description Usage Arguments Value Examples
View source: R/demonanalysis.R
Read a file containing grid states and process it into a dataframe for plotting.
| 1 | image_df_from_grid_file(file, trim = -1, as_matrix = FALSE)
 | 
| 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 | 
Either a dataframe formatted for plotting (as_matrix = FALSE) or a matrix (as_matrix = TRUE)
| 1 2 | image_df <- image_df_from_grid_file(system.file("extdata", 
"output_passengersgrid.dat", package = "demonanalysis", mustWork = TRUE))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.