Question

On January 23, 2017, the high and low temperatures (Celsius) were recorded for six European cities....

  1. On January 23, 2017, the high and low temperatures (Celsius) were recorded for six European cities. Barcelona: 14 and 6; Berlin: 2 and -1; Lisbon: 14 and 3; London: 5 and 0; Paris: 2 and -3; and Rome: 14 and 3. Create a data frame organizing this information for all six cities. Name the data frame H1_1 and the three variables City, High, and Low. This is to be in R.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

> a = c("Barcelona","Berlin","Lisbon","London","Paris","Rome")
> b = c(14,2,14,5,2,14)
> c = c(6,-1,3,0,-3,3)

> H1_1 =data.frame(City = a, High = b,Low = c)
> H1_1

City High Low
1 Barcelona 14 6
2 Berlin 2 -1
3 Lisbon 14 3
4 London 5 0
5 Paris 2 -3
6 Rome 14 3

Add a comment
Know the answer?
Add Answer to:
On January 23, 2017, the high and low temperatures (Celsius) were recorded for six European cities....
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