I have a shiny app that displays data from a database, in which variables are assigned codes (e.g., "TMAX" for maximum temperature, "GDD" for growing degree day
I'm new using ggsankey. I have the following data t1 <- sample(x = c("Hosp A", "Hosp B", "Hosp C","Hosp D") , size = 100, replace=TRUE) t2 <- sample(x = c
When I create a function and use arguments as variable names in group_by() function there is error: comb <- function(z,x,y) { df <- z %>% group
I have a table with x, y columns x y 10 12 23 24 12 43 34 15 74 18 ... How can I know if they have a random distribution or if there is a dependency bet
I have a map of the Northern Hemisphere centered around North America. I would like to draw a red rectangle around the USA (this is part of an inset map) howeve
I have a grouped/nested data frame on which I want to run an nls model fit for each group. This code used to work fine on one machine. Running it on another mac
Dataframe: df2 = data.frame(value = c(9, 2, 7, 3, 6), key = c('ar', 'or', 'br', 'gt', 'ko')) And this is the code to generate the pie chart: d
I'm working with single-nuclei rna sequencing and I made a matrix of a subset of genes across all features that shows the counts per gene for each of them. I wa
I have a dataset (z) with strings which are very long in z$txt. I also have a dictionary (incd) of keywords that need to be identified. In the column z$inc.term
I'm working with surveys where if a specific answer is provided, a follow-up question is given. For example, if the answer to q1 is "yes" then q2 is asked. Howe
I would like to change the number of decimals for the Proportion of Variance displayed in the axes of a PCA plot using prcomp() and autoplot(). By default it's
I want to create a scattergeo plot with markers for capitals. These markers are sized and colored regarding database values. If I use the standard colors, every
I have just started using R, and I seem to be falling over at the first hurdle... I have defined an object in my R project which is the csv data for a file I ha
I have the following data: structure(list(Date = c("01.08.2018", "02.08.2018", "03.08.2018", "04.08.2018", "01.09.2018", "02.09.2018", "03.09.2018", "04.09.201
I have had problems uploading the following file to Tableau: https://www.kaggle.com/datasets/shivamb/netflix-shows/download When loaded it looks like this but
I'm using the tq_get() function in Tidyquant to retrieve economic data from FRED: library(tidyquant) library(tidyverse) consumer_price_index <- 'CPIAUCSL'
I'm looking to extract the value of my data frame that are whole numbers, i.e. end in .00 Price 100.00 100.46 101.00 101.67 The resulting data frame would be:
I'm trying to modify a function to print NA when the function prints a warning message. I've tried using a return(NA) modifier, which you'll see in the functio
For my shiny app I would like to add the possibility for the user to save his session and restore it later. I managed to implement functions that lets the user
hopefully someone can help me out. I want to do an autoregressive regression on some monthly logreturns (60 observations). I found that only lag 1,3,11,18 are s