STA130H1 Chapter Notes - Chapter 1-3: Statistical Model, Data Type
![STA130H1 Full Course Notes](https://new-docs-thumbs.oneclass.com/doc_thumbnails/list_view/2213763-class-notes-ca-utsg-sta130h1-lecture6.jpg)
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