Error in rep_len(FALSE, n.mar * runl) : invalid 'length.out' value

LandCoverChangeMatrices<-LandMatrix(SEEAClasses = Classes,FirstYear = landcover2005, ListFiles = r.list, SEEAcolores=colours,legendclasses = LandCoverClasses)

I think we need a FAQ: How to do a minimal reproducible example ( reprex ) for beginners

A handy way to supply some sample data is the dput() function. In the case of a large dataset something like dput(head(mydata, 100)) should supply the data we need.