informat | R Documentation |
A function to check whether a given data table/matrix/data frame is in the appropriate for drpop.
informat(data, K = 2)
data |
The data table/matrix/data frame which is to be checked. |
K |
The number of lists (optional). |
A boolean for whether data
is in the appropriate format.
data = matrix(sample(c(0,1), 2000, replace = TRUE), ncol = 2) x = matrix(rnorm(nrow(data)*3, 2,1), nrow = nrow(data)) informat(data = data) #this returns TRUE data = cbind(data, x) informat(data = data) #this returns TRUE informat(data = data, K = 3) #this returns FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.