Home > other >  R language how random sampling N rows of data in excel
R language how random sampling N rows of data in excel

Time:11-21

I have a group of 80000 lines of data, I want to a random sample of 8000 lines, write another excel document, the other with the sample this function to do, find not achieve them, how should I write?? A big brand

CodePudding user response:

Sample (data, size=8000, replace=F)

CodePudding user response:

x<- read. CSV (file="write your own path")
The x1 & lt; - [sample (80000800),]
This is ok
  • Related