Hi dear R-Studio Community,
I have noticed the following odditiy recently: When I am changing the data type of columns in my data.frame the "click to view" option dissappears from the data.frame in the global enviroment, along with the icon next to the data.frame and the byte information. This however apparently only happens with data.frames of a certain length.
Note: I work within a R-Project and the data.frames are created based on a .csv I read in.
Note: I am using the following version, both having recently upgraded the Studio and R version itself.
system x86_64, mingw32
svn rev 76424
version.string R version 3.6.0 (2019-04-26)
nickname Planting of a Tree
I have created the following example data to demonstrate only how it looks like to me, not how it is produced:
set.seed(40) ID_1 <- as.character(seq(1:20)) Trial_1 <- rbinom(ID_1, 1, 0.5) Data_1 <- data.frame(ID_1, Trial_1) set.seed(40) ID_2 <- as.character(seq(1:100)) Trial_2 <- rbinom(ID_2, 1, 0.5) Data_2 <- data.frame(ID_2, Trial_2)
Data_2 has no option for click to view on my side and appears as described above.
If you would like to repoduce it for yourself, this code addition basically produces the odditiy I described.
write.csv(Data_1, "Data_1.csv", row.names = FALSE) write.csv(Data_2, "Data_2.csv", row.names = FALSE) Data_1_fromCSV <- read.csv("Data_1.csv", header = TRUE) Data_2_fromCSV <- read.csv("Data_2.csv", header = TRUE) Data_1_fromCSV$Trial <- as.factor(Data_1_fromCSV$Trial) Data_2_fromCSV$Trial <- as.factor(Data_2_fromCSV$Trial)
This is certainly not a dramatic thing, but still unpleasant to look and work with for me. Any help is appreciated!
Thannk you very much,