I have this reproducible set up.
temp <- tempfile()
download.file("https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip",temp)
datafiles <- unzip(temp)
unlink(temp)
Printing datafiles
gives a range of txt files.
I can manually merge them by...
mdataset = merge(mydata1.txt, mydata2.txt)
mdataset = merge(mydataset, mydata3.txt)
.
.
.
mytempdata = merge(mytempdata, mydata20.txt)
But this would take a while, and I would rather do it more efficiently.
How would I do this (elegantly)?