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

validate_new_pos_ids

Validate sequence of new position ids


Description

Ids created with after = TRUE can have pos_id values between x.0 and x.5 and ids created with after = FALSE can have pos_id values between 1+ x.0 and 1 + x.5 where x is the pos_id integer which was used as a reference to create the new pos_ids.

Usage

validate_new_pos_ids(new_ids, after)

Arguments

new_ids

A vector with new ids

after

Whether the ids are created with after = TRUE (and hence should be in the range x.0-x.45) or not.

See Also

Other token creators: create_pos_ids(), create_tokens()


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.