STA130H1 Chapter Notes - Chapter 1-3: Imaginary Number, Decimal Mark
108 views2 pages
![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
An atomic vector is just a simple vector of data. You can check whether an object is a vector with the command is. vector. If it is a vector, it returns true, otherwise false. You can also check the length of a vector with the length(vector_name) command. Atomic vectors are one dimensional and can only store one type of data. R can recognize six different types of atomic vectors: doubles, integers, characters, logicals, complex, and raw. A double vector can store any number, positive or negative, large or small. You can check the type of vector you"re working with by using the command typof(vector_name). The term doubles refers to the specific number of bytes your computer uses to store a number. Integer vectors only store integers, which are positive or negative numbers without a decimal point. To specifically create an integer, put a capital l after the number. Without the l, they will be stored as doubles/numerics.
Get access
Grade+
$40 USD/m
Billed monthly
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers