rNMRutils {rNMR} | R Documentation |
The functions detailed below perform basic functions designed to ease interaction with the rNMR environment.
myAssign(in.name = NULL, in.object, save.backup = TRUE) myFile(fileName, open) wc(fileName=FALSE)
z |
numeric vector; for 3D files, the z-vaule(s) for the spectrum or spectra. |
in.name |
character string; name to apply to the newly assigned object. |
in.object |
R object; object to be assigned. |
save.backup |
logical; creates an entry in the undo list if |
fileName |
character string or vector; the full path name(s) for the spectrum/spectra/file connection. |
open |
character string; type of file connection to open, see
|
fileName |
logical; returns the full file path for the current spectrum
if |
myAssign
Modified version of R's assign
function;
assigns an R object to the global environment and saves a copy of the rNMR
environment to oldFolder
for use with the ud
,
rd
, and zp
functions.
myFile
Modified version of R's file
function;
creates a connection to the designated file, as named in
fileFolder
, and gives the user the option of updating the file's
location if the file can not be found at its previous location. This function
is provided to ensure that relocated files can still be viewed in rNMR,
particularly when working with previously saved workspaces.
wc
Returns the file path or the position (default) in
fileFolder
for the currently displayed spectrum.
Ian A. Lewis ialewis@nmrfam.wisc.edu, Seth C. Schommer schommer@nmrfam.wisc.edu
toolkit
for other rNMR utility functions.