rNMRutils {rNMR}R Documentation

Utilities for interacting with the rNMR environment

Description

The functions detailed below perform basic functions designed to ease interaction with the rNMR environment.

Usage

myAssign(in.name = NULL, in.object, save.backup = TRUE)
myFile(fileName, open)
wc(fileName=FALSE)

Arguments

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 TRUE.

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 file.

fileName

logical; returns the full file path for the current spectrum if TRUE.

Details

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.

Author(s)

Ian A. Lewis ialewis@nmrfam.wisc.edu, Seth C. Schommer schommer@nmrfam.wisc.edu

See Also

toolkit for other rNMR utility functions.


[Package rNMR version 1.1.9 Index]