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]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.