Examples for 'sourcetools::tokenize'


Tokenize R Code

Aliases: tokenize tokenize_file tokenize_string

Keywords:

### ** Examples

tokenize_string("x <- 1 + 2")
  value row column       type
1     x   1      1     symbol
2         1      2 whitespace
3    <-   1      3   operator
4         1      5 whitespace
5     1   1      6     number
6         1      7 whitespace
7     +   1      8   operator
8         1      9 whitespace
9     2   1     10     number

[Package sourcetools version 0.1.7 Index]