ãµã¤ãºã®å¤§ãããµã³ãã«ãã¼ã¿ãã²ãããã
R使ã£ã¦ã¦ã¨ãããããµã¤ãºã®å¤§ãããµã³ãã«ãã¼ã¿ã欲ããã£ãã®ã§é¢æ°ãæ¸ããã
ãªãä»ãã¼ããã¦ããããã±ã¼ã¸ã®ç¯å²å
ã
ã¤ã³ã¹ãã¼ã«ãã¦ããããã±ã¼ã¸å
¨ã¦ã«æ¡å¼µãããæ°ããããã©å½é¢ã¯ããã§ãããã
getDatalist <- function(){ datalist <- data.frame(data()[3], stringsAsFactors=FALSE)[[3]] datalist <- datalist[-grep("\\(", datalist, perl = TRUE)] data(list = datalist) res <- NULL for(dname in datalist){ resdata <- eval(parse(text = dname)) res0 <- data.frame(name = dname, size = ifelse(is.null(nrow(resdata)), length(resdata), nrow(resdata)), class = class(resdata), stringsAsFactors = FALSE) res <- rbind(res, res0) } res <- res[order(res$size), ] return(res) }