Examples for 'reshape2::parse_formula'


Parse casting formulae.

Aliases: parse_formula

Keywords:

### ** Examples

reshape2:::parse_formula("a + ...", letters[1:6])
[[1]]
List of 6
 $ a: symbol a
 $ b: symbol b
 $ c: symbol c
 $ d: symbol d
 $ e: symbol e
 $ f: symbol f
 - attr(*, "env")=<environment: 0x55ccfb7c60c0> 
 - attr(*, "class")= chr "quoted"
reshape2:::parse_formula("a ~ b + d")
[[1]]
List of 1
 $ a: symbol a
 - attr(*, "env")=<environment: 0x55ccfdd93b40> 
 - attr(*, "class")= chr "quoted"

[[2]]
List of 2
 $ b: symbol b
 $ d: symbol d
 - attr(*, "env")=<environment: 0x55ccfdd93b40> 
 - attr(*, "class")= chr "quoted"
reshape2:::parse_formula("a + b ~ c ~ .")
[[1]]
List of 2
 $ a: symbol a
 $ b: symbol b
 - attr(*, "env")=<environment: 0x55ccfe11b7c0> 
 - attr(*, "class")= chr "quoted"

[[2]]
List of 1
 $ c: symbol c
 - attr(*, "env")=<environment: 0x55ccfe11b7c0> 
 - attr(*, "class")= chr "quoted"

[[3]]
 list()
 - attr(*, "env")=<environment: 0x55ccfe11b7c0> 
 - attr(*, "class")= chr "quoted"

[Package reshape2 version 1.4.4 Index]