[R] '[' vs subset() behaviors when filtering a dataframe with NA values

2022-02-19 Thread Fabio D'Agostino
Hi All, I just have two questions since I did not understand the behavior of '[' vs the subset() function when filtering a dataframe that has NA values I was filtering a dataframe named 'weight' according to values of the column named 'weight_rec' ... str(weight) 'data.frame': 17307 obs. of 6 v

Re: [R] Why does the print method fail for very small numbers?

2022-02-19 Thread Helmut Schütz
Hi Marius, as others already noted, you request something which is beyond the numeric resolution. That's also elaborated in the famous FAQ 7.31 (https://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f). As you know - according to IEEE 754 a binary in d