我已经检查了meta,但仍然找不到解决方案的线索。请执行我可以做的其他事情,因为我已经安装了 tidyverse 和 dplyr ,但是我的代码不断出现错误。在帮助中搜索?slice_sample 时,找不到帮助。有人可以告诉我该怎么做吗?
> reduced <- powerData %>% filter(marker == "Natural") %>% slice_sample(prop = 0.8)
Error in slice_sample(., prop = 0.8) :
could not find function "slice_sample"
> getAnywhere(slice_sample)
no object named ‘slice_sample’ was found
> getAnywhere(slice_sample)
no object named ‘slice_sample’ was found
> help.search("slice_sample") # nothing came out