In [1]:
n=5
In [2]:
%get n
rn <- rnorm(n)
In [3]:
%get rn --from R
rn
Out[3]:
In [4]:
rn = [x+1 for x in rn]
In [5]:
%put rn --to R
In [6]:
rn
In [7]:
n=5
In [8]:
%with R -i n -o rn
rn <- rnorm(n)
In [9]:
rn
Out[9]:
In [10]:
sos_n = 5
In [11]:
sos_rn <- rnorm(sos_n)
In [12]:
sos_rn
Out[12]:
In [13]:
a = 3
b = c(3, 2, 1)
In [14]:
%get a b --from R
In [15]:
a
Out[15]:
In [16]:
b
Out[16]:
In [17]:
%get mtcars --from R
mtcars
Out[17]:
In [18]:
%sessioninfo