read_selected_omx | R Documentation |
This function reads a portion of an OMX matrix using selection statements to define the portion.
read_selected_omx( file, matrix_name, row_selection = NULL, col_selection = NULL, row_labels = NULL, col_labels = NULL )
file |
Path name of the OMX file where the lookup resides. |
matrix_name |
Name of the matrix in the OMX file. |
row_selection |
Row selection statement or vector of row selection statements (see Details). |
col_selection |
Column selection statement or vector of column selection statements (see Details). |
row_labels |
Name of lookup to use for labeling rows. |
col_labels |
Name of lookup to use for labeling columns |
Multiple selection selection statements can be used for each dimension. Each selection statement is a logical expression represented in a double-quoted string. The left operand is the name of a lookup vector The operator can be any logical operator including the value or values to check against. This can be the name of a vector defined in the calling environment. If the right operand contains literal string values, those values must be single-quoted. Multiple selection conditions may be used as argument by including in a vector. Multiple selection conditions are treated as intersections.
An R matrix object representing the selected rows and colums.
omxfile <- omxr_example("skims.omx") read_selected_omx( omxfile, "DIST", row_selection = 'EI == "Ext"' )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.