random_table: A Random Table

Description Usage Arguments Value Examples

View source: R/Table.R

Description

This function returns a table that can be passed to renderTable and tableOutput.

Usage

1
random_table(nrow, ncol, type = c("random", "numeric", "character", "numchar"))

Arguments

nrow

number of row of the output

ncol

number of cols of the output

type

type of the columns, can be "random", "numeric", "character", "numchar". Default is random.

Value

a table

Examples

1
2
random_table(10, 10)
random_table(10, 10, "numeric")

Example output

   x1 x2 x3 x4    y1   y2    y3    y4 x1.1 x2.1
1  10 10 10  8  8.04 9.14  7.46  6.58   10   10
2   8  8  8  8  6.95 8.14  6.77  5.76    8    8
3  13 13 13  8  7.58 8.74 12.74  7.71   13   13
4   9  9  9  8  8.81 8.77  7.11  8.84    9    9
5  11 11 11  8  8.33 9.26  7.81  8.47   11   11
6  14 14 14  8  9.96 8.10  8.84  7.04   14   14
7   6  6  6  8  7.24 6.13  6.08  5.25    6    6
8   4  4  4 19  4.26 3.10  5.39 12.50    4    4
9  12 12 12  8 10.84 9.13  8.15  5.56   12   12
10  7  7  7  8  4.82 7.26  6.42  7.91    7    7
   x1 x2 x3 x4    y1   y2    y3    y4 x1.1 x2.1
1  10 10 10  8  8.04 9.14  7.46  6.58   10   10
2   8  8  8  8  6.95 8.14  6.77  5.76    8    8
3  13 13 13  8  7.58 8.74 12.74  7.71   13   13
4   9  9  9  8  8.81 8.77  7.11  8.84    9    9
5  11 11 11  8  8.33 9.26  7.81  8.47   11   11
6  14 14 14  8  9.96 8.10  8.84  7.04   14   14
7   6  6  6  8  7.24 6.13  6.08  5.25    6    6
8   4  4  4 19  4.26 3.10  5.39 12.50    4    4
9  12 12 12  8 10.84 9.13  8.15  5.56   12   12
10  7  7  7  8  4.82 7.26  6.42  7.91    7    7

shinipsum documentation built on May 1, 2020, 1:07 a.m.