R: Test cell reference strings

is_A1 {cellranger} | R Documentation

## Test cell reference strings

### Description

Test cell reference strings for a specific format.

### Usage

    is_A1(x)

    is_R1C1(x)

### Arguments

`x` | character vector of cell reference strings

### Value

a logical vector

### Functions

- `is_A1`: A1 format, case insenstive; relative, absolute, or mixed

- `is_R1C1`: R1C1 format; relative, absolute, or mixed

### Examples

    is_A1("A1")
    is_R1C1("A1")
    is_R1C1("R4C12")

    x <- c("A1", "$A4", "$b$12", "RC1", "R[-4]C9", "R5C3")
    data.frame(x, is_A1(x), is_R1C1(x))

[Package cellranger version 1.1.0 Index]