Re: [R] how to find the table in R studio

2022-01-12 Thread Avi Gross via R-help
function returns NULL. -Original Message- From: Kai Yang via R-help To: R-help Mailing List Sent: Wed, Jan 12, 2022 3:07 pm Subject: [R] how to find the table in R studio 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

Re: [R] how to find the table in R studio

2022-01-12 Thread Bert Gunter
If you intend to use R for work beyond simple scripts and plots, you will have to understand how to use functions in R: the principle that Duncan mentioned -- that objects such as f-table that are local to a function are not available outside the function (with caveats -- see below) is __absolutely

Re: [R] how to find the table in R studio

2022-01-12 Thread Jeff Newmiller
Definitely avoid the assign solution... remembering side effects on the global environment is hard and difficult to troubleshoot, and that also makes "doing that many times" unreasonably difficult. IMO even mentioning such an alternative is a dangerous distraction. I also would advocate not mix

Re: [R] how to find the table in R studio

2022-01-12 Thread Duncan Murdoch
On 12/01/2022 3:07 p.m., Kai Yang via R-help wrote: 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 lib

[R] how to find the table in R studio

2022-01-12 Thread Kai Yang via R-help
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){