Deepika D. answered 07/15/20
High School+ Tutor, Specializing in Mathematical Subjects
One option is using a for loop. This way you can reiterate the same functions over multiple datasets. Another is doing something along the lines of the following:
Say you have Table1 and Table2 and want to make histograms of each table. You can do something like this:
dat <- table1
names(dat)
table(dat)
hist(dat)
Then if you want to run these commands on table2, you can just change the first like to dat <- table2.