Skip to content
Prev 25095 / 398502 Next

boot&table

Hi,
I am not sure what do you want to do. Function boot needs data as 
vector, matrix, or data.frame. Boot does work with statistics, which 
gives back vector. Give more details, why can't you work with matrix or 
data.frame instead of table.
table2matrix <-
function (x) {
     if (!is.table(x)) {
        stop("I need table")
     }
     mm <- cbind(as.numeric(names(x)),x)
     rownames(mm) <- NULL
     mm
}
Or some other way, it is just an example. As you see, nothing very 
troublesome.

Mpiktas

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._