📄 treesize.r
字号:
treesize <- function(x, terminal=TRUE) { if(!inherits(x, "randomForest")) stop("This function only works for objects of class `randomForest'") if(is.null(x$forest)) stop("The object must contain the forest component") if(terminal) return((x$forest$ndbigtree+1)/2) else return(x$forest$ndbigtree)}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -