DandD {dad}R Documentation

Import DandD Instance into R

Description

Function to import a DandD instance into R as a dad object

Usage

   DandD(file="", prefix="http://www.stat.math.keio.ac.jp/DandDIII/Examples/",
                         radix=FALSE, language="English")

Arguments

file character. the name of a DandD instance. Possible examples of DandD instances are shown by default.
prefix character. URL for the file.
radix logical, indicatin if any radix system should be kept as is. If ``TRUE'', any radix system is not resolved into a vector
language character. Choice of language (currently ignored).

Details

DandD loads a DandD instance and returns a dad object. The dad object is a list of every components of <Data> in the DandD instance. At loading, any data vector in the DandD instance is transformed into a function call, so that application of the function eval is necessary to get the actual values.

The dad object returned by this function can be transformed into several dataframes by applying the function data.frame to each element of the dad object as shown in the following example, or attached to the R search path by using attachDandD as a promise object, that is, a delayed evaluation object. The latter mechanism is automatically invoked by the print method print.dad for dad object.

dad object has its own plot method which produces an appropriate graphical representation of the object. see also combineRadix.

Value

dad object.

See Also

openConn closeConn radix

Examples

## Not run: 

acid=DandD("AcidRain.dad")   # import a DandD instance and assign it to acid.
acid                         # print the dad object automatically attached.
acid$AcidRan$SlftCcn         # call object
eval(acid$AcidRan$SlftCcn)   # get actual values.
SlftCcn                      # access the promise object attached to the R search path.
acid.d=data.frame(acid[[1]]) # coerce to data frame.
acid.d
plot(acid)                   # produce plots
## End(Not run)

[Package Contents]