licoread_to_fluxible {licoread}R Documentation

selects the focus gas and makes a df to use in fluxible

Description

selects the focus gas and checks the columns needed for the fluxible workflow

Usage

licoread_to_fluxible(
  df,
  focus_gas,
  datetime_col,
  id_cols = c("File Name", "Obs#"),
  file_type = "auto",
  file_type_list = c("82z", "81x", "auto")
)

Arguments

df

input dataframe from licoread

focus_gas

gas to select

datetime_col

column containing datetime information if date and time are in two different columns, provide a character vector of the form c("date", "time")

id_cols

columns to identify unique fluxes

file_type

type of file (82z or 81x). If "auto" (default), the function will try to detect it by itself.

file_type_list

list of file types

Value

an unnested df with only the selected gas

Examples

path_82z <- system.file("extdata/82z", package = "licoread")
gas_df_82z <- licoread(path_82z)
licoread_to_fluxible(gas_df_82z, "LI-7810_CH4_DRY",
datetime_col = c("LI-8250_DATE", "LI-8250_TIME"))

[Package licoread version 0.2.0 Index]