Questions tagged [r]
R is a language and environment for statistical computing and graphics similar to S.
                35 questions
            
            
            
                2
            
            votes
        
        
            
                1
            
            answer
        
        
            
                103
            
            views
        
        
            
            
            
        How can I generate visualizations in JavaScript using data and packages from R?
                    I have a tumor dataset in R that is a Seurat object. I am working on a project to develop a new visualization tool for single-cell RNA-seq data. I want to develop the visualization using JavaScript, ...
                
            
       
        
            
                9
            
            votes
        
        
            
                4
            
            answers
        
        
            
                663
            
            views
        
        
            
            
            
        How to document alternative code I considered but didn't go with due to performance?
                    I write code in R, and often find myself attempting to optimize the code for better performance. In a given script that tackles a specific problem, I test different code alternatives and compare them ...
                
            
       
        
            
                2
            
            votes
        
        
            
                0
            
            answers
        
        
            
                66
            
            views
        
        
        What is the recommended way to start a long-running containerized analysis in R from NodeJS?
                    I have a frontend through which users can submit analysis requests, which are inserted into a database. These analysis requests are received in a NodeJS server using Postgres notify/listen. Using ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                67
            
            views
        
        
            
        Autoscaling containers on Azure
                    I have a web application that depends upon a set of R analytics. These R analytics read data from a database and perform machine learning, so have high CPU use.
The R analytics are accessed through ...
                
            
       
        
            
                1
            
            vote
        
        
            
                0
            
            answers
        
        
            
                103
            
            views
        
        
            
        Architecture recommendation for dynamic integration of algorithms/scripts
                    I am looking for a simple software architecture that is able to evaluate user data using different versions of algorithms. 
According to my concept, the user is able to upload tabular data via a Web ...
                
            
       
        
            
                4
            
            votes
        
        
            
                1
            
            answer
        
        
            
                155
            
            views
        
        
            
            
        Is it reasonable for an R package to import another package just for coding convenience?
                    I am writing my first R package, converting my existing scripts into a bona fide package. I frequently use the magrittr pipe operator %>% in my code because I find it makes code more intuitively ...
                
            
       
        
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                217
            
            views
        
        
            
        best practice for data.table use in "formal" code
                    Consider a "large-ish" data set (~2-5M rows) that goes through multiple stages of cleaning/processing:
library(dplyr)
largedat %>%
  mutate(
    # overwrite v1 based on others
    v1    = somefunc(...
                
            
       
        
            
                -1
            
            votes
        
        
            
                1
            
            answer
        
        
            
                194
            
            views
        
        
            
        Interest of having two functions doing the exact same thing [closed]
                    ls and objects functions are both from the base package and are exactly the same as discussed here. I've seen other examples of duplicated functions (in the tidyverse and base if I remember correctly)....
                
            
       
        
            
                4
            
            votes
        
        
            
                2
            
            answers
        
        
            
                395
            
            views
        
        
            
            
            
        What is considered good/best practice around handling ad-hoc coding requests?
                    I am a data scientist and do lots of programming in R/RStudio.
I like to be organised (as I'm sure (hope) most programmers do) and as such I always use the Project feature in RStudio to keep my work ...
                
            
       
        
            
                6
            
            votes
        
        
            
                1
            
            answer
        
        
            
                534
            
            views
        
        
            
            
        What is considered best practice around using git / VCS's when doing a complete code rewrite?
                    I am a data scientist who programs in R, but am relatively new to using version control (yes, I know!) and I am still learning lots about it.
FYI: I use BitBucket and Sourcetree
I understand the ...
                
            
       
        
            
                1
            
            vote
        
        
            
                2
            
            answers
        
        
            
                240
            
            views
        
        
            
            
            
        What's a good term for an R value of length 1?
                    In R, the simplest kind of value is an "atomic" vector with a primitive type like double, but it can have any length, so the term "atomic" is not what I want.
Here's an example: I ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                791
            
            views
        
        
            
            
            
        UML class diagram for MVC project that run R project
                    I'm working on ASP.NET MVC project where controller calling static class that run R scripts from external R project   
Controller 
public ActionResult Index()
        {
            Rscript.Run("...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                82
            
            views
        
        
            
            
        Can longitudinal data be seen as complying with 1st normal form?
                    This is probably a sloppy way to see it, but I wonder if the idea of longitudinal datasets (to be used in ggplot2, for instance), can be exlpained as complying with the criteria of data in a 1st ...
                
            
       
        
            
                6
            
            votes
        
        
            
                1
            
            answer
        
        
            
                2k
            
            views
        
        
            
        What does AGPL v3 R-studio mean for code written on it? [closed]
                    Rstudio has a community version for free:
https://www.rstudio.com/products/rstudio/#Desktop
But mentions the license is AGPL v3.
Does this effect the licensing or IP rights of code written on the ...
                
            
       
        
            
                2
            
            votes
        
        
            
                0
            
            answers
        
        
            
                123
            
            views
        
        
            
        Mass Spectrometry Data Analysis
                    I'm currently in the process of writing a program in R to perform analysis of data from a mass spectrometry experiment. Well, that's the idea. I'm fairly new to R, and didn't actually perform the mass ...
                
            
       
         
        