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

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Menu
Top