Question: R coding (4.6 from Introduction to Scientific Programming and Simulation Using R) Here are the first few lines of two files ID Age 1 18

R coding (4.6 from Introduction to Scientific Programming and Simulation Using R)

Here are the first few lines of two files

ID Age

1 18

2 19

3 17 ....

ID Num Teeth

1 28

2 27

3 32

Write a program in R to read each file then write an amalgamated list of the following form:

ID Age Num Teeth

1 18 28

2 19 27

3 17 32

The function should read in two file names as strings and output a table. The ID (first column) should match between the data set. Produce an NA when a subject appears in one data set and not in the other.

function(file1, file 2)

{

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!