You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"section": "Which to use? Native pipe or old-school pipe?",
4543
-
"text": "Which to use? Native pipe or old-school pipe?\n\n\nThe native pipe |> is the future. I’ll be using it throughout.\nThe magrittr %>% works fine. You can use it if you llike to."
4557
+
"text": "Which to use? Native pipe or old-school pipe?\n\n\nThe native pipe |> is the future. I’ll be using it throughout.\nThe magrittr %>% works fine. You can use it if you like to."
<spanid="cb32-5"><a></a><spanclass="at">label =</span><spanclass="fu">glue</span>(<spanclass="st">"R^2 = {rsqr}, P = {pval}"</span>),</span>
590
-
<spanid="cb32-6"><a></a><spanclass="at">body_mass_g =</span><spanclass="dv">6400</span>, <spanclass="at">flipper_length_mm =</span><spanclass="dv">175</span><spanclass="co"># label position in plot</span></span>
<spanid="cb32-10"><a></a>label_data</span></code><buttontitle="Copy to Clipboard" class="code-copy-button"><iclass="bi"></i></button></pre></div>
585
+
<divclass="sourceCode cell-code" id="cb32"><preclass="sourceCode numberSource r number-lines code-with-copy"><codeclass="sourceCode r"><spanid="cb32-1"><a></a><spanclass="co"># Reminder: summary of the model fits</span></span>
586
+
<spanid="cb32-2"><a></a>lm_summary</span></code><buttontitle="Copy to Clipboard" class="code-copy-button"><iclass="bi"></i></button></pre></div>
587
+
<divclass="cell-output cell-output-stdout">
588
+
<pre><code># A tibble: 3 × 13
589
+
species r.squared adj.r.squared sigma statistic p.value df logLik AIC
<divclass="sourceCode cell-code" id="cb34"><preclass="sourceCode numberSource r number-lines code-with-copy"><codeclass="sourceCode r"><spanid="cb34-1"><a></a><spanclass="co"># Turn R^2 and p value into labels</span></span>
<divclass="sourceCode cell-code" id="cb36"><preclass="sourceCode numberSource r number-lines code-with-copy"><codeclass="sourceCode r"><spanid="cb36-1"><a></a><spanclass="co"># Add label position in the plot</span></span>
<spanid="cb36-6"><a></a><spanclass="at">label =</span><spanclass="fu">glue</span>(<spanclass="st">"R^2 = {rsqr}, P = {pval}"</span>),</span>
634
+
<spanid="cb36-7"><a></a><spanclass="at">body_mass_g =</span><spanclass="dv">6400</span>, <spanclass="at">flipper_length_mm =</span><spanclass="dv">175</span><spanclass="co"># label position in plot</span></span>
0 commit comments