Fun
Only logged in members can reply and interact with the post.
Join SimilarWorlds for FREE »

The beauty of R. It recognized both the British and American spelling.

summary_temp <- weather %>%
🇺🇸summarize(mean = mean(temp, na.rm = TRUE),
std_dev = sd(temp, na.rm = TRUE))
summary_temp
summary_temp <- weather %>%
🇬🇧summarise(mean = mean(temp, na.rm = TRUE),
std_dev = sd(temp, na.rm = TRUE))
summary_temp

> summary_temp
# A tibble: 1 x 2
mean std_dev
<dbl> <dbl>
1 55.3 17.8
> summary_temp
# A tibble: 1 x 2
mean std_dev
<dbl> <dbl>
1 55.3 17.8
adorbz · 26-30, F
@Riemann I have no idea what’s going on here 👀
Riemann · 31-35, M
@adorbz Trying to get summary temperature of weather from a data set. Looking for mean and standard deviation.
What I highlighted here with the flags that, summarize and summarise, both are recognized by the programming language R. :) ❤️
adorbz · 26-30, F
@Riemann ooooooooh ohhhhhh I see that now. That’s cool 🥺 americans being inclusive to brits for once 🥺🥺🥺
Elessar · 26-30, M
I want a programming language in Latin 🌝

filum Concatenatio(filum a, filum b) => a + b;
Riemann · 31-35, M
@Elessar Beautiful idea.
Nanori · F
@Riemann 🤦‍♀️
This message was deleted by its author.
Beatbox34 · 31-35, M
My compiler crashed watching your code run in doggo mode
Riemann · 31-35, M
@Beatbox34 He programme
Beatbox34 · 31-35, M
@Riemann [image deleted]
Smart doggo
JoyfulSilence · 46-50, M
What is a tibble?

I had to learn a little R once for a class. But I mostly just modified existing code. Later, I had to learn enough to be able to read somebody's code and have a little sense of what it did. But I still cannot just create something from scratch. I just do not know enough yet.
Riemann · 31-35, M
@JoyfulSilence Like your user name tbh

Copied this from Rstudio:

tibble() constructs a data frame. It is used like base::data.frame(), but with a couple notable differences:

The returned data frame has the class tbl_df, in addition to data.frame. This allows so-called "tibbles" to exhibit some special behaviour, such as enhanced printing. Tibbles are fully described in tbl_df.

tibble() is much lazier than base::data.frame() in terms of transforming the user's input. Character vectors are not coerced to factor. List-columns are expressly anticipated and do not require special tricks. Column names are not modified.

tibble() builds columns sequentially. When defining a column, you can refer to columns created earlier in the call. Only columns of length one are recycled.

If a column evaluates to a data frame or tibble, it is nested or spliced. See examples.

tibble_row() constructs a data frame that is guaranteed to occupy one row. Vector columns are required to have size one, non-vector columns are wrapped in a list.
JoyfulSilence · 46-50, M
@Riemann Thanks for liking my name.

I remember yours from math classes.

Thanks for the info on tibbles. I did not understand it all. Also, I am at the beginning of a four day weekend, it is 8 AM, and I have been up since 4 AM. My brain does not work well now and does not wish to. In fact, I think I need to log off and go back to bed!
Riemann · 31-35, M
@JoyfulSilence Hope to talk soon fam.
Riemann · 31-35, M
@Nanori Non, not smart enough
😎
SW-User
Where is the British in this?
Riemann · 31-35, M
@SW-User Next to the flag

 
Post Comment