You should see the Packages tab there; click on that sucker.
#SundayStats
You should see the Packages tab there; click on that sucker.
#SundayStats
bsky.app/profile/exce...
bsky.app/profile/exce...
As ever, we are working from Navarro's Learning Statistics with R, which you can find here:
learningstatisticswithr.com/03-introR.ht...
As ever, we are working from Navarro's Learning Statistics with R, which you can find here:
learningstatisticswithr.com/03-introR.ht...
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
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.
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
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
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
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.
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.
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
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
The second half will introduce three new kinds of variables: factors, data frames and formulas. #SundayStats
The second half will introduce three new kinds of variables: factors, data frames and formulas. #SundayStats
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
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
This means that when you loaded the package "psych", it 'masked' the function "logit" from the package "car".
#SundayStats
This means that when you loaded the package "psych", it 'masked' the function "logit" from the package "car".
#SundayStats
We're sticking with Navarro's examples, as she extends them over the whole chapter. #SundayStats
We're sticking with Navarro's examples, as she extends them over the whole chapter. #SundayStats
As ever, we are working together through Navarro's Learning Statistics with R:
learningstatisticswithr.com/03-introR.ht...
As ever, we are working together through Navarro's Learning Statistics with R:
learningstatisticswithr.com/03-introR.ht...
bsky.app/profile/exce...
We're working from Navarro's Learning Statistics with R here: learningstatisticswithr.com/02-studydesi...
bsky.app/profile/exce...
We're working from Navarro's Learning Statistics with R here: learningstatisticswithr.com/02-studydesi...
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
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
(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
(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
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
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
bsky.app/profile/exce...
bsky.app/profile/exce...
We're working from Navarro's Learning Statistics with R here: learningstatisticswithr.com/02-studydesi...
bsky.app/profile/exce...
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
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
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
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