How to Apply the alist() Function in R (Example Code)
In this R tutorial you’ll learn how to create an alist object using the alist() function.
Example: Creating a List of Function Arguments Using the alist() Command
my_out <- alist(x1 = , # Constructing alist object in R x2 = , x3 = 3, x1 + x2 / x3) my_out # Displaying alist object in RStudio console # $x1 # # # $x2 # # # $x3 # [1] 3 # # [[4]] # x1 + x2/x3 |
my_out <- alist(x1 = , # Constructing alist object in R x2 = , x3 = 3, x1 + x2 / x3) my_out # Displaying alist object in RStudio console # $x1 # # # $x2 # # # $x3 # [1] 3 # # [[4]] # x1 + x2/x3