Re: [R] Time for a companion mailing list for R packages?

2022-01-12 Thread Jeff Newmiller
TL;DR The people responsible for tidyverse don't think much of mailing lists. IANAMLA (I am not mailing list admin) and I know some people get kind of heated about these things, but my take is that this list _is_ about R so to be on topic the question needs to be about R and how to get things do

[R] Time for a companion mailing list for R packages?

2022-01-12 Thread Avi Gross via R-help
Respectfully, this forum gets lots of questions that include non-base R components and especially packages in the tidyverse. Like it or not, the extended R language is far more useful and interesting for many people and especially those who do not wish to constantly reinvent the wheel. And repea

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

2022-01-12 Thread Avi Gross via R-help
The table you are looking for indeed does not any longer exists. Kai. Anything created within a function generally disappears as soon as it exits as the only pointer to it goes away and garbage collection can eventuially reuse the space. The code you wrote should end with: MyNamedVariable <- f1(

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){  

Re: [R] Method Guidance

2022-01-12 Thread Avi Gross via R-help
To be fair, Jim, when people stop and think carefully before sending a message to a forum like this, and then explain their situation and request carefully and in enough detail, often a solution comes to them and they can abort sending! Yes, the question asked is a bit vague. Other than asking fo

Re: [R] Method Guidance

2022-01-12 Thread Jeff Reichman
Rui Well that certainly is a lot more straight forward than the direction I was trying and you have introduced me to a couple of new functions. Thank you Jeff -Original Message- From: Rui Barradas Sent: Wednesday, January 12, 2022 5:08 AM To: reichm...@sbcglobal.net; r-help@r-project.

Re: [R] Method Guidance

2022-01-12 Thread Rui Barradas
Hello, Here is a base R solution for what I understand of the question. It involves ave and cumsum. cumsum of the values of Event_A breaks Event_B in segments and ave applies a function to each segment. To find where are the times B, coerce to logical and have which() take care of it. Data in