Closed serbinsh closed 4 years ago
val.plsr.data <-plsr_data[!row.names(plsr_data) %in% row.names(cal.plsr.data),] should do the trick
@JulienLamour yup looks like that worked for this other test dataset. Also just checked the original example and it seems to be creating the same data split as before. So I think that solved it, thanks!
FYI @JulienLamour when playing with another dataset from EcoSIS I realized that your dplyr method for splitting data assumes the dataset contains "Sample_ID" which is based on the original example but not universal
We will need to revise how we select out the not cal data so it doesnt depend on knowing what variable is in the dataset. currently I am not sure yet how do do that with that approach as it doesnt create a new variable to track which rows are part of the cal selected dataset, like the original version as revised by @neo0351 . We will need to fix this to make it more generic