Hello,
I want to take a sample of 500 pictures from a folder which contains about 87.000 pictures.
When I use
list.files(path="C:\Users\My Name\Bachelor\images", recursive= TRUE, full.names = TRUE)
it lists me up to 1.000 picture names (which is the max.print size) but when I want to take a sample of those with:
sample("C:\Users\My Name\Bachelor\images\",500,replace=FALSE, prob=NULL)
it gives me following error message: "cannot take a sample larger than the population when 'replace = FALSE'"
So here's my question: How can I make Rstudio take a sample from those mentioned 87.000 pictures?
Thanks in advance