Question
someone please help with R
Cengage Credit Suisse Security Most visited Getting Started DataCamp Course Outline Exercise script You can also select an en
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Extracting data from the dataframe in R language is easy. We have to make use of default methods in a better way.

#Returns third row with all columns
stocks[3,]

#Fourth and fifth row of ibm column
stocks[4:5, "ibm"]

#apple and micr columns using c() inside the brackets.

stocks[, c("apple","micr")]

Feel free to ask any doubts, if you face any difficulty in understanding.

Please upvote the answer if you find it helpful

Add a comment
Know the answer?
Add Answer to:
someone please help with R Cengage Credit Suisse Security Most visited Getting Started DataCamp Course Outline...
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
ADVERTISEMENT