Question: Suppose that the option header=FALSE is an error when an object is imported. Write appropriate codes which bring up the right variable names and deletes
Suppose that the option header=FALSE is an error when an object is imported. Write appropriate codes which bring up the right variable names and deletes the wrong observations too. For example, suppose that the chest data is inappropriately imported with chest <-read. csv ("Chest_VH. csv",header=FALSE). A simple use of names(chest) <- chest[1,] and chest <- chest[-1,] will not fix the problem.
Step by Step Solution
3.42 Rating (165 Votes )
There are 3 Steps involved in it
The appropriate codes ... View full answer
Get step-by-step solutions from verified subject matter experts
