18.12.2012 Views

Embedding R Tutorial

Embedding R Tutorial

Embedding R Tutorial

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Data Transfer: VARIANT Arrays<br />

� multi-dimensional arrays of different types of scalars<br />

– e.g.,<br />

⎡"<br />

Age"<br />

⎢<br />

⎢<br />

27<br />

⎢⎣<br />

39<br />

� represented as untyped (VARIANT) array<br />

Dim s(2, 1)<br />

s(0, 0) = "Age"<br />

s(0, 1) = "Student"<br />

s(1, 0) = 27<br />

s(1, 1) = True<br />

s(2, 0) = 39<br />

s(2, 1) = False<br />

" Student"<br />

⎤<br />

TRUE<br />

⎥<br />

⎥<br />

FALSE ⎥⎦<br />

r.SetSymbol "Students", s

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!