spc.export.xlsx: Exports a 'Spectra' object into Excel format.

Description Usage Arguments Details Value Examples

Description

Exports a Spectra object into Excel format.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
spc.export.xlsx(
  input,
  filename,
  sheetName,
  writeheader = TRUE,
  append = F,
  sep = ";",
  ...
)

## S4 method for signature 'Spectra'
spc.export.xlsx(
  input,
  filename,
  sheetName,
  writeheader = TRUE,
  append = F,
  sep = ";",
  ...
)

Arguments

input

A Spectra object

filename

Name of the output xlsx file

sheetName

The Spectra object to be output.

writeheader

A boolean, indicating whether or not the metadata (contents of the slot header) is to be included in the excel file. Default : TRUE

append

A boolean, indicating whether or not to append the contents of the Spectra object into the existing file. Default : FALSE (overwrites the existing Excel file if it exists.)

sep

Not used.

...

Not used.

Details

spc.export.xlsx() calls functions from package xlsx to write the contents of a Spectra object into an Excel file. For this function to work, make sure the package xlsx is installed.

Value

None. Simply creates an Excel file on disk.

Examples

1
2
3
4
5
6
## Not run: 
  sp=spc.example_spectra()
  if("xlsx" %in% installed.packages())
     spc.export.xlsx(sp,"test.xlsx")

## End(Not run)

geoSpectral documentation built on Feb. 20, 2020, 5:08 p.m.