I tried to run MLE in r using the mle function. It was working fine but I encountered the following error all of a sudden. Can anyone help? Error in if (!all(lo
I am trying to figure out how to add space in a plot between two discrete values on the x-axis. For example, in the plot below, I'd like to keep the same spacin
I have been trying to plot a surface from the following data z = structure(c(-0.901395069908367, -0.889270928722939, -0.860498522734513, -0.81162341264254, -0.
I am using a plotly surface plot with data that has some missing values. As you can see in the example below, I am using highlight lines to show the surface doe
Let's say I have a REST API using RestRserve like this, is there a way to add an Etag to enable caching on cloud services? writeLines("Hello World", "myfile.txt
I have a dataset with a column consisting of tweets. Some tweets are retweets, which start with RT @username: ..... I would like to remove this part of the stri
chase_2021 = chase[c(143:1020),] paychecks = chase_2021 %>% select(Posting.Date, Amount, Description, starts_with('CVS'), ends_with('PPD ID: 995338
The following code creates a bar chart for my analysis: ggplot(ctd_monthly_num_rides, aes(x=factor(month,level= c('January','Februa
I want to plot a picture with cumulative distribution function (CDF) and probability density function (PDF),which has a unified x-axis and y-axis with re
This is my plot: library(ggplot2) economics <- economics %>% mutate(year = year(economics$date)) ggplot(economics,aes(year, unemploy))+ geom_line() +
Given two data frames: df1 = data.frame(CustomerId = c(1:6), Product = c(rep("Toaster", 3), rep("Radio", 3))) df2 = data.frame(CustomerId = c(2, 4, 6), State =
I need to output, using the openxlsx R package, some text rows in bullet point format. There doesn't appear to be a createStyle() option for doing this. Is anyo
I want to express the frequency of each column (a,b,c,d,e) in a graph of (t) for each group. I don't know what to do. As shown in the figure, the data was selec
Fellow contributors, I have been working with a hierarchical time series, concerning a set of identical products in a number of stores. For this purpose when we
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