f_convert: Convert an hts file in another format (xls, xlsx or csv) and...

View source: R/f_convert.R

f_convertR Documentation

Convert an hts file in another format (xls, xlsx or csv) and vice-versa

Description

Converter in formats hts, xls, xlsx and text (csv et csv2)

Usage

f_convert(file, form_start = "hts", form_end = "xlsx")

Arguments

file

Hts file

form_start

Initial format ("hts" (default) or "xls" or "xlsx")

form_end

Final format ("hts" or "xls" or "xlsx" (default) or "csv" (separator , & decimal .) or "csv2" (separator ; and decimal ,)

Details

'form_start' = csv or csv2 is for instance not accepted. It could be converted previously in xls or xlsx format.

Value

A file in the requested format with 4 columns: Date, Value, Station, Sensor

Author(s)

P. Chevallier - October 2017 - May 2022

Examples

## Not run: 
f_convert(file,  "xlsx", "hts")

## End(Not run)


htsr documentation built on Oct. 13, 2023, 5:10 p.m.