Skip to content

Functions

E. F. Haghish edited this page Sep 6, 2021 · 1 revision

rcall offers several functions for communicating data from Stata to R and from R to Stata. Most of thee functions are for transferring data from Stata to R because R objects are automatically returned to Stata (apart from datasets). Here is the full list of functions:

Function Description
st.scalar(name) passes a scalar to R
st.matrix(name) passes a matrix to R
st.var(varname) passes a numeric or string variable to R
st.data(filename) passes Stata data to R. without filename, the currently loaded data is used.
st.load(dataframe) loads data from R dataframe to Stata
Clone this wiki locally