Learn R Programming

openxlsx2 (version 0.7.1)

dims_helper: dims helpers

Description

Internal helpers to (de)construct a dims argument from/to a row and column vector. Exported for user convenience.

Usage

dims_to_rowcol(x, as_integer = FALSE)

rowcol_to_dims(row, col)

Arguments

x

a dimension object "A1" or "A1:A1"

as_integer

optional if the output should be returned as integer

row

a numeric vector of rows

col

a numeric or character vector of cols

Examples

Run this code
dims_to_rowcol("A1:J10")
rowcol_to_dims(1:10, 1:10)

Run the code above in your browser using DataLab