STA130H1 Chapter Notes - Chapter 1-3: Imaginary Number, Decimal Mark
108 views2 pages
yifanyang and 40045 others unlocked
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+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers