View source: R/centralValues.R
centralValues | R Documentation |
This is needed for the creation of summaries and predicted values of regression models. It takes a data frame and returns a new data frame with one row in which the mean or mode of the columns is reported.
centralValues(x)
x |
a data frame |
a data frame with the same variables and one row, the summary indicators.
Paul E. Johnson pauljohn@ku.edu
myDat <- data.frame(x=rnorm(100), y=rpois(100,l=4), z = cut(rnorm(100), c(-10,-1,0,10))) centralValues(myDat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.