Each interval is expanded into its minimum and maximum bounds.

# S3 method for class 'interval'
as.matrix(x, ...)

Arguments

x

An interval object to be converted.

...

Additional arguments to be passed to as.vector().

Value

A matrix representation of the interval, with two columns for each interval's minimum and maximum values.

Examples

as.matrix(inter_city)
#>       [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13]
#>  [1,]   -3    2   -3    4    1    8    3   12    7    18    12    21    13
#>  [2,]   -1    3   -2    4    1    8    3   12    7    17    11    20    12
#>  [3,]   -1    3   -1    5    2   10    4   13    8    19    12    22    14
#>  [4,]   -1    3   -2    4    1    7    3   11    7    17    11    19    13
#>  [5,]   -4    2   -4    3    0    9    2   12    7    17    10    20    12
#>  [6,]   -3    3   -3    4    1    9    3   12    7    17    11    21    13
#>  [7,]    0    6    1    6    2    8    3   10    6    13     8    16    11
#>  [8,]    1    6    1    6    2    9    3   12    6    16     9    18    12
#>  [9,]    2    6    2    6    3    7    3    8    6    11     8    13    10
#> [10,]    3    7    2    7    4    9    5   11    8    16    11    18    13
#> [11,]    2    7    2    7    3    9    4   12    7    16    11    18    13
#> [12,]    2    7    2    7    3    9    4   11    7    15    11    18    12
#> [13,]    2    7    2    7    3    9    4   11    7    15    11    18    12
#> [14,]    1    5    1    6    3    8    3   10    6    13     9    16    11
#> [15,]    4    8    4    8    5   10    6   12    9    14    12    17    13
#> [16,]   -4    1   -3    3    1    9    4   13    8    19    12    21    13
#> [17,]   -3    2   -2    4    2    9    5   14    9    19    13    22    15
#> [18,]    1    6    1    6    3    9    4   13    8    17    12    20    13
#> [19,]    1    6    1    6    3    9    4   13    8    17    11    19    13
#> [20,]   -2    4    1    7    3   12    7   18   12    23    16    27    18
#> [21,]   -4    2   -3    4    1    9    5   14    9    19    13    23    14
#> [22,]    3   11    4   12    6   14    9   17   13    22    17    26    19
#> [23,]    5   11    5   12    7   14   10   17   14    21    18    25    21
#> [24,]   -1    3   -2    2    0    5    2    9    7    16    11    19    13
#> [25,]    8   17    9   17   11   18   12   20   15    23    18    27    22
#> [26,]    4   13    5   14    7    7    8   17   12    20    16    24    19
#> [27,]    6   13    6   14    7   16    8   17   11    19    14    22    16
#> [28,]    0   11    2   12    3   16    6   17    9    22    13    28    16
#> [29,]    7   16    8   17    9   19   11   20   13    23    17    27    20
#> [30,]    6   16    7   17    8   21   10   22   13    26    17    31    19
#> [31,]    5   15    6   16    8   18    9   19   13    22    17    26    20
#> [32,]    4   13    4   13    6   14    7   17   11    21    14    24    17
#> [33,]    2    9    3   11    4   14    6   16   10    19    13    23    15
#> [34,]    4    9    4    9    5   11    6   12    8    15    11    18    13
#> [35,]    4   13    4   12    7   14    9   16   13    20    17    23    19
#> [36,]    4    6    3    6    6    8    7   10   11    13    13    16    16
#> [37,]    2    7    2    8    4   12    6   14    9    18    12    21    14
#> [38,]    1    6    1    6    3    9    4   12    8    17    11    19    13
#> [39,]    1    6    1    8    3   12    6   14   10    19    14    23    16
#> [40,]    3   11    3   12    6   14    8   17   12    21    16    26    19
#> [41,]    6   13    6   13    8   14    9   16   13    19    17    23    19
#> [42,]    1    6    1    7    3   11    6   14    9    18    12    21    14
#> [43,]   -1    4   -1    6    2   11    4   14    9    19    12    22    14
#> [44,]    7   13    7   13    7   15    9   17   12    22    16    26    18
#> [45,]    6   14    6   14    8   16    9   18   13    22    17    27    19
#> [46,]    6   11    6   12    8   14   11   16   14    20    18    23    21
#> [47,]   -4    7   -3    8    1   13    4   17    9    21    13    25    16
#> [48,]    4   12    5   13    7   16    9   18   13    22    17    26    19
#> [49,]   11   15   11   15   11   16   13   18   16    21    20    25    23
#> [50,]    2   11    3   12    5   14    7   17   11    22    14    26    17
#> [51,]    4   13    4   13    6   15    8   17   12    22    16    25    19
#> [52,]   -1    6    1    8    4   12    8   16   13    21    16    24    18
#> [53,]    1    5    0    6    3    9    4   12    8    16    11    19    13
#> [54,]   -6    1   -4    2   -1    7    3   12    8    18    11    21    13
#> [55,]   -3    1   -4    2    0    7    3   12    8    18    11    21    13
#> [56,]   -4    1   -4    1   -1    7    3   12    8    18    11    21    13
#> [57,]    8   16    9   16   10   18   11   19   13    22    17    25    19
#> [58,]   14   18   14   18   14   18   14   18   16    20    18    22    19
#> [59,]    7   14    8   15    9   17   11   18   12    21    15    25    17
#> [60,]   -4    2   -2    4    2   11    6   16   10    21    13    24    14
#> [61,]   -5    2   -4    4    1   10    6   17   11    22    14    26    16
#> [62,]   -6   -1   -5    2    0    9    4   14    9    19    12    22    13
#> [63,]   -4    1   -3    4    1   11    6   16   10    21    13    23    14
#> [64,]  -12   -6  -11   -4   -6    1    1    9    7    17    11    21    13
#> [65,]   -9   -4   -9   -4   -4    1    1    8    7    16    11    19    13
#> [66,]    3    8    3    8    4   11    8   16   12    21    17    26    19
#> [67,]    4   12    4   12    7   16   10   20   14    25    18    31    20
#> [68,]   -9   -3   -8   -2   -3    4    3   13    8    20    12    23    13
#>       [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25]
#>  [1,]    23    13    23    10    19     6    13     2     7    -1     3    27
#>  [2,]    21    12    22     9    18     6    13     3     8     1     5    30
#>  [3,]    24    13    24    11    20     6    14     2     7     0     4    30
#>  [4,]    21    12    22     9    18     6    13     3     7     0     4    30
#>  [5,]    22    12    23     9    19     4    13     0     7    -3     3    26
#>  [6,]    23    12    23     9    19     5    14     1     8    -2     4    28
#>  [7,]    18    10    18     8    15     6    12     3     8     2     7    33
#>  [8,]    21    11    21     9    17     6    13     3     9     2     7    34
#>  [9,]    15    10    15     8    13     7    11     4     8     3     7    35
#> [10,]    20    13    19    10    17     8    13     5     9     4     8    34
#> [11,]    20    12    19    10    17     7    13     4     9     3     8    35
#> [12,]    19    12    19    10    17     7    13     4     9     3     7    34
#> [13,]    19    12    19    10    17     7    13     4     9     3     7    34
#> [14,]    18    11    18     9    16     7    12     4     8     2     6    33
#> [15,]    19    13    19    12    17     9    14     7    11     6    10    38
#> [16,]    23    13    23    10    19     5    13     1     6    -2     2    26
#> [17,]    25    15    25    12    21     6    14     2     7    -1     4    26
#> [18,]    22    13    22    11    19     7    14     4     9     2     7    32
#> [19,]    22    13    22    11    19     8    14     4     9     2     7    32
#> [20,]    29    17    28    14    26     8    18     3    11     0     6    28
#> [21,]    26    14    26    11    22     7    16     1     8    -2     3    23
#> [22,]    29    19    29    16    26    12    21     8    16     5    12    32
#> [23,]    28    21    28    18    24    13    21     9    15     6    12    33
#> [24,]    21    12    21    10    16     7    12     3     7     0     4    28
#> [25,]    29    22    30    21    28    16    24    12    20     9    17    44
#> [26,]    27    19    28    17    26    12    21     8    17     6    14    39
#> [27,]    25    16    25    14    24    12    21     9    17     7    14    39
#> [28,]    32    16    32    13    28     8    20     4    14     2    11    34
#> [29,]    29    21    29    18    28    14    23    11    19     9    17    44
#> [30,]    35    19    35    18    32    13    26     9    21     7    17    43
#> [31,]    29    21    29    18    27    13    23     9    18     7    16    40
#> [32,]    27    17    28    15    26    12    22     8    17     5    14    41
#> [33,]    26    15    26    12    23     9    18     5    13     3    10    38
#> [34,]    20    13    20    11    18     9    15     7    12     6    10    40
#> [35,]    27    19    27    16    24    13    20     8    16     6    13    25
#> [36,]    18    16    19    14    17    11    14     7     9     5     7    38
#> [37,]    24    14    24    11    21     8    16     4    11     3     8    36
#> [38,]    22    13    23    11    19     7    14     4     9     2     7    33
#> [39,]    27    16    26    12    22     8    16     4    10     2     7    33
#> [40,]    29    18    28    16    25    11    20     7    14     3    12    36
#> [41,]    26    20    27    17    24    13    20     9    16     6    13    35
#> [42,]    24    14    24    11    21     8    15     4     9     2     7    33
#> [43,]    24    13    24    11    21     7    14     2     8     0     5    31
#> [44,]    29    18    29    17    26    14    22    10    17     7    14    44
#> [45,]    30    19    30    17    27    14    23     9    18     7    15    44
#> [46,]    27    21    27    18    24    14    19     9    14     7    12    34
#> [47,]    28    16    28    12    24     7    18     1    11    -3     7    28
#> [48,]    29    19    29    16    27    13    22     8    17     6    13    40
#> [49,]    28    24    29    22    27    19    23    14    19    12    16    46
#> [50,]    29    17    29    15    26    11    21     6    15     3    12    36
#> [51,]    28    19    28    17    26    13    22     8    17     6    14    40
#> [52,]    27    18    27    15    23    10    28     4    11     1     7    32
#> [53,]    21    13    21    11    18     8    14     4     9     2     7    33
#> [54,]    22    12    22     9    18     4    13     0     6    -3     2    24
#> [55,]    22    12    23     9    18     5    13     1     6    -2     3    27
#> [56,]    23    12    23     8    18     4    12     1     6    -3     2    25
#> [57,]    28    19    28    18    27    14    22    12    19     9    17    46
#> [58,]    24    21    25    21    24    18    23    17    21    16    19    52
#> [59,]    28    18    28    17    27    14    21    11    17     9    14    44
#> [60,]    27    14    27    11    23     6    17     1     8    -2     3    28
#> [61,]    28    15    28    11    24     6    17     1     8    -3     3    26
#> [62,]    23    13    24     9    20     4    14    -1     6    -4     1    22
#> [63,]    26    14    26    11    22     6    16     1     7    -2     2    25
#> [64,]    22    11    20     6    14     1     7    -4     0    -9    -4    12
#> [65,]    21    12    19     7    13     3     7    -2     2    -7    -2    16
#> [66,]    28    19    28    16    24    13    19     8    14     6    10    34
#> [67,]    33    19    32    16    29    13    23     8    17     6    13    38
#> [68,]    24    12    23     8    19     3    12    -2     3    -6     0    17
#>       [,26]
#>  [1,]    53
#>  [2,]    54
#>  [3,]    54
#>  [4,]    54
#>  [5,]    53
#>  [6,]    53
#>  [7,]    51
#>  [8,]    52
#>  [9,]    51
#> [10,]    51
#> [11,]    53
#> [12,]    52
#> [13,]    52
#> [14,]    51
#> [15,]    55
#> [16,]    54
#> [17,]    54
#> [18,]    56
#> [19,]    55
#> [20,]    59
#> [21,]    53
#> [22,]    57
#> [23,]    58
#> [24,]    52
#> [25,]    66
#> [26,]    66
#> [27,]    60
#> [28,]    52
#> [29,]    64
#> [30,]    59
#> [31,]    66
#> [32,]    64
#> [33,]    59
#> [34,]    56
#> [35,]    85
#> [36,]    58
#> [37,]    57
#> [38,]    55
#> [39,]    57
#> [40,]    59
#> [41,]    64
#> [42,]    55
#> [43,]    56
#> [44,]    64
#> [45,]    66
#> [46,]    64
#> [47,]    62
#> [48,]    70
#> [49,]    70
#> [50,]    63
#> [51,]    67
#> [52,]    63
#> [53,]    56
#> [54,]    55
#> [55,]    53
#> [56,]    55
#> [57,]    60
#> [58,]    63
#> [59,]    58
#> [60,]    59
#> [61,]    61
#> [62,]    56
#> [63,]    58
#> [64,]    54
#> [65,]    54
#> [66,]    61
#> [67,]    61
#> [68,]    55