Chapter 15 Acknowledgements
15.1 Image Sources
Rat sketch by Gordon Johnson from Pixabay, Creative Commons 0 license.
Lightbulb icon by OpenClipart-Vectors from Pixabay, Creative Commons 0 license
Books icon by OpenClipart-Vectors from Pixabay, Creative Commons 0 license
I stole the wonderful Warnings and Errors infographic from Rex-analytics
15.2 Specific Acknowledgements
Ian Handel fixed the CSS, and also got me to delete Minitab from my laptop in 2016 in favour of RStudio. Thanks Ian!
Footnotes might contain something useful - or something silly. I guess you’ll need to click it to see! But remember, you can’t trust me implicitly - or anyone really↩︎
If you’re reading this as part of your coursework you might be panicking about plagiarism here, after all, we spend a lot of time telling you plagiarism is the worst thing you could ever do and that we’ll use software to detect it. Code is a bit different. We are always trying to find the most efficient way of doing something, and so ideally you would all write code that was identical. Sadly, humans naturally differ in the way the think about problems. My job would be a lot easier if everybody thought the same. If I have set you this book as reading, I can swear to you I will never put your code through a plagiarism checker. That would be very stupid.↩︎
‘Default’ here means one you won’t need to install or load into the library↩︎
If its not working - are you sure you have spelled it with a capital
View
?↩︎The Length of these variables is the number of rows in each one, which for this case is the same for each variable because this is a nice, tidy dataset↩︎
A factor is also called a categorical variable, or a grouping variable. If you’re not sure you know what a factor is, wiki is a good place to review↩︎
is.character(y)
should give you an error message likeError: object 'y' is not found
becausey
by itself does not exist in your environment. There’s a way around this by ‘attaching’ data to your environment, which is a bit old fashioned and can result in problems down the line with your workflow (because you won’t necessarily know if the person you’re working with has also attached the data), so I recommend against it.is.character(dat::y)
should give you an error likeError in loadNamespace(name) : there is no package called 'dat'
. Unsurprisingly, this is telling you that the::
sequence tells R to look inside a package for a thing calledy
, but that package doesn’t exist. Packages and data frames are different things.↩︎I like
nord
so much its the colour scheme for this book↩︎The hinges are actually calculated based on the
boxplot.stats
function which is a little more complicated than 95% of the data - but if you ever need to worry about this you have gone beyond what this book can teach you.↩︎This section is nearly wholly stolen from David Robinson↩︎
or web search of your choice↩︎