Documentation

jl() methods vs jl environment

jl() methods

jl() method for executing julia code

jl() method as conversion from R to julia

jl environment

When installing the jl4R package, the jl variable is automatically created in the global environment.

jl environment
jl$a <- c(1,3,2)
length(jl$a)
names(jl)
jl$a[2]
jl$a
jl$b <- data.frame(aa=1:4,bb=TRUE,cc=c("toto","titi","toto","titi"),stringsAsFactors=TRUE)
jl$b
names(jl$b)
jl$b$cc
jlcall("levels",jl$b$cc)
jl[[levels]](jl$b$cc)
jl[[levels]](`b[!,:cc]`)
class(jl$b$cc)
levels(jl$b$cc)
names(jl)

jl$<var> and jl<var>$<-

jl[<meth>]

Conversions R to julia

vector to Array

list to Tuple and named list to NamedTuple

factor to CategoricalArray

data.frame to DataFrame

Conversions julia to R

Array to vector or list

Tuple or NamedTuple to list

Dict to list

`Struct to list

CategoricalArray to factor

DataFrame to data.frame