Quantcast
Channel: Active questions tagged r - Stack Overflow
Browsing all 201839 articles
Browse latest View live
↧

Get additional named attributes from actionButton in r Shiny

I found out that is possible to add additional arguments to an actionButton. Now what i would like to know how to retrieve this additional argument inside an observeEvent.library(shiny) ui <-...

View Article


Image may be NSFW.
Clik here to view.

Place strip panels on opposite sides of plot

Some journals require that figures with several graphs have each of the plots lettered. I'm trying to do the same with facet_wrap in ggplot2 because I've organized the data in such a way that...

View Article


render the clicked tab R dashboard

I am working on shinydashboard app with multiple tabs & I would like to render the tab content only when it is clicked on. I'm using shinydashboard library to create my dashboard, the application...

View Article

What's the reason that readRDS doesn't seem to work in Windows?

I'm trying to make the my code portable to Windows and realized that even though I use file.path to create paths still the readRDS function won't work, for...

View Article

How to combine specific data across multiple rows in a dataframe in R

I am looking to alter (concatenate, reshape I am not sure which word is right for this scenario) the data in my data frame by combining rows data cells across 1 column where the other columns in that...

View Article


Why does H2 (homology group 2) appear in a 2-d(two-dimentional) plot in RIPSER?

I use RIPSER library in python to analyze my data(TDA). The plot(data) i have used is 2-d, but when i use ripser to analyze, it gives me output with three homology groups(H0, H1, H2). But this is not...

View Article

Add point from an other file in an existing graph

It's a graph made with ggplotthis is the code I used to make the graph ggplot(LE_01, aes(x = X, y = Y, label=NO_ARBRE)) + geom_point() + geom_text(aes(label= NO_ARBRE),hjust= 0, vjust= 0) +...

View Article

gganimate plot not showing and saving bunch of .png's

I am trying to replicate a simple example about gganimate from here. The problem is simple ggplot part works fine but when I add transition_statesrstudio starts rendering and then saves bunch of...

View Article


nls fit works but fails inside geom_smooth

I want to use ggplot to fit an nls function to some data. The nls function is working well when used outside of geom_smooth() but inside it fails.Code:library(ggplot2) df <-...

View Article


Find nearest number to specific word using regex in R [closed]

I want to find the nearest number between a specific word in a string. Lets say the word is "week" (FYI: since "week" is a subset of "weeks", "weeks" can be used too)eg1 <- c("100 this is 40 weeks...

View Article

R: "reached elapsed time limit" Warnings

I keep getting "reached elapsed time limit" warnings at various locations of my code. I have recently updated my MacOSX to Catalina which created issues with R. I think that might another one of them...

View Article

Use R and Openxlsx to output a list of dataframes as worksheets in a single...

I have a set of CSV files. I want to package them up and export the data to a single Excel file that contains multiple worksheets. I read in the CSV files as a set of data frames.My problem is how to...

View Article

'testthat', how should I interpret this failure?

I want to use 'testthat' to add tests to my package.This is my test-file:library(RBaseX) test_that("Credentials are accepted", { skip_unless_socket_available() expect_error(BasexClient$new("localhost",...

View Article


gvisPieChart -custom change in pie slices colors and print the labels outside

I am using gvisPieChart in R and wanted to change the colors based on client requirement and also need to place the labels outside pie with small line pointing to the value from slice .Code...

View Article

Image may be NSFW.
Clik here to view.

How to calculate and plot cumulative incidence rate (incidence rate) over a...

I am struggling with finding the R package and codes to calculate and plot the cumulative incidence rate/IR (with 95% CI) in R. I have two datasets D1 and D2 with eight events each (E1...E8) and five...

View Article


How to write an Equation in R (papaja)?

I'm trying to write this equation using the papaja package: \begin{equation} \tag{1} $$LogVolume_(dcr)=$\alpha$ +$\beta$DMonday+$\gamma$DTuesday+...+$\delta$DSaturday+ $\epsilon$ $$ \end{equation} It...

View Article

Image may be NSFW.
Clik here to view.

R Shiny DataTables with column filters - preserve the styling

I use the DT package in Shiny and want to use filters, however I have a problem with the styling of the filters:Code: DT::datatable(overview,editable=TRUE, rownames=FALSE, selection='none',...

View Article


How would I get the pattern of errors on test items for a logistic regression...

I am trying to analyse the pattern of error (accuracy) on test items for the model I coded below. I would like to find out how often Setosa and Versicolor Species of iris are incorrectly classified as...

View Article

Error: argument is not interpretable as logical

I am trying to render a Data table with the following code:output$gt_mapping_table <- renderDataTable(rv$mapping, selection = 'none', rownames = FALSE, options = list(searching = FALSE, paging =...

View Article

Importing a second package's S3 method for a class defined in a first...

I have the following dependency chain in a package I'm developing:My package uses a class (trajectory) defined in package A (simmer).It also uses an S3 method for that class (plot.trajectory), which is...

View Article
Browsing all 201839 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>