Learn R Programming

scenfire (version 0.1.0)

flp20_to_df: Convert FLP20 file to a data frame

Description

Reads a .csv file, typically an FLP20 output from FConstMTT, for single fire event simulation, and reshapes the data to long format, calculating flame length (FL) from `FIL` columns. `PBurn` is expected to be 1 for individual fires, and `FIL` columns are binary (1 or 0).

Usage

flp20_to_df(file)

Value

A data frame with reshaped data, including `name` (original FIL column index) and `FL` (calculated flame length).

Arguments

file

A character string specifying the path to the FLP20 .csv file.

Examples

Run this code
if (FALSE) {
# Process an FLP20 file
df_result <- flp20_to_df("path/to/your/file.csv")
}

Run the code above in your browser using DataLab