Question

Consider a data frame named "a" with 4 rows and 3 columns populated with positive integers...

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.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

A data.frame: 4 x 3 Mazda RX4 Mazda RX4 Wag Datsun 710 am gear carb <db> <db> <db> -1 4 4 -1 4 4 -1 4 -1 0 3 -1 Hornet 4 Driv

Add a comment
Know the answer?
Add Answer to:
Consider a data frame named "a" with 4 rows and 3 columns populated with positive integers...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT