Usage of accumarray function (pracma package)


I can't run your code, as your code starts with data = recode(data, ...), and I don't have the original data. Can you please share a minimal and reproducible example, alongwith an expected output and explanation of what you're trying to do?

Also, I guess you don't need to type so many things. paste and each argument of rep should be useful here. Maybe, you can use something like paste0("'",rep(1:100,4),"'=",1:400,collapse=";")?

It'll be very helpful if you please provide us a reprex, and the following guide is very helpful regarding that:

1 Like