search for: values_to

Displaying 3 results from an estimated 3 matches for "values_to".

Did you mean: value_str
2024 Dec 10
1
Heat maps containing two types of variables
...ggplot2) library(tidyr) library(dplyr) dat <- data.frame( date=seq.Date(as.Date("2024-01-01"),as.Date("2024-06-01"),by="month"), A=c(1,3,3,4,2,6), B=c(3,5,6,4,8,9), C=c(10,8,17,19,26,22) ) dat_long <- pivot_longer(dat,2:4,names_to="variable",values_to="value") normalize <- function(x) { y <- (x-min(x))/(max(x)-min(x)) } dat_norm <- mutate(dat,across(2:4,normalize)) dat_long_norm <- pivot_longer(dat_norm,2:4,names_to="variable",values_to="norm_value") dat_long <- inner_join(dat_long,dat_long_norm,by=c...
2025 Mar 29
2
Setting up hypothesis tests with the infer library?
How about calculating a 95% confidence interval about the estimated proportion in favor. The PooledInfRate package will do this for you. If confidence intervals overlap then there is no significant difference. -----Original Message----- From: R-help <r-help-bounces at r-project.org> On Behalf Of Kevin Zembower via R-help Sent: Saturday, March 29, 2025 12:10 PM To: R-help email list
2024 Jun 28
1
Ayuda para hacer una lista
Hola, que tal? Sin saber nada mas de los datos, por lo que dices, mi aprioximacion seria usar la funcion split, e.g.: splittedData <- split(myData, "variablegrupo/condicion") Esto te crearia una lista con tantos objectos como condiciones tengas. Saludos On 6/27/24 10:15, Leticia G Leon wrote: > Muchas fracias por la rapida contastacion Javier. > > Si, ya me he dado