Displaying 20 results from an estimated 71 matches for "purrrring".
Did you mean:
purring
2017 Mar 27
2
A trap for young players with the lapply() function.
...r idea might be to use purrr:map instead, which is quite happy
with X in your function:
> xxx <- purrr::map(y,function(x,X){cos(x*X)},X=2*pi)
> xxx
[[1]]
[1] 0.08419541
[[2]]
[1] 0.6346404
[[3]]
[1] 0.9800506
[[4]]
[1] 0.8686734
[[5]]
[1] -0.9220073
But don't feed `.x` to your purrrring cats, or fails silently:
> xxx <- purrr::map(y,function(x,.x){cos(x*.x)},.x=2*pi)
> xxx
[[1]]
NULL
But who would have a function with `.x` as an argument?
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman...
2017 Jun 07
2
purrr::pmap does not work
Hi All,
I try to do a scatterplot for a bunch of variables. I plot a dependent
variable against a bunch of independent variables:
-- cut --
graphics::plot(
v01_r01 ~ v08_01_up11,
data = dataset,
xlab = "Dependent",
ylab = "Independent #1"
)
-- cut --
It is tedious to repeat the statement for all independent variables. Found
an alternative, i.e. :
-- cut --
mu
2017 Feb 15
2
convertir múltiples listas de múltiples dataframes en un único dataframe
Carlos:
Agradecido por tu interés. Adjunto la lista que me solicitas.
Saludos,
Manuel
---
_______________________________________________________
El 15/02/2017 17:45, Carlos Ortega escribió:
> Hola,
>
> ¿Puedes pasar parte de estas listas para no picar un ejemplo desde cero... ?
> Puedes pasarlo en un fichero ".RData" Y si te da problemas el adjuntarlo a toda la
2017 Mar 27
0
A trap for young players with the lapply() function.
...gt;
> > xxx <- purrr::map(y,function(x,X){cos(x*X)},X=2*pi)
> > xxx
> [[1]]
> [1] 0.08419541
>
> [[2]]
> [1] 0.6346404
>
> [[3]]
> [1] 0.9800506
>
> [[4]]
> [1] 0.8686734
>
> [[5]]
> [1] -0.9220073
>
> But don't feed `.x` to your purrrring cats, or fails silently:
>
> > xxx <- purrr::map(y,function(x,.x){cos(x*.x)},.x=2*pi)
> > xxx
> [[1]]
> NULL
>
> But who would have a function with `.x` as an argument?
Indeed. It struck me that a possible workaround would be to change the
name of the first argum...
2019 Jan 31
2
Runnable R packages
Would you care to share how your package installs its own dependencies? I
assume this is done during the call to `main()`? (Last time I checked, R
CMD INSTALL would not install a package's dependencies...)
On Thu, Jan 31, 2019 at 4:38 PM Barry Rowlingson <
b.rowlingson at lancaster.ac.uk> wrote:
>
>
> On Thu, Jan 31, 2019 at 3:14 PM David Lindelof <lindelof at ieee.org>
2017 Mar 29
1
A trap for young players with the lapply() function.
...i)
>> > xxx
>> [[1]]
>> [1] 0.08419541
>>
>> [[2]]
>> [1] 0.6346404
>>
>> [[3]]
>> [1] 0.9800506
>>
>> [[4]]
>> [1] 0.8686734
>>
>> [[5]]
>> [1] -0.9220073
>>
>> But don't feed `.x` to your purrrring cats, or fails silently:
>>
>> > xxx <- purrr::map(y,function(x,.x){cos(x*.x)},.x=2*pi)
>> > xxx
>> [[1]]
>> NULL
>>
>> But who would have a function with `.x` as an argument?
>
> Indeed. It struck me that a possible workaround would be t...
2017 Dec 08
1
lmerTest Issues
Hello all,
Everything was working very well. Now when I try to load lmerTest using:
library("lmerTest"), I get this error:
Error: package or namespace load failed for ?lmerTest? in
loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck =
vI[[j]]):
there is no package called ?purrr?
Nothing I've done has worked. I have uninstalled both R and R studio. I've
2017 Aug 14
2
tidyverse repeating error: "object 'rlang_mut_env_parent' not found"
Thanks for the feedback Jeff. Before I pursue a bug report, let me give a full example:
###### begin console output
R version 3.4.1 (2017-06-30) -- "Single Candle"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: i386-w64-mingw32/i386 (32-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
2017 Aug 14
0
tidyverse repeating error: "object 'rlang_mut_env_parent' not found"
> On Aug 14, 2017, at 8:37 AM, Szumiloski, John <John.Szumiloski at bms.com> wrote:
>
> Thanks for the feedback Jeff. Before I pursue a bug report, let me give a full example:
>
> ###### begin console output
>
> R version 3.4.1 (2017-06-30) -- "Single Candle"
> Copyright (C) 2017 The R Foundation for Statistical Computing
> Platform:
2023 Mar 19
1
WISH: Optional mechanism preventing var <<- value from assigning non-existing variable
I'd like to be able to prevent the <<- assignment operator ("super
assignment") from assigning to the global environment unless the
variable already exists and is not locked. If it does not exist or is
locked, I'd like an error to be produced. This would allow me to
evaluate expressions with this temporarily set to protect against
mistakes.
For example, I'd like to
2020 Apr 16
2
suggestion: "." in [lsv]apply()
I'm sure this exists elsewhere, but, as a trade-off, could you achieve
what you want with a separate helper function F(expr) that constructs
the function you want to pass to [lsv]apply()? Something that would
allow you to write:
sapply(split(mtcars, mtcars$cyl), F(summary(lm(mpg ~ wt,.))$r.squared))
Such an F() function would apply elsewhere too.
/Henrik
On Thu, Apr 16, 2020 at 9:30 AM
2023 Mar 19
2
WISH: Optional mechanism preventing var <<- value from assigning non-existing variable
Why should it make an exception for cases where the about-to-be-assigned-to
name is present in the global environment? I think it should warn or give
an error if the altered variable is in any environment on the search list.
-Bill
On Sun, Mar 19, 2023 at 10:54?AM Duncan Murdoch <murdoch.duncan at gmail.com>
wrote:
> I think that should be the default behaviour. It's pretty late to
2023 Mar 19
1
WISH: Optional mechanism preventing var <<- value from assigning non-existing variable
I think that should be the default behaviour. It's pretty late to get
that into R 4.3.0, but I think your proposal (with check.superassignment
= FALSE being the default) could make it in, and 4.4.0 could change the
default to TRUE.
Duncan
On 19/03/2023 12:08 p.m., Henrik Bengtsson wrote:
> I'd like to be able to prevent the <<- assignment operator ("super
>
2017 Nov 22
2
Tibble o data.table?
Buenas
Os queria preguntar que ventaja le veis a las tibbles frente a los data.table, ya que para mi, quitando el uso de librerias como tidyr o purrr, en el resto prefiero usar data.table. Me parece igual de potente y mucho más rápido, y no le veo las supuestas ventajas, pero quiero conocer vuestra opinion.
Gracias
Jesús
[[alternative HTML version deleted]]
2017 Jun 08
2
add_model paquete modeval
Estimados compañeros me gustaría saber si alguno ha utilizado la función
add_model del paquete modeval cuando la variable de clasificación (y)
tiene más de dos niveles. Porque si la utilizo con más niveles siempre
me sale el error:
Error: length(levels(factor((purrr::as_vector(y))))) == 2 is not TRUE Me
parece muy interesante el paquete y no veo donde indica esta limitación.
Un cordial
2017 Aug 17
2
How to install Tidyverse on Ubuntu 17.04? Getting gcc errors for -fstack-protector-strong and -Wdate-time
I'm running Ubuntu 17.04 and R 3.4.1. I installed the latter yesterday, so
I presume it's the latest version. I want to install Tidyverse, which I've
spent many happy hours with under Windows. But when I do
install.packages("tidyverse") , I get errors about unrecognized command
line options to gcc. These start when the install hits the colorspace and
munsell packages.
2017 Apr 11
3
Uso reiterado de la funcion seq
Hola a todos,
Escribo debido a una duda en la aplicacion de la funcion seq en cada uno de los "n" componentes de un vector "x". Hasta donde yo se, dicha funcion no permite el uso de vectores.
En consecuencia, y como primera aproximacion a lo que deseo hacer, he construido un bucle que retorne una lista de "n" vectores (de distinta longitud), donde cada uno de estos
2019 Feb 01
0
Runnable R packages
To download a package with all its dependencies and install it, use the
install.packages() functions instead of 'R CMD INSTALL'. E.g., in bash:
mkdir /tmp/libJunk
env R_LIBS_SITE=libJunk R --quiet -e 'if
(!requireNamespace("purrr",quietly=TRUE)) install.packages("purrr")'
For corporate "production use" you probably want to set up your own
repository
2019 Jul 21
1
Recommended Reading: Advanced R Second Edition
Dear R Developers,
After having fully read "Advanced R First Edition" , and having just bought
my physical copy of "Advanced R Second Edition", I recommend that:
Any community member interested in the development of R reads "Advanced R
Second Edition", which explains R Language Core concepts cristal clear, and
shows the motivation behind libraries such as
2024 Feb 29
0
Low level subsetting and S3 subsetting
Dear R-devel,
I periodically stumble on the same challenges when working with objects
with bracket S3 methods, and their length and names counterparts. I make
the distinction between what I call S3 subsetting using `[` and `[[` and
low level subsetting using `.subset()` and `.subset2()`.
When working with low level subsetting one has to be extremely careful,
because `length()`, `names()`, and