[R] how to find the table in R studio
Kai Yang
y@ngk@|9999 @end|ng |rom y@hoo@com
Wed Jan 12 21:07:22 CET 2022
Hi all,
I created a function in R. It will be generate a table "temp". I can view it in R studio, but I cannot find it on the top right window in R studio. Can someone tell me how to find it in there? Same thing for f_table.
Thank you,
Kai
library(tidyverse)
f1 <- function(indata , subgrp1){
subgrp1 <- enquo(subgrp1)
indata0 <- indata
temp <- indata0 %>% select(!!subgrp1) %>% arrange(!!subgrp1) %>%
group_by(!!subgrp1) %>%
mutate(numbering =row_number(), max=max(numbering))
view(temp)
f_table <- table(temp$Species)
view(f_table)
}
f1(iris, Species)
[[alternative HTML version deleted]]
More information about the R-help
mailing list