Learn R Programming

MALDIquantForeign (version 0.8)

importCdf: 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

References

http://strimmerlab.org/software/maldiquant/

See Also

MassSpectrum-class, MassPeaks-class

Examples

Run this code
library("MALDIquant")
library("MALDIquantForeign")

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

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

Run the code above in your browser using DataLab