06.09.2021 Views

Learning Statistics with R - A tutorial for psychology students and other beginners, 2018a

Learning Statistics with R - A tutorial for psychology students and other beginners, 2018a

Learning Statistics with R - A tutorial for psychology students and other beginners, 2018a

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• Basic comm<strong>and</strong>s. WetalkedabitaboutthelogicofhowR works <strong>and</strong> in particular how to type<br />

comm<strong>and</strong>s into the R console (Section 3.2), <strong>and</strong> in doing so learned how to per<strong>for</strong>m basic calculations<br />

using the arithmetic operators +, -, *, / <strong>and</strong> ^. (Section 3.3)<br />

• Introduction to functions. We saw several different functions, three that are used to per<strong>for</strong>m numeric<br />

calculations (sqrt(), abs(), round(); Section 3.5), one that applies to text (nchar(); Section 3.8.1),<br />

<strong>and</strong> one that works on any variable (length(); Section 3.7.5). In doing so, we talked a bit about<br />

how argument names work, <strong>and</strong> learned about default values <strong>for</strong> arguments. (Section 3.5.1)<br />

• Introduction to variables. We learned the basic idea behind variables, <strong>and</strong> how to assign values to<br />

variables using the assignment operator

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!