R: Create valid pos_ids if possible

create_pos_ids {styler} | R Documentation

## 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`

[Package styler version 1.0.2 Index]