14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

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.

492 Extending JMP Chapter 14<br />

Working with R<br />

Examples<br />

Sending a Data Table to R<br />

This example initiates an R connection, sends a data table to R, prints it to the log, and closes the R<br />

connection.<br />

R Init();<br />

dt = Open("$SAMPLE_DATA/Big Class.jmp",invisible);<br />

R Send(dt); // Sends the opened data table represented by dt to R;<br />

R Submit("print(dt)");<br />

R Term();<br />

Creating Objects in R<br />

This example initiates an R connection, creates an R object, retrieves the object into JMP, and closes the R<br />

connection.<br />

R Init();<br />

R Submit(<br />

"<br />

L3

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

Saved successfully!

Ooh no, something went wrong!