R Init();
R Send( dt ); // send the opened data table represented by dt to R;
R Submit( "print( dt )" );
R Term();
R Init();
R Get( d ) << NewDataView;
R Term();
R Init();
R Submit( "\[plot(function(x) dnorm(x), -5, 5, main = "Normal(0,1) Density") ]\" );
New Window( "Picture", picture );
Wait( 10 );
R Term();
R Init();
R Send( X );
X #Prints X to the log
Y <- matrix(1:4, nrow=2, byrow=TRUE) #Makes a 2x2 matrix object Y
Y #Prints Y to the log
Z <- X + Y #Matrix object Z is addition of X and Y
Z = R Get( Z );
R Term();
Show( Z );
See the file JMPtoR_bootstrap.jsl in the sample scripts folder for an example script.
The boot package in R is used to call the boot() function and the boot.ci() function to calculate the sample statistic for each bootstrap sample and the bootstrap confidence interval.