s_at: Returns the character at a position of a string.

Description Usage Arguments Details Value Examples

View source: R/domain.R

Description

Returns the character at a position of a string.

Usage

1
s_at(string, position)

Arguments

string

A string.

position

A positive number.

Details

Calls substr(string, position, position).

Value

A character

Examples

1
2
3
4
5
s_at("123", 1)
s_at("123", 2)
s_at("123", 3)
s_at("123", 4)
s_at("123", 0)

sqyu/genscore documentation built on April 30, 2020, 4:27 a.m.