Intermediate Julia
Anthony Markham
Quantitative Developer
There are many reasons why we might want to do this:
Two Julia packages give this functionality - PythonCall and RCall.
using Pkg
Pkg.add("PythonCall")
Pkg.add("RCall")
PythonCall
to integrate Python functions into our Julia code.using PythonCall
pyimport
.pytime = pyimport("time")
using PythonCall
pytime = pyimport("time")
println(pytime.ctime())
Sun Jan 22 12:16:28 2023
println(pytime.strftime("%m-%Y", pytime.localtime()))
01-2023
RCall
to integrate R functions into our Julia code.RCall
package.using RCall
@rimport
.@rimport base
@rimport ggplot2
using RCall
@rimport base as r_base
r_base.sum([1, 2, 3, 4, 5])
RObject{IntSxp}
[1] 15
RObject{IntSxp}
[1] 15
r_base.abbreviate(["Anthony", "Rachel", "Steve", "Julia"], 3)
RObject{StrSxp}
Anthony Rachel Steve Julia
"Ant" "Rch" "Stv" "Jul"
Intermediate Julia