Learn R Programming

nws (version 1.2.3)

nwsFind: netWorkSpace Class Method

Description

Find something in the shared netWorkSpace, .Object.

Arguments

.Object
a netWorkSpace class object
xName
name of the variable to be found

Details

Find method blocks until a value for xName is found in the shared netWorkSpace .Object. Once found, return the value associated with xName, but the value is not removed from the shared netWorkSpace (as in the case of nwsFetch). If there is more than one value associated with xName, the particular value returned depends on xName's behavior. See nwsDeclare for details.

See Also

nwsDeclare, nwsFetch

Examples

Run this code
ws = new('netWorkSpace', 'nws example')
nwsStore(ws, 'x', 1)
x = nwsFind(ws, 'x')

Run the code above in your browser using DataLab