xlsx2json: Convert Field Data from XLSX to JSON

View source: R/xlsx2json.R

xlsx2jsonR Documentation

Convert Field Data from XLSX to JSON

Description

Convert the file format of field data from XLSX to JSON.

Usage

xlsx2json(path, destdir)

Arguments

path

'character' string. Either the path to the Excel workbook file (XLSX) to read, or the directory containing XLSX files.

destdir

'character' string. Destination directory to write JSON file(s). Defaults to the path directory.

Value

File path(s) of the JSON formatted data.

Author(s)

J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center

See Also

read_field_xlsx function for reading field data from a XLSX file.

write_field_json function for writing field data to a JSON file.

Examples

path <- system.file("extdata/ex-field.xlsx", package = "mlms") |>
  xlsx2json(destdir = tempdir())

unlink(path)

mlms documentation built on April 4, 2025, 4:43 a.m.