thanks for help
I have a data.frame with 121 rows. I wish to split random in two data.frames
(first = 80 rows and second = 41 rows). I try this code
dat1 <- AnalysisDF_clean[sample(1:nrow(AnalysisDF_clean),
80,replace=FALSE),]
dat2 <- AnalysisDF_clean[sample(1:nrow(AnalysisDF_clean),
41,replace=FALSE),]
but I have a problem because in dat2 sometimes there are some value present
in dat1.
thanks
Gianni
[[alternative HTML version deleted]]
_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo