#SundayStats
Running #SundayStats a little late this morning-- AM errands! We'll likely start more like 11:30am/noon EST.
November 22, 2026 at 2:17 PM
THAT'S IT! WE HAVE FINISHED CHAPTER THREE!

Celebrate with the method of your choosing. #SundayStats
Nick Miller's Superstar Jump
Alt: Nick Miller's Superstar Jump (from New Girl)
static.klipy.com
November 22, 2026 at 5:12 PM
OK now that you've opened RStudio, go to the menu in the middle-right-hand of the page.

You should see the Packages tab there; click on that sucker.

#SundayStats
November 22, 2026 at 5:49 PM
You can also find ALL the #SundayStats threads beginning here, if you'd like to play catch-up.

bsky.app/profile/exce...
Master thread of #SundayStats threads! Bookmark for later ❤️
November 22, 2026 at 4:28 PM
OK getting ready to start #SundayStats! Treats have been acquired; meds have been filled. We are done with our errands and ready to go ✨

As ever, we are working from Navarro's Learning Statistics with R, which you can find here:
learningstatisticswithr.com/03-introR.ht...
3  Getting started with R – Learning Statistics with R
learningstatisticswithr.com
November 22, 2026 at 4:28 PM
We can use a 'not' in there as well:

months[stock_levels != "high"]

This reads, during what month(s) are stock levels NOT high?

(Reminder: we covered operators like this here: bsky.app/profile/exce...)

#SundayStats
You can use the GREATER THAN operator the same way.

There is also a ✨GREATER OR EQUAL TO / LESS THAN OR EQUAL TO✨ operator:

100 <= 100

TRUE
it is true that 100 is less than OR equal to 100.

There's also the ✨NOT EQUAL TO✨ operator:

2 + 2 != 5

TRUE
2+2 is NOT 5; that's right.
November 22, 2026 at 5:00 PM
As a reminder, we are here:

We've finished the Background section, and we're halfway through An introduction to R. After Chapter 4, this chapter, we will begin Working with data.

#SundayStats
November 22, 2026 at 5:27 PM
Many of these are so commonly used that I've loaded the majority of these, myself.

And that's it for #SundayStats this week, y'all! You've done great.

We're up to 4.3 Managing the workspace for next time!

See you then, around 10am EST.
November 22, 2026 at 6:41 PM
Importantly, there are two things you must do with a package in order to use it.

A package must be ✨installed✨ before it can be loaded onto R.

A package must be ✨loaded✨ onto R before it can be used.

#SundayStats
November 22, 2026 at 5:38 PM
The first half of this chapter is about the “mechanics” of R: installing and loading packages, managing the workspace, navigating the file system, and loading and saving data.

The second half will introduce three new kinds of variables: factors, data frames and formulas. #SundayStats
November 22, 2026 at 5:28 PM
✨3.11.5 Applying logical operations to text✨

Previously, we covered vectors that use 'logicals', where the output is either TRUE or FALSE, or a string of true-false responses, when you're applying the same question to a string of elements.

Now we're applying the same to text. #SundayStats
November 22, 2026 at 4:31 PM
It will tell you very explicitly when you load the package what function has been masked from where;

This means that when you loaded the package "psych", it 'masked' the function "logit" from the package "car".

#SundayStats
November 22, 2026 at 6:24 PM
We can have text as our output too, if we like.

We're sticking with Navarro's examples, as she extends them over the whole chapter. #SundayStats
November 22, 2026 at 4:52 PM
This means your most recent package 'overwrote' the function used by the other package: now if you use that function, you 'mean' it in the sense the most recent package does! #SundayStats
November 22, 2026 at 6:22 PM
Waiting for folks to catch up, and grabbing a beverage ✨

#SundayStats 🌞
November 15, 2026 at 4:13 PM
Good morning! We are about to start #SundayStats. It's dark and cold out, but we are persevering!

As ever, we are working together through Navarro's Learning Statistics with R:

learningstatisticswithr.com/03-introR.ht...
3  Getting started with R – Learning Statistics with R
learningstatisticswithr.com
November 15, 2026 at 3:08 PM
Or find all the #SundayStats threads here:

bsky.app/profile/exce...
Ok! Let's get started. 11:30am - 1:30pm ET today for #SundayStats!

We're working from Navarro's Learning Statistics with R here: learningstatisticswithr.com/02-studydesi...
November 15, 2026 at 5:12 PM
Or find all the #SundayStats threads here:

bsky.app/profile/exce...
Ok! Let's get started. 11:30am - 1:30pm ET today for #SundayStats!

We're working from Navarro's Learning Statistics with R here: learningstatisticswithr.com/02-studydesi...
November 15, 2026 at 5:12 PM
✨3.10 Storing text data✨

We're opening up the world of R a wee bit. Up to now, all our variables have equaled numerical values. But R also allows you to identify variables as words or letters!

We call these a ✨CHARACTER STRING✨. Character strings are always enclosed by quotation marks #SundayStats
November 15, 2026 at 3:44 PM
Here's an example of using the OR function:

(2 + 2 == 4) | (2 + 2 == 5)

In the common tongue, this reads, "check if 2 + 2 = 4 OR 2 + 2 = 5."

Since at least one of these propositions is true, R should return TRUE.

#SundayStats
November 15, 2026 at 4:38 PM
(Just a reminder to have R and/or R Studio open so that you can see what you're doing... it can be very tempting just to read through, but I do recommend actually entering the commands and seeing what they produce; it's good practice!) #SundayStats
November 15, 2026 at 3:47 PM
This is what you should have gotten in R when you input that: TRUE as your answer.

We should certainly hope so, that 2 + 2 = 4.

== is called the ✨EQUALITY OPERATOR✨, and using it means you are ASKING R if it's TRUE.

#SundayStats
November 15, 2026 at 4:23 PM
You can find all the #SundayStats threads here and bookmark to follow along:

bsky.app/profile/exce...
Ok! Let's get started. 11:30am - 1:30pm ET today for #SundayStats!

We're working from Navarro's Learning Statistics with R here: learningstatisticswithr.com/02-studydesi...
November 15, 2026 at 5:13 PM
You can use the ✨EQUALITY OPERATOR✨ to quickly check your math:

3 * 3 + 4 * 4 == 5 * 5

(That's 9 + 16 = 25, and yes, it does; so your output should read TRUE.)

You can also use the ✨LESS THAN OPERATOR✨ the same way:

99<100

You'd better get an output of TRUE for that!

#SundayStats
November 15, 2026 at 4:27 PM
✨3.11.3 Storing and using logical data✨

By this time, it should come as no surprise that if you can define variables using numbers, and you can define them as character strings...

You can define whether a variable is TRUE or FALSE! This is termed ✨LOGICAL DATA✨

#SundayStats
November 15, 2026 at 4:47 PM