Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

create_pos_ids

Create valid pos_ids if possible


Description

Create valid pos_ids if possible

Usage

create_pos_ids(pd, pos, by = 0.1, after = FALSE, n = 1)

Arguments

pd

A parse table.

pos

The position where the new id should be inserted.

by

By how much the reference pos_id should be increased / decreased to create a new id.

after

Boolean indicating whether it should be inserted after or before pos.

n

Number of ids to generate.

Value

Returns a valid sequences of pos_ids or an error if it was not possible to create one. The validation is done with validate_new_pos_ids()

See Also

Other token creators: create_tokens(), validate_new_pos_ids()


styler

Non-Invasive Pretty Printing of R Code

v1.4.1
MIT + file LICENSE
Authors
Kirill Müller [aut], Lorenz Walthert [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.