我正在使用软件包"survPresmooth",我想将control.presmooth$n.boot从c(5000,1000)更改为c(1000,200),有什么方法可以做到这一点吗?
我试
control.presmooth$n.boot <- c(1000, 200)
但它没有奏效,因为
类型为"closure"的对象不是子集
我还try 编辑control.presmooth函数,
trace(control.presmooth, edit = TRUE)
但它返回了以下错误:
Error in .makeTracedFunction(def, tracer, exit, at, print, doEdit) :
the editing in trace() can only change the body of the function, not the arguments or defaults