What's the R equivalent of progn in lisp?

wdkrnls

In lisp there is syntax to execute several expressions in sequence within function arguments. Given R's lispy origins, I'm wondering is there an equivalent feature in R? I'm imagining writing something like the following:

with(heat,
     do(qqnorm(loss), qqline(loss)))
Josh O'Brien

In R, brackets are used to group multiple statements in a "compound statement", which appears to be the role played by progn in Lisp. As with progn, all of the component statements are evaluated, but only the value of the final statement is returned.

with(mtcars, 
     {qqnorm(mpg); qqline(mpg)})

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Lisp / Scheme : Progn vs And

From Dev

What's the equivalent of `cons` in R?

From Dev

What is python's equivalent of R's NA?

From Dev

Scala way to write lisp-like progn?

From Dev

What is the equivalent of SQL's IN keyword in R?

From Dev

What is the R equivalent of matlab's csaps()

From Dev

Clojure's equivalent to Lisp's atom function

From Dev

What's Julia's equivalent named vector in R?

From Dev

Is there a straightforward lisp equivalent of Python's generators?

From Dev

Is there an equivalent of Python's __file__ in Emacs Lisp

From Dev

Is there an equivalent of Common Lisp's push in Racket?

From Dev

What is the R equivalent of SQL's "LIKE '%searched_word%'"?

From Dev

What is the equivalent to Stata's portmanteau (Q) test for white noise in R?

From Dev

What is the equivalent to Stata's portmanteau (Q) test for white noise in R?

From Dev

Emacs Lisp's equivalent of JavaScript's RegExp#exec

From Dev

Emacs Lisp's equivalent of JavaScript's RegExp#exec

From Dev

What is the Common Lisp equivalent of the Scheme default-object?

From Dev

What is the Common Lisp equivalent of the Scheme default-object?

From Dev

What is CompletableFuture's equivalent of flatMap?

From Dev

What's the equivalent to Unwrap for a ConfiguredTaskAwaitable?

From Java

What's NSLocalizedString equivalent in Swift?

From Dev

What's the equivalent to $SAFE=4?

From Dev

What's the equivalent of finally in Swift

From Dev

What's the boost::phoenix equivalent of this?

From Dev

What is the equivalent of python's _ in javascript?

From Dev

What's the equivalent of sudo in msys?

From Dev

What's equivalent of BasicTeX in Ubuntu?

From Dev

What's the equivalent to loadNibNamed in Swift

From Dev

What is the clojure equivalent for Haskell's <-?

Related Related

  1. 1

    Lisp / Scheme : Progn vs And

  2. 2

    What's the equivalent of `cons` in R?

  3. 3

    What is python's equivalent of R's NA?

  4. 4

    Scala way to write lisp-like progn?

  5. 5

    What is the equivalent of SQL's IN keyword in R?

  6. 6

    What is the R equivalent of matlab's csaps()

  7. 7

    Clojure's equivalent to Lisp's atom function

  8. 8

    What's Julia's equivalent named vector in R?

  9. 9

    Is there a straightforward lisp equivalent of Python's generators?

  10. 10

    Is there an equivalent of Python's __file__ in Emacs Lisp

  11. 11

    Is there an equivalent of Common Lisp's push in Racket?

  12. 12

    What is the R equivalent of SQL's "LIKE '%searched_word%'"?

  13. 13

    What is the equivalent to Stata's portmanteau (Q) test for white noise in R?

  14. 14

    What is the equivalent to Stata's portmanteau (Q) test for white noise in R?

  15. 15

    Emacs Lisp's equivalent of JavaScript's RegExp#exec

  16. 16

    Emacs Lisp's equivalent of JavaScript's RegExp#exec

  17. 17

    What is the Common Lisp equivalent of the Scheme default-object?

  18. 18

    What is the Common Lisp equivalent of the Scheme default-object?

  19. 19

    What is CompletableFuture's equivalent of flatMap?

  20. 20

    What's the equivalent to Unwrap for a ConfiguredTaskAwaitable?

  21. 21

    What's NSLocalizedString equivalent in Swift?

  22. 22

    What's the equivalent to $SAFE=4?

  23. 23

    What's the equivalent of finally in Swift

  24. 24

    What's the boost::phoenix equivalent of this?

  25. 25

    What is the equivalent of python's _ in javascript?

  26. 26

    What's the equivalent of sudo in msys?

  27. 27

    What's equivalent of BasicTeX in Ubuntu?

  28. 28

    What's the equivalent to loadNibNamed in Swift

  29. 29

    What is the clojure equivalent for Haskell's <-?

HotTag

Archive