write.SpotData: Write a SpotData object to file

Description Usage Arguments Value Author(s) See Also Examples

Description

Write a SpotData object to file.

Usage

1
2
## S3 method for class 'SpotData'
write(this, filename, path=NULL, slide=NULL, overwrite=FALSE, row.names=FALSE, ..., verbose=FALSE)

Arguments

filename

The filename of the file to be written.

path

The path to the file.

slide

Index of slide to be saved.

...

Other arguments accepted by subclasses or which are passed to write.table.

Value

Returns nothing.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

To read one or more SpotData files at once see SpotData.read. For more information see SpotData.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
  spot <- SpotData$read("spot123.spot", path=system.file("data-ex", package="aroma"))

  # Write the SpotData object to a temporary file.
  filename <- paste(tempfile("SpotData"), ".dat", sep="")
  write(spot, filename)

  spot2 <- SpotData$read(filename)
  print(equals(spot, spot2))  # TRUE

  unlink(filename)

HenrikBengtsson/aroma documentation built on May 7, 2019, 12:56 a.m.