Skip to content

mat_test

Example data for `MetNet`: unit tests

Bundled with MetNet · exported, loads via data()

Class
matrix
Dimensions
7 × 20
Missing
0
Format
rda · gzip
version 2 · 2.3 KB
File
data/mat_test.RData
Fingerprint
b921d978
Format documented
Yes
Source
set.seed(1) random_numbers <- rnorm(140, mean = 10, sd = 2) mat_test <- matrix(random_numbers, nrow = 7) mat_test[1:3, ] <- t(apply(mat_test[1:3, ], 1, sort)) mat_test[5:7, ] <- t(apply(mat_test[5:7, ], 1, sort, decreasing = TRUE)) rownames(mat_test) <- paste("x", 1:7, sep = "")
About this object
A flat block of values with dimensionsA block of cells sharing every edge, with nothing above the columns and nothing in it: a name here is hung on the whole block rather than on one column.

A single vector with a dim attribute. All elements share one type. R object catalogue

Values

Computed over every cell in the object, reading it as one vector.

numeric
Cells
140
Missing
0
Min.
5.5706
1st Qu.
8.93632
Median
9.92313
Mean
10.126
3rd Qu.
11.1963
Max.
14.8032
Std. dev
1.71981
Distinct
140
Skewness
0.09854
Kurtosis
0.008336
Outliers
1 0 low · 1 high
Margins

The mean of each row, and of each column, summarised. Reading every cell as one vector gives a matrix and its transpose the same answer; these do not.

MarginMin.1st Qu.MedianMean3rd Qu.Max.Std. dev
Rows9.83049.902910.01910.12610.35910.5080.28528
Columns9.5119.897110.03510.12610.2710.8720.36241

The row means and the column means vary by a similar amount, so neither margin carries the structure on its own.

Dimensions and labels
MarginLabelsCount
Rowsx1, x2, x3, x4, x5, x6, x77
Columns

This object is 20 columns wide. A matrix carries no per-column schema, so its width is what the catalogue records and there is nothing to list one column at a time. What it holds is described whole instead, summarised over every cell: see Values and Margins above.

Structure fingerprint

15 other datasets carry the same structure fingerprint. That fingerprint is a digest of the column names and their types, and a matrix carries neither, so on one it comes down to the width and the type held: a match is another object of 20 columns holding the same type rather than one with the same columns. The datasets are not listed, because that is not a list of anything this one is related to.

Version history
VersionReleasedSizeChangeStored asConfidence
3.232026-04-287 × 20Unchangedrda · gzip
version 2 · 2.3 KB
exact
3.222025-10-297 × 20Unchangedrda · gzip
version 2 · 2.3 KB
exact
3.212025-10-107 × 20Unchangedrda · gzip
version 2 · 2.3 KB
exact
3.202024-10-297 × 20Unchangedrda · gzip
version 2 · 2.3 KB
exact
3.192024-04-307 × 20Unchangedrda · gzip
version 2 · 2.3 KB
exact
3.182023-10-247 × 20Unchangedrda · gzip
version 2 · 2.3 KB
exact
3.172023-04-257 × 20Unchangedrda · gzip
version 2 · 2.3 KB
exact
3.162022-11-017 × 20Unchangedrda · gzip
version 2 · 2.3 KB
exact
3.152022-04-267 × 20Unchangedrda · gzip
version 2 · 2.3 KB
exact
3.142022-04-097 × 20Unchangedrda · gzip
version 2 · 2.3 KB
exact
3.132021-05-197 × 20Unchangedrda · gzip
version 2 · 2.3 KB
exact
3.122020-10-277 × 20Unchangedrda · gzip
version 2 · 2.3 KB
exact
3.112020-04-277 × 20Unchangedrda · gzip
version 2 · 2.3 KB
exact
3.102020-03-077 × 20Unchangedrda · gzip
version 2 · 2.3 KB
exact
3.92019-05-027 × 20Unchangedrda · gzip
version 2 · 2.3 KB
exact
3.82019-01-047 × 20–rda · gzip
version 2 · 2.3 KB
exact

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy