Hi everyone,

I am translating an R code into a Julia code, I have this function in R :

for (i in 1:length(l)) {

if(length(l[[i]])>0){

a ← l[[i]]

y[i,a+c-1] ← as.numeric(

gsub(“,”,“”, work.matrix[which(row.names(work.matrix)==i),colnames(work.matrix)%in% a], fixed = TRUE))

}

}

I translated it like that in Julia :

for key in keys(l)

if length(l[key]) > 0

a = l[key]

b = rownames .== key

d = [i for i in a]

y[key,(a .+ c .- 1)] = replace.(work_matrix[b,d],“,” =>“”)

end

end

But I get this error : no method matching similar(::Int64, ::Type{Any}), does anyone know why ? Thank you !