Given a variable foothat is a quote
foo
foo = quote(1+2) class(foo) # [1] "call"
I want to extract a string "1+2". How?
"1+2"
PS: as.character(foo)just giving me the components.
as.character(foo)
We can use deparse
deparse
deparse(foo) #[1] "1 + 2"
Source: https://habr.com/ru/post/1624460/More articles:How do you safely parse untrusted input in Common Lisp? - securityThe initial loading of all pages is slow after assembly - c #OCaml Bytecode Portability - endiannessКак добавить значение к существующему ключу - javaIs it possible to determine the length of a list in F #? - arraysAWS Lambda to access EC2 with appropriate security group settings - amazon-web-servicesEfficiency int [,] Arrays versus Dictionary <> for constant updates - performanceFailed to connect to local server in Xcode - node.jsWhen does the Docker Image Cache invalidate? - dockerGolang communicates with LDAP - goAll Articles