Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (436)
Testing (4)
Tools (488)
Twitter (5)
Wearable (26)
Web Design (44)
Collections:
Other Resources:
Data Frame Example - "cars"
What is the Data Frame Example, "cars"?
✍: FYIcenter.com
"cars" is a built-in data frame example in R environment.
"cars" has two columns: "speed" and "dist".
Each row records an instance of the stopping distance of
a car driving at a given speed.
Note that the data were recorded in the 1920s.
1. Basic info on "cars":
> cars speed dist 1 4 2 2 4 10 3 7 4 4 7 22 5 8 16 6 9 10 ... > typeof(cars) [1] "list" > dim(cars) [1] 50 2
2. Get some statistics on "cars":
> mean(cars[[1]]) [1] 15.4 > mean(cars[, "speed"]) [1] 15.4 > mean(cars[[2]]) [1] 42.98 > max(cars[[2]]) [1] 120 > max(cars[, "dist"]) [1] 120
2023-05-31, ∼1708🔥, 0💬
Popular Posts:
I have an Apple iPad Air Model MD788C/A. Is it good? Yes. Apple iPad Air Model MD788C/A is a very go...
What are URL:sfb and URL:lync15 Protocols? URL:sfb and URL:lync15 protocols are special network prot...
How to start to troubleshoot my Actiontec GT784WNV Modem? I am not able to access Internet. If you a...
What are control codes used in Microsoft Word that can be used in the Find and Replace command? Here...
What is "Microsoft Access Outlook Add-in for Data Collection and Publishing" COM Add-in in Outlook 2...