marchtaylor / sinkr

A collection of functions with emphasis on multivariate methods and handling of geographic datasets
GNU General Public License v3.0
36 stars 12 forks source link

Error in `[<-.data.frame`(`*tmp*`, list, value = 0) : new columns would leave holes after existing columns #12

Closed Mhernandel closed 5 months ago

Mhernandel commented 1 year ago

Hello! Congratulations on your code, and thank you so much for sharing. I am an economics student trying to deal with gappy data, and your post and code have been more than useful; however, I am very new to using R, and I am getting this error trying to run the "dineof" function. I understand that has something to do with the data being a Dataframe, but transforming it into a matrix hasn't worked. Could you help me?

Mhernandel commented 1 year ago

It was fixed with a "as.matrix" and "na.strings". Thank you very much for your code