STA130H1 Chapter Notes - Chapter 1-3: Statistical Model, Data Type

97 views2 pages
30 Sep 2018
School
Department
Course
Professor
yifanyang and 40045 others unlocked
STA130H1 Full Course Notes
23
STA130H1 Full Course Notes
Verified Note
23 documents

Document Summary

Changing the dimension of your object does not change the type of object, but it changes the class attribute. R adds the class attribute to die when the dimensions of a matrix is changed. Sys. time returns the current time on your computer. It looks like a character string but its actually a double, and its class is called posixct and posixt). When you unclass now, you get a number that represents the number of seconds after jan 1st. Factors are used to store categorial data such as eye color, ethnicity, and other groups that have no numerical value/cannot do mathematical operations with. Pass an atomic vector using the vector function into a variable to create a factor. Example: gender

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents