This page is a permanent link to the reply below and its nested replies. See all post replies 禄
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.
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.
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!
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.