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
This page is a permanent link to the reply below and its nested replies. See all post replies 禄
JoyfulSilence46-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.
Riemann31-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.
JoyfulSilence46-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!
Riemann31-35, M
@JoyfulSilence Hope to talk soon fam.