similar to: nofrills: Low-Cost Anonymous Functions

Displaying 20 results from an estimated 2000 matches similar to: "nofrills: Low-Cost Anonymous Functions"

2017 Mar 26
0
valaddin (0.1.0): Make your functions more robust
Dear fellow R users, valaddin (0.1.0) has been published on CRAN: https://cran.r-project.org/package=valaddin Using valaddin, you can transform an existing function into a function with input validation, without having to rewrite it with stop() or stopifnot() statements. It therefore provides a convenient and consistent way to make your functions more robust and more predictable, either
2017 Mar 26
0
valaddin (0.1.0): Make your functions more robust
Dear fellow R users, valaddin (0.1.0) has been published on CRAN: https://cran.r-project.org/package=valaddin Using valaddin, you can transform an existing function into a function with input validation, without having to rewrite it with stop() or stopifnot() statements. It therefore provides a convenient and consistent way to make your functions more robust and more predictable, either
2017 Mar 19
0
RFC: (in-principle) native unquoting for standard evaluation
On Mon, Mar 20, 2017 at 7:36 AM, Radford Neal <radford at cs.toronto.edu> wrote: > Michael Lawrence (as last in long series of posters)... > >> Yes, it would bind the language object to the environment, like an >> R-level promise (but "promise" of course refers specifically to just >> _lazy_ evaluation). >> >> For the uqs() thing, expanding calls
2020 Jan 09
0
Get memory address of an R data frame
On 09. 01. 20 15:41, lille stor wrote: > I believe this could be done without creating side effects (e.g. > crash) as we are just talking about changing values. that is exactly the issue that my last two points warn about. Example: a <- mtcars .Call("my_innocent_function", a) Would you expect that mtcars data.frame would be altered after this code is executed? What if some
2008 Feb 19
1
level of mutability for the type of a SEXP
Dear list, I am writing C code to interface with R, and I would like to know the level of mutability for the type of a SEXP. I see that there is a macro/function TYPEOF(), and that it can be used as an l-value, as well as a macro/function SET_TYPEOF(). My question is "should the type be considered immutable, or it can it change after the SEXP has been created and used for a while ?".
2010 Jun 19
2
Call by reference or suggest workaround
I have written code to compute multi-indices in R [1] and due to the recursive nature of the computation I need to pass around the *same* matrix object (where each row corresponds to one multi-index). As pass by reference wasn't the default behavior I declared a global matrix (mat) and used the <<- operator to write to the global matrix. So the usage would be to call genMultiIndices(3,2)
2024 Sep 28
1
Is there a sexy way ...?
Calum, I know Rolf for a while so I will not accept any calumny about his intentions. He stated what he wanted, albeit imperfectly, and interacted with us as we came up with ideas. I have seen others who ask some open-ended question, often using a brand new idea, and do not interact. Some rumors have it that there may be motives ranging from wasting everyone?s time to gathering the best
2016 Sep 11
3
Using pkgs from centos repos or building pkgs myself?
Hello, I'm a new centos user, finding that some packages are a little old. How do you solve this kind of problems? I want to install newer php. Thank you. Sincerely, Xuwen
2016 Sep 11
0
Using pkgs from centos repos or building pkgs myself?
On 11 September 2016 at 15:38, Xuwen Fang <fxuwen at gmail.com> wrote: > Hello, > I'm a new centos user, finding that some packages are a little old. > How do you solve this kind of problems? I want to install newer php. > Thank you. > > Sincerely, > Xuwen > _______________________________________________ > CentOS mailing list > CentOS at centos.org >
2024 Sep 28
2
Is there a sexy way ...?
Avi I fear this was all a huge social experiment. Testing if a post titled "sexy way" would increase engagement... On Sat, 28 Sep 2024, 07:21 , <avi.e.gross at gmail.com> wrote: > I see a book coming: > "666 ways to do the same thing in R ranked by sexiness." > > Kidding aside, if you look under the covers of some of the functions we > are
2011 Sep 12
1
coxreg vs coxph: time-dependent treatment
Dear List, After including cluster() option the coxreg (from eha package) produces results slightly different than that of coxph (from survival) in the following time-dependent treatment effect calculation (example is used just to make the point). Will appreciate any explaination / comment. cheers, Ehsan ############################ require(survival) require(eha) data(heart) # create weights
2003 May 29
2
install-packages
When I try 'install-packages' (from menu) in R-1.7.0 (Windows), I get > install.packages(choose.files('',filters=Filters[c('zip','All'),]), .libPaths()[1], CRAN = NULL) Error in file(file, "r") : unable to open connection In addition: Warning message: cannot open file `eha060/DESCRIPTION' > but it works with R-1.6.2. It also works if I
2003 Jun 16
0
new package: eha
A few days ago I uploaded to CRAN a new package called 'eha', which stands for 'Event History Analysis'. Its main focus is on proportional hazards modeling in survival analysis, and in that respect eha can be regarded as a complement and an extension to the 'survival' package. In fact eha requires survival. Eha contains three functions for proportional hazards
2003 Jun 16
0
new package: eha
A few days ago I uploaded to CRAN a new package called 'eha', which stands for 'Event History Analysis'. Its main focus is on proportional hazards modeling in survival analysis, and in that respect eha can be regarded as a complement and an extension to the 'survival' package. In fact eha requires survival. Eha contains three functions for proportional hazards
2020 Apr 16
2
[RFC] [Windows SEH][-EHa] Support Hardware Exception Handling
As stated in the design paragraph, this design does not intend to model precise CFG at instruction level since it’s complicated and unnecessary. As long as we comply C and C++ rules listed below, we achieve -EHa semantic. There is NO need to precisely model HW exception control flow at instruction-level. Your example about memcpy() is just a bug in current implementation. I will fix it so that
2010 Dec 10
1
survreg vs. aftreg (eha) - the relationship between fitted coefficients?
Dear R-users, I need to use the aftreg function in package 'eha' to estimate failure times for left truncated survival data. Apparently, survreg still cannot fit such models. Both functions should be fitting the accelerated failure time (Weibull) model. However, as G?ran Brostr?m points out in the help file for aftreg, the parameterisation is different giving rise to different
2011 May 21
1
predict 'expected' with eha package
I am unsure what is being returned, and what is supposed to be returned, when using 'predict' with "type='expected'" for an aftreg survival model. The code below first generates a weibull model, then uses predict to create a vector of the linear predictors, then attempts to create the 'expected' vector, which is empty. The final two steps in the code generate a
2020 Apr 15
2
[RFC] [Windows SEH][-EHa] Support Hardware Exception Handling
Hi, This is a spin-off of previous Windows SEH RFC below. This RFC only focus on supporting HW Exception Handling. A detailed implementation can be seen in here: https://github.com/tentzen/llvm-project/commit/8a2421c274b683051e456cbe12c177e3b934fb5e It passes all MSVC SEH suite (excluding those with “Jumping out of _finally” ( _Local_Unwind)). Thanks, --Ten **** The rules for C code: ****
2020 Apr 16
2
[RFC] [Windows SEH][-EHa] Support Hardware Exception Handling
Hi, Eli, Why are you under the impression that threw_exception() will not be called if optimizations are enabled? I don’t know if the -EHa Spec is clearly described in MSFT Webs. At least this proposal has described the rules for both C & C++ code. The very first rule clearly said that “no exception can move in or out of _try region., i.e., no potential faulty instruction can be moved
2004 Mar 17
1
What library is coxreg?
Dear mailing list, I'm trying to run the sample program about coxreg in the eha package. But the command is not recognized. I tried the boot and also the survival library. Hope you can help me solve this little problem. Thank you. Jei ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. University of the