How to run shiny in non-blocking way?
The method runApp would always run in blocking way even I specify launch.browser=FALSE, does anyone know how can run I run shiny App in non-blocking way ? Because after launching shiny app, I still...
View Article`r`: Efficiently identifying identical parts of two strings w/o prior...
I'm looking for an efficient solution to the following problem:a <- "TestStringA" b <- "TeststringB" magical_string_processing(a, b) > [1] "Test""tring"In essence: How do I detect identical...
View ArticleWhy does this geom_polygon only include integers and not decimals?
Please, find My data nd below. nd contains two columns> nd lnd y 1: 0.0 0.350 2: 0.1 0.351 3: 0.2 0.353 4: 0.3 0.356 5: 0.4 0.358 --- 997: 99.6 0.884 998: 99.7 0.884 999: 99.8 0.885 1000: 99.9 0.885...
View ArticleShiny numericInputs sums not updating as expected
I want to populate Shiny numericInput boxes with initial values from a named list. (The values and names are imported, but here just coded.) The initial values are summed and appear to the right of the...
View Articleggplot function like points
Is there any way to add points to a ggplot graph like with the points() function in base graphics? I don't often use ggplot and always prefer base graphics, but this time I must to deal with it. With +...
View ArticleMore efficient way to perform calculations on multiple (combined) columns by...
What is a more efficient way to perform calculations on multiple combined columns by group?I have a dataset with Manager Effectiveness & Team Effectiveness components. How can I quickly calculate...
View ArticleMM Estimation in Robust Regression
I am working with different linear regression models in R. I used the DATASET, which has 21263 rows and 82 columns.All of the regression models have acceptable time consumption except the MM-estimate...
View ArticlePass sub function
I am using the function below which summarise data only if column exists.dummy <- function(df, arrear_var=NULL, pos_var=NULL) { if (!missing(arrear_var)) { arrear_var <- sym(arrear_var) } if...
View ArticleAdd in "empty" rows when joining tables
I am working on an application that monitors worker productivity in R. For each worker I have the jobs they completed and I want to see how many jobs they completed each week of the year ( so weeks 1 -...
View ArticleUsing rvest or RSelenium to Scrape Table
The goal: Scrape the table from the following website using R.The website:https://evanalytics.com/mlb/models/teams/advancedWhat has me stuck: I use rvest to automate most of my data gathering process,...
View ArticleCreating a zipcode map in R?
I want to create a zipcode map for Dallas. I have this shapefile which should include all postal codes within it (Street files)I've been using this as a resourcebelow is an example of what I would like...
View Articleusing apply within ifelse R data.table
I have the following data.table object:USER active rate day # of elements by hour 4q7C0o 1 1.48 1 c(0, 0, 0, 0, 0, 0, 5, 98, 167, 211, 246) 2BrKY63 1 0.5 3 c(0, 0, 0, 0, 0, 0, 0, 5, 15, 24, 89, 187)...
View ArticleHow can I create RMarkdown files that render well in PDF and HTML and which...
I have been working on some documents that should render in both HTML and PDF. For referencing in Latex I have used the \ref{fig:fig1}style and giving figures a numbered caption.For referencing in HTML...
View ArticleR object documentation: Package documentation as first item
I have an R package and I want to display the general information about the package as first item in the created PDF manual. I use roxygen2 (version 7.0.2) for creating the documentation and followed...
View ArticleHow to add link to .toml?
I'm a newbie creating a website via R Blogdown. My home webpage is the config.toml file. I want to add a link to another page in the text, but after much search, I could not figure out how to do this...
View ArticleComplete loss of accuracy in modulus when calculating with very large numbers
I have the following problem:> 1e20 %% 3 [1] 0 Warning message: probable complete loss of accuracy in modulus The result can't be correct and I'm sure it is because 1e20 is really big. But I want to...
View ArticleNest shinyDownloadHander() within a function
I have a code block like so:output$downloadTransactions <- downloadHandler( filename = function() { paste('transactions', Sys.Date(), '.csv', sep='') }, content = function(file) {...
View ArticleBuilding R package with DLLs
I am attempting to create a binary package that contains precompiled .dll files which the package relies on to function. I have the file tkogl2.dll which needs to be loaded upon usage of the package....
View ArticleProblems replacing character values in a dataframe in R
One of my column in my datafra looks like this:[1] "MIT""MIT""NUC""MIT""CYT""MIT""NUC""MIT""CYT""NUC""NUC""CYT""MIT""MIT""""""CYT" [18]...
View ArticleSequence of Repeated Values in R
This is a very basic question, but it's annoying me, so I'm asking.I need a sequence of repeated numbers, i.e. 1 1 ... 1 2 2 ... 2 3 3 ... 3 etc. The way I implemented this was nyear <- 20 names...
View Article