Description Usage Arguments Value Examples
View source: R/f0.rbsb1.code.r
Data being supposed to be a data frame: observation by rows, variables by columns being numeric or factor; standard univariate statistics are computed for each variable.
| 1 2 | 
| data | Date frame containing the data set. NA values are accepted. | 
| quant | ( | 
| nbmin | ( | 
a named list with as many components as variables (getting the
variable names).
 For numeric variables it is a named vector with
standard statistics.
 For categoric variables it is a matrix having
a row for each category sorted according to the frequencies and four
columns: frequencies, rounded percentages, rounded cumulated
percentages in both directions (based on the level orders.
| 1 2 3 4 5 6 7 8 9 |  rbsb3k("RESET"); # needed only for R checking, to be forgotten
 set.seed(1234);
 don <- matrix(round(runif(100)*100), 20);
 dimnames(don)[[2]] <- LETTERS[1:5];
 print(df2ustat(as.data.frame(don), quant=c(0, 0.5, 1), nbmin=5));
 set.seed(1234);
 don <- matrix(letters[1+round(runif(100)*10)], 20); 
 dimnames(don)[[2]] <- LETTERS[1:5];
 print(df2ustat(as.data.frame(don), nbmin=5));
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.