Message-ID: <CABxY9BPHrObmrUZ80QxATSSzigohnwQFLRfd7cmXHQxuqfRE4w@mail.gmail.com>
Date: 2022-03-20T22:02:53Z
From: Nick Wray
Subject: Naming files within R code
Hello I have data from various Scottish river catchments in the form of
csv files. I want to be able to download the files in turn and refer to
each one by an assigned name from a vector of names, but within R. So, for
example, if my vector of names is c("tay","forth","don") I want to tell R
to refer to the sequences of dataframes as a variable name, ie the table
uploaded from the first csv becomes the object tay *within* R and so on, so
that I could the do things like write print(tay[,1]) etc,rather than having
to refer to a list eg print(riverlist[[1]][,1]) I don't know whether this
is possible but if it is I'd be grateful for any pointers
Thanks, Nick Wray
[[alternative HTML version deleted]]