我有一个要执行的数据框,并且每一列都有不同的分位数。您如何将每个分位数作为参数传递?
parLapply(cl,list(c(1:100),c(2:78)), fun = cut, breaks = c(0,2,10,30,50,100))
可以执行第一个代码。
parLapply(cl,list(c(1:100),c(2:78)), fun = cut, breaks = list(c(0,2,100),c(0,5,7,999)))
第二个代码无法实现。
第二个代码给出错误:
Error in checkForRemoteErrors(val) :
2 nodes produced errors; first error: (serial) object cannot be forced to
change to 'double' type.