Welcome to the PSYC3361 coding W1 self test. The test assesses your ability to use the coding skills covered in the Week 1 online coding modules.
In particular, it assesses your ability to…
It is IMPORTANT to document the code that you write so that someone who is looking at your code can understand what it is doing. Above each chunk, write a few sentences outlining which packages/functions you have chosen to use and what the function is doing to your data. Where relevant, also write a sentence that interprets the output of your code.
Your notes should also document the troubleshooting process you went through to arrive at the code that worked.
For each of the challenges below, the documentation is JUST AS IMPORTANT as the code.
Good luck!!
Jenny
Loading tidyverse into the workspace, allowing for data cleaning/anaylsis
set frames as name of data being read? - q - can we use different names is that fine? - once set put frames into console to do stuff
summarise based on category, twins and singletons - attempted to use group by then filter - consistent error - unable to find singleton? - removed filter by - just group by – IT WORKED???!!! - looks like group by selects ‘columns’ - and will automatically create more categories based on those columns.
normal maths dictates that this follows the min + max function? q - is there a min/max function in tidyverse YES - use min/max function as per summarise
Group by is useful as it allows you to choose which data should be sorted. If you have a :sparkle: massive :sparkle: data files.
I used this source R Markdown: The Definitive Guide