Data Description
Class examples and student activities will become a substantial portfolio, and should be completed and organized for your own future reference.
Lecture note | Class activities | Student activities |
Data Description (Revised 08/30/2022) | Data sets:
Tenderness of pork,
Health Exam Results for Females
R code examples: cooling.R, FHEALTH.R |
Practice problem 1–3
Data sets: Material Strength, Tree Diameters, Diesel Generator Demands. R code examples: strength.R, tree.R, diesel.R. |
Get started with R. Install R and R Studio by following the instruction at the link.
First R code to run on R Studio. Download and save cooling.R along with data set cooling.txt in the same folder of your PC. Start R Studio. From the pull-down menu at the top, choose [File] then [Open File...], and select "cooling.R" from the folder you saved. Now under a new tab "cooling.R", move the mouse to [Run] and click the mouse. It executes one line at a time. When you execute the following line
cooling <- read.table(file.choose(), header=T)it opens a new window in which you must select the file "cooling.txt". Keep clicking the mouse until the end, and examine what you get.
© TTU Mathematics