Skip to content
Prev 391071 / 398513 Next

Naming files within R code

A different approach is to give names to the list elements and use a
shorter name for the list.
Then the code looks close to what you want without actually changing
its structure.

names(riverlist) <- c("tay","forth","don")
l <- riverlist
print(l$tay[,1])

HTH,
Eric
On Mon, Mar 21, 2022 at 12:53 AM Rui Barradas <ruipbarradas at sapo.pt> wrote: