Skip to contents

dataframe index

Usage

data_frame_index(nrow, ncol)

Arguments

nrow

number of rows

ncol

number of collumns

Examples

data_frame_index(5, 5)
#>       ri ci
#>  [1,]  1  1
#>  [2,]  2  1
#>  [3,]  3  1
#>  [4,]  4  1
#>  [5,]  5  1
#>  [6,]  1  2
#>  [7,]  2  2
#>  [8,]  3  2
#>  [9,]  4  2
#> [10,]  5  2
#> [11,]  1  3
#> [12,]  2  3
#> [13,]  3  3
#> [14,]  4  3
#> [15,]  5  3
#> [16,]  1  4
#> [17,]  2  4
#> [18,]  3  4
#> [19,]  4  4
#> [20,]  5  4
#> [21,]  1  5
#> [22,]  2  5
#> [23,]  3  5
#> [24,]  4  5
#> [25,]  5  5