error in match.names(clabs names(xi)) code example
Example: Error in match.names(clabs, names(xi)) : names do not match previous names
names(df1) <- names(df2)
identical(df1), names(df2))
names(df1) <- names(df2)
identical(df1), names(df2))