mxDataGrid: Represent R objects in MXML

Description Usage Arguments Value Author(s) References Examples

Description

This the start of a collection of functions that convert R objects to a representation in MXML so that the data can be used with Flash applications.

Usage

1
mxDataGrid(val, attrs = character(), rownames = "id")

Arguments

val

a data frame (or matrix with column names) which is serialized as a data provider.

attrs

a vector of attributes to place in the new XML mx:DataGrid node. These might specify an id for the new component, the width or height, an ActionScript code segment for an event handler, and so on.

rownames

either a character string giving the name of the variable to use in the data frame to represent the row names or an empty character vector to indicate that the row names should not be displayed. This can also be a logical value with TRUE indicating that they should be displayed and we use the variable name "id", or FALSE indicating to not display the row names.

Value

An invisible XMLInternalNode which can be added to an MXML document.

Author(s)

Duncan Temple Lang

References

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/controls/DataGrid.html

Examples

1

duncantl/FlashMXML documentation built on May 15, 2019, 5:26 p.m.