Skip to main content

Questions tagged [r]

R is a language and environment for statistical computing and graphics similar to S.

Filter by
Sorted by
Tagged with
2 votes
1 answer
106 views

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, ...
waldo_gb's user avatar
9 votes
4 answers
667 views

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 ...
Emman's user avatar
  • 209
2 votes
0 answers
67 views

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 ...
Chintan Pathak's user avatar
0 votes
1 answer
71 views

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 ...
zola25's user avatar
  • 131
1 vote
0 answers
103 views

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 ...
Mr. Rookie's user avatar
4 votes
1 answer
159 views

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 ...
Josh's user avatar
  • 151
1 vote
1 answer
220 views

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(...
r2evans's user avatar
  • 346
-1 votes
1 answer
195 views

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)....
ARandomUser's user avatar
4 votes
2 answers
396 views

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 ...
MusTheDataGuy's user avatar
6 votes
1 answer
537 views

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 ...
MusTheDataGuy's user avatar
1 vote
2 answers
240 views

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 ...
Chris's user avatar
  • 159
0 votes
1 answer
791 views

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("...
programmer's user avatar
0 votes
1 answer
83 views

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 ...
Dambo's user avatar
  • 101
6 votes
1 answer
2k views

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 ...
Bren's user avatar
  • 179
2 votes
0 answers
123 views

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 ...
user avatar
2 votes
3 answers
3k views

I'm using a large and complex library including R and C++ code, available online via a subversion repository. Trying to figure out how it works I took a bunch of notes in the source code itself, in ...
ggll's user avatar
  • 129
2 votes
1 answer
65 views

I am inexperienced with iteration in R and am hoping to speed up a process as I am implementing some analysis in a website. I realise that this may be a Q for SO but I couldn't get an answer from them....
Chris's user avatar
  • 123
3 votes
1 answer
591 views

Can I use R via RDOTNET without having to provide the source code of my application. R is covered under GNU GPLv3. RDOTNET is under New BSD. From the RDOTNET description: "R.NET enables the .NET ...
cheedep's user avatar
  • 133
-3 votes
1 answer
135 views

I am currently studying R. While studying that I came across a command set.seed(any number) . After googling also I didn't understood much except that it has something to do with Random number ...
Dark_Knight's user avatar
5 votes
4 answers
1k views

In our company we have a handful of R users who have collectively written some ~30 .R scripts over the last year. The scripts are mostly 100 lines or less, defining useful and reusable functions. ...
logworthy's user avatar
  • 175
3 votes
3 answers
310 views

I'm primarily a Python/R developer. In those languages, the way I develop is to sketch out a data and class structure, write the methods and their tests in interactive mode, then refactor them up into ...
Carbon's user avatar
  • 181
3 votes
1 answer
258 views

In reading Hadley Wickham's Advanced R I learned about the difference between atomic vectors and lists; and matrices/arrays and dataframes. This is something I hadn't really appreciated before, and ...
Phil's user avatar
  • 161
-2 votes
1 answer
195 views

I have only recently started to market myself as a 'programmer' rather than an analyst or something else entirely. In a recent search of freelance/part-time/contract work, I came across an ad for a ...
Steven's user avatar
  • 109
11 votes
2 answers
2k views

I'm writing a commercial package that uses R (GPL) for its computation. The GPL FAQ clearly states that GPLed programming language interpreters do not impose licensing restrictions on the "program" (...
r2evans's user avatar
  • 346
2 votes
1 answer
185 views

A colleague and I are doing a free R course, although I believe this is a more general lazy evaluation issue, and have found a scenario that we have discussed briefly and I'd like to find out the ...
Matt_JD's user avatar
  • 121
8 votes
1 answer
357 views

My group has been developing an R package to simulate plant growth (see GitHub repository). The R package uses .Call to interface with C. We have decided that it would be worthwhile to create a ...
David LeBauer's user avatar
3 votes
1 answer
253 views

I'm finding R confusing because it has such a different notion of reference than I am used to in languages like C, Java, Javascript... Ruby, Python, C++, well, pretty much any language I have ever ...
djechlin's user avatar
  • 2,212
10 votes
4 answers
3k views

It seems to me that programming languages meant for use in science and engineering are consistently weird compared to general-purpose languages. Some examples off the top of my head: In Matlab, each ...
haroba's user avatar
  • 225
60 votes
5 answers
111k views

I have been programming for about a year and I am really interested in data analysis and machine learning. I am taking part in a couple of online courses and am reading a couple of books. Everything ...
The_Cthulhu_Kid's user avatar
3 votes
6 answers
4k views

I am (re-)designing some packages for R, and I am currently working out the necessary functions, objects, both internal and for the interface with the user. I have documented the individual functions ...
Joris Meys's user avatar
  • 1,923
2 votes
2 answers
435 views

I spent the last week learning 3 new tools: R, Sweave, and LaTeX. One question that came to my mind when working through my first project: Where do I place the majority of the R code? The tutorials ...
Clayton Stanley's user avatar
6 votes
6 answers
1k views

Considering I have no programming background, Is there a resource out there that's the de-facto standard for describing best practices, design methodologies, and other helpful information on R ...
Rosalyn Gao's user avatar
1 vote
2 answers
790 views

I am currently working on a system that will generate product recommendations like those on Amazon: "People who bought this also bought this.." This is how I plan to do it: Process the data using ...
samridhi's user avatar
  • 113
2 votes
1 answer
328 views

I'm interested in statistical computing. R is a leader platform obviously but what about Incanter? Incanter is at the top of my list since I'm a Clojure and JVM guy. Do you have any real world ...
Chiron's user avatar
  • 4,563
25 votes
6 answers
10k views

I love programming in languages that seem geared towards hardcore programmers. (My favorites are Python and D.) MATLAB is geared towards engineers and R is geared towards statisticians, and it seems ...
dsimcha's user avatar
  • 17.3k