Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started