I am used to work in pyspark.

with pandas_udf.

need to do a notebook in R, so, wonder what is the equivalent to pandas_udf, in sparkR