Re: [R] Does anyone have any use for this?

2021-01-01 Thread Peter Langfelder
This would certainly simplify and make more readable some of my code where I create multiple versions of the same plot calling the same function with minor variations of a few of many arguments. Thanks! Peter On Fri, Jan 1, 2021 at 12:20 PM Bert Gunter wrote: > Hi all: > > In the course of play

Re: [R] Does anyone have any use for this?

2021-01-01 Thread Abby Spurdle
And it was supposed to say billions. plt (main="Monthly NZ GDP (Billions)") On Sat, Jan 2, 2021 at 2:32 PM Abby Spurdle wrote: > > I'm not enthusiastic about nonstandard evaluation and allowing > functions to change state data. > Currently, I use some of this in my own packages, but I'm plannin

Re: [R] Does anyone have any use for this?

2021-01-01 Thread Abby Spurdle
I'm not enthusiastic about nonstandard evaluation and allowing functions to change state data. Currently, I use some of this in my own packages, but I'm planning to remove most of it. But I did have some fun with your function. -- plt <- memify (plot) x <- 1:12 y1 <- seq (0, 18,, 12) y2

[R] Does anyone have any use for this?

2021-01-01 Thread Bert Gunter
Hi all: In the course of playing around with other issues, I wrote the following little function that allows functions to keep state and easily replay and update their state.(see comments after): memify <- function(f) { if (is.primitive(f)) { cat("Cannot memify primitive functions.\n")

Re: [R] Multiple values not getting displayed in output based on multiple input selection from dropdown in R shiny

2021-01-01 Thread Bert Gunter
Shiny is an R package from RStudio, a wholly separate organization from R. So note, per the posting guide linked below, "For questions about functions in standard packages distributed with R (see the FAQ Add-on packages in R ), ask

Re: [R] Interpreting coefficient in selection and outcome Heckman models in sampleSelection

2021-01-01 Thread Arne Henningsen
Dear Marinella Implementing a function in the sampleSelection package that calculates marginal effects is still on my to-do list but I probably won't implement it soon, because I have many other things with higher priority. Sorry! However, you are invited to implement this feature in the sampleSel

[R] Multiple values not getting displayed in output based on multiple input selection from dropdown in R shiny

2021-01-01 Thread Ritwik Mohapatra
Hi All, Happy New Year to All. I have been trying to create a multi input select list/dropdown using r shiny but when i select more than two values from the input,it doesn't show the output for all the values selected in the dropdown. The code is as follows: knitr::opts_chunk$set(echo = TRUE) l