@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. :) ❤️
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.
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.
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!