Translate dplyr slice_sample function into base R

后端 未结 0 1189
-上瘾入骨i
-上瘾入骨i 2020-12-17 09:59

Just a quick question: how to translate the dplyr function slice_sample into base R? Here is a toy dataset:

y <- rnorm(20)
x <- rnorm(20)
z         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题