Retrieve customer information

Here is a list I created for a customer

John <- list(“custidid“ = 9, “age” = 24, “items” = c(“Grossary”, “Electronic”))

can I get to retrieve his items?

Do you mean like this?

John <- list("custidid" = 9, "age" = 24, "items" = c("Grossary", "Electronic"))
JohnItems <- John$items
JohnItems[2]
#> [1] "Electronic"

Created on 2020-04-26 by the reprex package (v0.3.0)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.