I'm a beginner using R to analyze a bunch of data. My program currently opens a list of csv's from a folder and binds them together into one data frame using rbind. Here's what it looks like:
LDT.list <- list.files(path="./Desktop/Data_analysis/LDT/", pattern=".csv", full.names = TRUE)
LDTfiles <- lapply(LDT.list, read.csv)
LDT_table <- do.call("rbind.data.frame" , LDTfiles)
The problem is that after using rbind, one of the columns in my dataframe is no longer numeric and I can't calculate its mean. I imported a single csv and the column I've described is considered numeric.The problem seems to occur after using rbind. I've already tried to convert the column to numeric but got a warning about missing data. So my question is how I could use rbind while keeping the classes as numerics. Thanks