Question

• Create a list containing 3 vectors: your favorite food (at least 4), your expected grade at the two midterms and the final. Using the previous list, create a new list just with the grades and the food. • Compute the median and the class of each ve Use R language pls

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

Answer:

list_data <- list(c("Noodles","friderice","biryani","chicken"),c(80,90,70,94),c(as.Date("6aug2005","%B%d%Y"),as.Date("11jan2006","%B%d%Y"),(as.Date("3feb1996","%B%d%Y"),as.Date("5sep2001","%B%d%Y"));
names(list_data) <- c("food", "grades", "DOB");

new_list1<-list(list_data$grades,list_data$DOB);

new_list2<-list(list_data$grades,list_data$food);

m<-c(median(list_data$food),median(list_data$grades),median(list_data$DOB));

cls<-c(class(list_data$food),class(list_data$grades),class(list_data$DOB));

Add a comment
Know the answer?
Add Answer to:
Use R language pls • Create a list containing 3 vectors: your favorite food (at least...
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