Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

importCdf-functions

Import CDF files


Description

This function imports files in NetCDF file format into MassSpectrum-class or MassPeaks-class objects.
Please note that the RNetCDF is needed.

Usage

importCdf(path, ...)

Arguments

path

character, path to directory or file which should be read in.

...

arguments to be passed to import.

Value

a list of MassSpectrum-class or MassPeaks-class objects (depending on the centroided argument).

Author(s)

Sebastian Gibb

References

See Also

Examples

library("MALDIquant")
library("MALDIquantForeign")

## get example directory
exampleDirectory <- system.file("exampledata", package="MALDIquantForeign")

## import
if (requireNamespace("RNetCDF", quietly=TRUE)) {
  s <- importCdf(exampleDirectory)
} else {
  message("You have to install the RNetCDF package to use importCdf.")
}

MALDIquantForeign

Import/Export Routines for 'MALDIquant'

v0.12
GPL (>= 3)
Authors
Sebastian Gibb [aut, cre] (<https://orcid.org/0000-0001-7406-4443>), Pietro Franceschi [ctb]
Initial release
2019-01-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.