Displaying 20 results from an estimated 131 matches for "tidyr".
Did you mean:
tidy
2019 Jul 12
4
Unexpected behaviour when comparing (==) long quoted expressions
Hi everyone:
I?m one of the interns at RStudio this summer working on a project that
helps teachers grade student code. I found an unexpected behaviour with
the |==| operator when comparing |quote|d expressions.
Example 1:
|u <- quote(tidyr::gather(key = key, value = value,
new_sp_m014:newrel_f65, na.rm = TRUE)) s <- quote(tidyr::gather(key =
key, value = value, new_sp_m014:newrel_f65, na.rm = FALSE)) u == s #
TRUE u <- quote(tidyr::gather(key = key, value = value, na.rm = TRUE)) s
<- quote(tidyr::gather(key = key, value...
2017 Jul 25
0
To Supporting graphpad prism in R, add external library to poratbleR
1) Definitely yes. They are on CRAN. Just type
install.packages( c("dplyr", "tidyr" ) )
at the R console.
2) Don't know, but most likely the answer is yes. Since all R packages on Linux are compiled by R when installed, you either need to activate your virtual machine, compile the packages, and save the state for future use, or you have to build the package library on...
2017 Jul 25
1
To Supporting graphpad prism in R, add external library to poratbleR
Hi Jeff,
1). I have tried install.packages( c("dplyr", "tidyr" ) ) into the r-script
file got below error:-
> install.packages( c("dplyr", "tidyr" ) )
Installing packages into
?/tmp/1776492876238396447/lib/portableR-master/site-library?
(as ?lib? is unspecified)
Error in install.packages(c("dplyr", "tidyr")) :...
2019 Sep 30
1
R CMD build should fail early for old package versions?
Hi all,
Today I had an R CMD build that failed while building a vignette because
the vignette needs tidyr (>= 1.0, declared in DESCRIPTION Suggests) but my
system had a previous version installed.
It did not take me too long to figure out the issue (solved by upgrading
tidyr) but it would have been even faster / easier if R CMD build failed
early, with an error message that says something like &quo...
2017 Jul 25
2
To Supporting graphpad prism in R, add external library to poratbleR
Hi Team,
Please suggest me on below :-
1).are There any linux based library for dplyr and tidyr? I could find
these r-libraries for windows and Mac but not for linux. 2). is it possible
to add external library to portableR zip(http://nafiux.github.io/portableR/)
file if yes then how to add external library to poratbleR zip file?
In our application AWS lambda invoking the R-script by using po...
2019 Jul 16
0
Unexpected behaviour when comparing (==) long quoted expressions
...s:
> Hi everyone:
> I?m one of the interns at RStudio this summer working on a project that
> helps teachers grade student code. I found an unexpected behaviour with
> the |==| operator when comparing |quote|d expressions.
> Example 1:
> |u <- quote(tidyr::gather(key = key, value = value,
> new_sp_m014:newrel_f65, na.rm = TRUE)) s <- quote(tidyr::gather(key =
> key, value = value, new_sp_m014:newrel_f65, na.rm = FALSE)) u == s #
> TRUE u <- quote(tidyr::gather(key = key, value = value, na.rm = TRUE)) s
> <- q...
2017 Jul 25
0
To Supporting graphpad prism in R, add external library to poratbleR
...ink that you quoted. Do you have the directories referred to there in place?
--
Sent from my phone. Please excuse my brevity.
On July 25, 2017 7:27:31 AM PDT, Ashish Ranjan <aranjan1645 at gmail.com> wrote:
>Hi Jeff,
>
>1). I have tried install.packages( c("dplyr", "tidyr" ) ) into the
>r-script
>file got below error:-
>
>> install.packages( c("dplyr", "tidyr" ) )
>Installing packages into
>?/tmp/1776492876238396447/lib/portableR-master/site-library?
>(as ?lib? is unspecified)
>Error in install.packages(c("dpl...
2017 Aug 14
2
tidyverse repeating error: "object 'rlang_mut_env_parent' not found"
...packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
Desktop> library(tidyverse)
Loading tidyverse: ggplot2
Loading tidyverse: tibble
Loading tidyverse: tidyr
Loading tidyverse: readr
Loading tidyverse: purrr
Loading tidyverse: dplyr
Conflicts with tidy packages --------------------------------------------------------------
filter(): dplyr, stats
lag(): dplyr, stats
Desktop> library(magrittr)
Attaching package: ?magrittr?
The following object is...
2017 Aug 14
4
tidyverse repeating error: "object 'rlang_mut_env_parent' not found"
...reproducible example, but want to lay out the high-level issues in case someone recognizes exactly what is happening here.
The error is:
Error in mut_env_parent(overscope$.top_env, lexical_env) :
object 'rlang_mut_env_parent' not found
and it occurs in three situations:
1) Using tidyr::nest() on an output from dplyr::group_by()
2) Using tibble::tibble() with <name> = <value> arguments
3) Using dplyr::select() on a tibble to select two columns
Any obvious clues as to what's happening here? The only non-base packages loaded are current tidyverse, forca...
2018 Jul 18
2
Legendas en una gráfica de ggplot2
...exp(t-0.7)/(1+(exp(t-0.7)))
>
> ### Con b igual a 2
>
> u=exp(t-2)/(1+(exp(t-2)))
>
> ####unir los datos
> b=c(0.3,2,-1,-2)
>
> datos <- data.frame(
> t = t,
> l = l,
> o = o,
> i = i,
> u = u
> )
>
> # ahora usamos gather, del paquete tidyr, porque nos permite pasar del
> formato
> # "wide" a "long"
> library(tidyr)
> # install.packages('tidyr')
> datos_long <- gather(datos, Curva, Valor, 2:5)
> datos_long
>
> ###Graficos
>
> ggplot(datos_long, aes(x = t, y = Valor, linetype...
2017 Aug 14
0
tidyverse repeating error: "object 'rlang_mut_env_parent' not found"
...39;demo()' for some demos, 'help()' for on-line help, or
> 'help.start()' for an HTML browser interface to help.
> Type 'q()' to quit R.
>
> Desktop> library(tidyverse)
> Loading tidyverse: ggplot2
> Loading tidyverse: tibble
> Loading tidyverse: tidyr
> Loading tidyverse: readr
> Loading tidyverse: purrr
> Loading tidyverse: dplyr
> Conflicts with tidy packages --------------------------------------------------------------
> filter(): dplyr, stats
> lag(): dplyr, stats
> Desktop> library(magrittr)
>
> Attaching...
2017 Aug 14
0
tidyverse repeating error: "object 'rlang_mut_env_parent' not found"
...e high-level
>issues in case someone recognizes exactly what is happening here.
>
>The error is:
>
>Error in mut_env_parent(overscope$.top_env, lexical_env) :
> object 'rlang_mut_env_parent' not found
>
>and it occurs in three situations:
>
>
>1) Using tidyr::nest() on an output from dplyr::group_by()
>
>2) Using tibble::tibble() with <name> = <value> arguments
>
>3) Using dplyr::select() on a tibble to select two columns
>
>Any obvious clues as to what's happening here? The only non-base
>packages loaded...
2017 Jul 11
2
dplyr help
...[mailto:jdnewmil at dcn.davis.ca.us]
Sent: 10 July 2017 03:52 PM
To: r-help at r-project.org; Mangalani Peter Makananisa; r-help at r-project.org
Cc: Vito Ricci (vito_ricci at yahoo.com)
Subject: Re: [R] dplyr help
I am pretty sure that this is not a question about dplyr... it is a question about tidyr. Look at the help file ?tidyr::spread.
If I understand your question (I may not, because you gave no example of input/output data), the answer is no, the column names come from the column named by the key parameter and the values that fill those columns come from the column named by the value par...
2017 Jul 10
0
dplyr help
I am pretty sure that this is not a question about dplyr... it is a question about tidyr. Look at the help file ?tidyr::spread.
If I understand your question (I may not, because you gave no example of input/output data), the answer is no, the column names come from the column named by the key parameter and the values that fill those columns come from the column named by the value par...
2018 Jul 18
2
Legendas en una gráfica de ggplot2
Buenas tardes, estoy haciendo una gráfica de múltiples lineas pero no he
podido generar las legendas. Alguno de ustedes me podría colaborar.
library(ggplot2)
#### Con b=-2
t=seq (-4, 4, by=0.01)
l=exp(t+2)/(1+(exp(t+2)))
##con b igual a -1
t=seq (-4, 4, by=0.01)
o=exp(t+1)/(1+(exp(t+1)))
### Con b igual a 0.7
t=seq (-4, 4, by=0.01)
i=exp(t-0.7)/(1+(exp(t-0.7)))
### Con b igual a 2
t=seq
2024 Jun 12
1
my R code worked well when running the first 1000 lines of R code
Hi Rui,
Thank you very much!
Yes, I verified using real data, it worked correctly as expected after adding tidyr:: to the pivot_longer function and dplyr:: to the group_by and summarize
Function.
I did not know how to assign the tidyr and dplyr to the three functions because I do not really understand well the three functions and just got the code from a google search.
I also tried your simplified code, but...
2024 Jun 12
1
my R code worked well when running the first 1000 lines of R code
...uessed my problem correctly. I also thought about the conflicting issue between different packages and function masking.
> I just hope to that someone has similar experience, so providing me suggestion.
>
> For conflicting issue,
>
> What I tried was to add dplyr::pivot_longer or tidyr:: pivot_longer,
Do that to all functions comming from contributed packages. At least to
those.
summary_anno1148ft <- anno1148ft %>%
tidyr::pivot_longer(c(t_depth, t_alt_count, t_alt_ratio), names_to =
"measure") %>%
dplyr::group_by(dat, measure) %>%
dplyr::summ...
2017 Jul 11
0
dplyr help
....us]
>Sent: 10 July 2017 03:52 PM
>To: r-help at r-project.org; Mangalani Peter Makananisa;
>r-help at r-project.org
>Cc: Vito Ricci (vito_ricci at yahoo.com)
>Subject: Re: [R] dplyr help
>
>I am pretty sure that this is not a question about dplyr... it is a
>question about tidyr. Look at the help file ?tidyr::spread.
>
>If I understand your question (I may not, because you gave no example
>of input/output data), the answer is no, the column names come from the
>column named by the key parameter and the values that fill those
>columns come from the column na...
2018 May 02
3
Converting a list to a data frame
Another approach:
########
library(tidyr)
L <- list( A = data.frame( x=1:2, y=3:4 )
, B = data.frame( x=5:6, y=7:8 )
)
D <- data.frame( Type = names( L )
, stringsAsFactors = FALSE
)
D$data <- L
unnest(D, data)
#> Type x y
#> 1 A 1 3
#> 2 A 2 4
#> 3 B 5 7...
2018 May 03
0
Converting a list to a data frame
On Wed, May 2, 2018 at 11:53 AM, Jeff Newmiller
<jdnewmil at dcn.davis.ca.us> wrote:
> Another approach:
>
> ########
> library(tidyr)
> L <- list( A = data.frame( x=1:2, y=3:4 )
> , B = data.frame( x=5:6, y=7:8 )
> )
> D <- data.frame( Type = names( L )
> , stringsAsFactors = FALSE
> )
> D$data <- L
> unnest(D, data)
> #> Type x y
> #>...