PSYC 202 Chapter 1-3: Software Guide Summary Weeks 1-3

42 views10 pages

Document Summary

In cells b1 & b2, enter the number 2. In cell b3, enter the formula =b1+b2, which adds together the contents of cells b1 & b2: dividing (=b1/b2) and multiplying (=b1*b2) the numbers, and raising one to the power of the other (=b1^b2). Working with vectors: we can also compute quantities such as the sum (=sum(b1:b7)) or minimum value (=min(b1:b7)) of a vector. Fi(cid:396)st, (cid:272)(cid:396)eate a (cid:374)e(cid:449) (cid:448)a(cid:396)ia(cid:271)le (cid:858)apple(cid:859) a(cid:374)d assig(cid:374) it the (cid:448)alue (cid:1006) The(cid:374) (cid:272)(cid:396)eate a (cid:374)e(cid:449) (cid:448)a(cid:396)ia(cid:271)le (cid:858)pie(cid:859) a(cid:374)d assig(cid:374) it the (cid:448)alue (cid:1009) Now we can manipulate some of the variables. If you want to raise something to the e(cid:454)po(cid:374)e(cid:374)t, use the (cid:858)^(cid:859) s(cid:455)(cid:373)(cid:271)ol. Working with vectors: a vector is created in r using the function c(, > julie=c(3. 2,4. 1,5. 5,6. 2,7. 1,8. 4,9. 5, to see what is a variable, just type its name, > julie. [1] 3. 2 4. 1 5. 5 6. 2 7. 1 8. 4 9. 5: to access a particular entry in the vector, use square brackets at the end of the name.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents