Question: Consider a data frame named a with 4 rows and 3 columns populated with positive integers and -1, where -1 denotes a missing value. Write

Consider a data frame named "a" with 4 rows and 3 columns populated with positive integers and -1, where -1 denotes a missing value. Write an R command that replaces each -1 with NA.

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!