Skip to contents

Create position names for a grid.

Usage

position_name(rows, columns)

Arguments

rows

Names of the rows.

columns

Names of the columns.

Value

A data.frame with the rows and columns and the resulting name row+column. The name column is a factor for easier sorting in row, column order.

Examples

position_name(c("A", "B"), 1:2)
#>   row column name
#> 1   A      1   A1
#> 3   A      2   A2
#> 2   B      1   B1
#> 4   B      2   B2