I want to combine excel files together using R, and facing few issues:
1- I create a list of the files, so far only .xlsx as i want less problems for now. A <- list.files(pattern = '.xlsx', recursive = TRUE)
2- B <- lapply(A, read.xlsx)
I get an error: (Error in (function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE, :
arguments imply differing number of rows: 92, 96, 76, 88).
3- Another problem has to do with columns type.
Error: Can't combine `..1$Ct.(dR)` <double> and `..7$Ct.(dR)` <character>.
I know usually how to use as.character, but since I have a list not an actual file, I am clueless.
*My plan is as follows: -make list -> read them as excel files -> combine them into one file/table/df/matrix -> then visualize data
*My problems:
- column type different
- inconsistent raw, column numbers between files
Any help is appreicated. I know that this has been asked before but unfortunately I was unable to replicate what was mentioned in the other questions&answers.