I have a problem with my data. I want to keep my data in one file. There are few csv files which I loaded into R.
> list_of_data
[1] "Weight.csv" "Lenght.csv" "Age.csv" "Place of Birth.csv"
[5] "Sex.csv" "Driver License.csv" "Nationality.csv"
In each of the file I have a single information about the patient:
Weight.csv:
Name Weight
Mark 76
Criss 82
Kate 61
Robb 80
Denis 72
Age.csv:
Name Age
Mark 19
Criss 17
Kate 24
Robb 33
Denis 23
I want to move all of the informations to one single matrix. So I created a new matrix:
data_mat <- matrix(0, nrow = 5,ncol = 7)
colnames(data_mat) <- c("Name", "Weight", "Lenght", "Age", "Place of Birth", "Sex", "Driver License", "Nationality")
rownames(data_mat) <- c("Mark", "Criss", "Kate", "Robb", "Denis")
I don't know how to tell R to find the information about the patient in other csv files and put them together in my new matrix. Any ideas ?