Today, when I used the rbind function in R language, this error occurred, and I couldn’t find the error after searching for a long time.
The reason for this mistake:
1. The data type used is data.frame
2. The header files for the rows to be merged are different
Solution: change the data to matrix, and you can do it. In addition, when you read the data, add the data header=FALSE, which is also ok. I tried it, but it is hard to use, so I changed it to matrix.
Error name: Error in match. Names (CLABS, names(XI)) : Names do not match previous names
The reason for this mistake:
1. The data type used is data.frame
2. The header files for the rows to be merged are different
Solution: change the data to matrix, and you can do it. In addition, when you read the data, add the data header=FALSE, which is also ok. I tried it, but it is hard to use, so I changed it to matrix.
Error name: Error in match. Names (CLABS, names(XI)) : Names do not match previous names
Read More:
- 13. R language: Error in match.names(clabs, names(xi)): The name is not relative to the original name
- Methods of modifying index and columns names by dataframe in pandas
- Adding prefixes to file names in batch by shell under mac
- Bash modifies the file names in the specified folder through MAC terminal (batch modification)
- Batch modification of file names on MAC Linux rename command line
- Nginx configures different domain names to access different projects
- Command failed with error 16412: ‘FieldPath field names may not contain ‘.‘.‘ on server 10.21.20.8:2
- Errors in IntelliJ ieeasql statements and table names in @ table
- Renaming the column name of data frame in R language
- The solution of “error in NLS loop more than 50” in R language
- Usage and examples of three important functions of tidyr package in R language: gather, spread and separate
- Error analysis of multiple linear regression in R language model.frame.default
- Solving the problem of saving object set by save() function in R language
- R language error in hist.default ():’x’must be a value
- Trivia: How does R language solve Error in ts(x):’ts’ object must have one or more observations
- R language-Error in file(out, “wt”): Unable to open the link problem solved
- In R language, for loop or array truncation, the following error occurs only 0’s may be mixed with negative subscripts
- The sparse matrix of R language is too large to be used as.matrix
- R language – path setting and working directory modification
- R language error messages and related solutions