Skip to contents

Export a section in importation SIC format

Usage

create_section_txt(
  section_name,
  abscissa,
  section_type,
  profile,
  distance_majeur = FALSE
)

Arguments

section_name

character, name of the section

abscissa

numeric, abscissa of the section in the reach

section_type

1-length character, type of the section: "T" for Trapezoidal, "A" for Abscissa/Elevation, "L" for Width/Elevation

profile

list or matrix, profile of the section (See details)

distance_majeur

logical or numeric, FALSE for a minor bed section

Value

character, section description in SIC text import format.

Examples

# Trapezoidal section
create_section_txt("Trapeze", 0, "T", list(B = 2, S = 1.5, ZF = 100, ZB = 102))
#> [1] "Trapeze $ 0 $  $ 0 $ T" "0"                      "2\t1.5"                 
#> [4] "102\t100"               
#> attr(,"class")
#> [1] "SectionTxt" "character"