title: What R package is the "Error" function in?
body: <p>I'm trying to call the <code>Error()</code> function but it says <code>could not find function "Error"</code>. I <a href="https://www.rdocumentation.org/packages/base/versions/3.4.3" rel="nofollow noreferrer">checked the docs</a> and Error does not seem to be a part of R base package. This is a very hard function to search for because "Error" is a very overloaded word. What package is Error() in? For context, I'm running an anova. I'm pretty sure that this isn't a user defined since I see multiple tutorials referencing it without defining.</p>
  
  <p>EDIT:
  Here are the tutorials:
  <a href="https://datascienceplus.com/two-way-anova-with-repeated-measures/" rel="nofollow noreferrer">https://datascienceplus.com/two-way-anova-with-repeated-measures/</a> , <a href="http://personality-project.org/r/r.guide/r.anova.html#withinone" rel="nofollow noreferrer">http://personality-project.org/r/r.guide/r.anova.html#withinone</a> (look at usages of Error() in within sujects/repeated measures anova)</p>
  
  <p>EDIT2:
  Here is the model answer from the tutorial. There does not seem to be any information about how the 'Error' function is defined or where it comes from:</p>
  
  <p>model &lt;- aov(wm$iq ~ wm$condition + Error(wm$subject / wm$condition))</p>