Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do logical vectors in RStudio View mode not show length?

Tags:

r

rstudio

Of the basic vector types, is there any special reason why the logical does not show its length?

View(list(1:10, rep(NA, 10), rep(1.0, 10), rep('x', 10)))

View

like image 605
plant Avatar asked Feb 20 '19 11:02

plant


People also ask

What does true and false mean in R?

Details. TRUE and FALSE are reserved words denoting logical constants in the R language, whereas T and F are global variables whose initial values set to these. All four are logical(1) vectors.

When logical values get coerced into numeric What values do true and false take?

You may also be aware that where numeric values are coerced into logical values, 0 is FALSE and anything else is TRUE (unless it is missing).


1 Answers

This is indeed a bug: thanks for filing an issue (https://github.com/rstudio/rstudio/issues/4347). This will be fixed in the next release of RStudio (v1.2).

like image 141
Kevin Ushey Avatar answered Nov 03 '22 05:11

Kevin Ushey