parLapply函数的多个参数如何对应于每个列表?
我有一个我想做的数据帧,每列有一个不同的分位数。如何将每个分位数作为参数传递parLapply函数的多个参数如何对应于每个列表?,r,parallel-processing,arguments,R,Parallel Processing,Arguments,我有一个我想做的数据帧,每列有一个不同的分位数。如何将每个分位数作为参数传递 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))) 第二个代码无法实现 parLapply(cl,list(c(1:1
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)))
第二个代码无法实现
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.