Learn R Programming

Rdsm (version 1.0.0)

newdsm: newdsm

Description

Create a new Rdsm variable.

Usage

newdsm(varname,thisclass,thismode=NULL,val=NULL,size=NULL)

Arguments

varname
Name of Rdsm variable to be created.
thisclass
Class of Rdsm variable: "dsmv", "dsmm" or "dsml".
thismode
Rmode of Rdsm variable: NULL for the "dsml" case, "integer" or "double" for the other two cases.
val
Initial value of Rdsm variable.
size
Size of Rdsm variable: length for a vector, row/col dimension for a matrix.

Details

This creates a new Rdsm variable. It must be executed by all clients, but in different forms: One client, say client 1, calls the function with a non-NULL val but a NULL size, while the other clients specify NULL for val but a non-NULL for size.