18.12.2012 Views

Embedding R Tutorial

Embedding R Tutorial

Embedding R Tutorial

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Data Transfer: Special Values<br />

� R‘s special values<br />

– NULL, NaN, -Inf, Inf, NA<br />

� representation in VARIANT<br />

– VARIANT type VT_ERROR<br />

– compatible with Microsoft Excel‘s representation<br />

R Value<br />

NULL<br />

NaN<br />

-Inf<br />

Inf<br />

NA<br />

converts to<br />

xlErrNULL<br />

xlErrDiv0<br />

xlErrDiv0<br />

xlErrDiv0<br />

xlErrNA<br />

back to R<br />

NULL<br />

– NaN will become xlErrNum in next major release of R<br />

Inf<br />

Inf<br />

Inf<br />

NA

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

Saved successfully!

Ooh no, something went wrong!