Questions tagged [rstudio]

This tag should be used to ask questions about the usage, installation, configuration and upgrade of the RStudio IDE. Questions related to programming in R, Rmarkdown or Shiny should be tagged with their respective separate tags

71 questions
61
votes
10 answers

IDE alternatives for R programming (RStudio, IntelliJ IDEA, Eclipse, Visual Studio)

I use RStudio for R programming. I remember about solid IDE-s from other technology stacks, like Visual Studio or Eclipse. I have two questions: What other IDE-s than RStudio are used (please consider providing some brief description on them). Does…
IgorS
  • 5,474
  • 11
  • 34
  • 43
18
votes
5 answers

Anconda R version - How to upgrade to 4.0 and later

I use R through the anaconda navigator, which manages all my package installations. I need to use qgraph for a project, which is dependent on mnormt library, which in turn needs RStudio verion >4.0 I think the solution to my problem would be to…
Saranya Prakash
  • 193
  • 1
  • 1
  • 4
7
votes
4 answers

Rules by which RStudio sets Headings

RStudio automatically recognizes headers in an R script that are set via comments: I would like to exploit that feature, but I don't quite understand what the rules are for RStudio to recognize them as headers. Can someone explain?
Make42
  • 842
  • 2
  • 9
  • 19
4
votes
1 answer

Does the choice of normalization change dramatically the result of a KMeans

I'm using a KMeans to get the profile of several users according to several columns (I'm working with RStudio). To analyze my clusters, I decided to realize a radar chart, so I decided to use feature scaling : x-min(x)/diff(range(x)), to have my…
MBB
  • 109
  • 6
3
votes
1 answer

Creating a pie chart with historical motion in Rstudio

So, I created several pie charts showing voting percentages for republicans and democrats, from 2008 to 2016 with plotly package in Rstudio. What I would like to do, to make it sleek, is create a menu for a user to click on(2008, 2012, 2016), and…
bobmart32
  • 31
  • 1
3
votes
2 answers

sum of distances from N-points to set of other M-points in R

Imagine two related problems: I have one 2-dim data point and a set of $M$ 2-dim other data points. How to calculate sum of all distances between one point and those $M$ points? Result is one number. Now I have $N$ 2-dim points and same set of $M$…
2
votes
1 answer

How can I combine two datasets and assign factors to each?

I have a very basic question (just starting with R). I have two datasets (xlsx files) with one variable (x) and 11 observations. I need to combine these two tables to one table with the variable x (ending up with 22 observations and 1 variable).…
Katharina
  • 21
  • 1
2
votes
0 answers

What would be a good threshold number to convert some categories to Not Specified

The current topic is derived from this topic: https://community.rstudio.com/t/39722 (optional to read). I have the following dataset: myds : str(myds) 'data.frame': 841500 obs. of 30 variables: $ score : num 0 0 0 0 0 0 0…
2
votes
3 answers

R Studio like editor for Python?

I hope this question is okay for the forum. I want to ask for your experiance with Python editors. Currently, I use VS-Code to work with Python. However, in R Studio I really appreciate that it holds data frames in the memory and makes it easy to…
Peter
  • 7,896
  • 5
  • 23
  • 50
2
votes
2 answers

Running multiple random forest and combining them

I am trying to build a random forest model in R (RStudio). My training dataset has around 2 million rows and 38 variables. When I tested 5000 rows from this dataset I was able to build the random forest but when I run on the whole dataset I get the…
2
votes
1 answer

How to make smaller categories with factor character variables

I have this data set with consist of ISO3166 Alpha-2 codes for countries. Example: DE, AD, AE etc They are coded as factor variables in R and there are about 173 observations. Now because there are too many and this would just overwhelm a boxplot, I…
Beharrlich
  • 29
  • 1
2
votes
0 answers

Split large dataset for predictive modeling using rsparkling -sparklyr

I am trying to build machine learning models (GBM, RF, Staking) on top of a dataset that is about 3G in size on my local computer. However, I only have 4G memory (only 2G are available). My question is : is it logical to split the whole data on 20%…
2
votes
1 answer

Replacing words by numbers in multiple columns of a data frame in R

I want to replace the values in a data set (sample in the picture) using numbers instead of words, e.g., 1 instead of D, -1 instead of R, 0 for all other values. How can I do it with a loop? I know it can be done doing this instead: (suppose d is…
Yellow whale
  • 21
  • 1
  • 1
  • 3
2
votes
2 answers

How to summarize(add) a column according to same year and plot in R?

I have following type of data. But I would like to have graph with X-axis as Year and add all the sales added up in that year on Y- axis. The Data frame name is salesdata. I have nearly 8000 rows of data. and the column headers are in the picture…
Ashok Kandipati
  • 21
  • 1
  • 1
  • 4
1
vote
0 answers

CoxPH model with Frailty and L1 regularization

This question stems from an approach proposed by Dr. Silverman, "Predicting Horse Race winners through A Regularized Conditional Logistic Regression with Frailty." In this paper, he proposes a modified Cox Proportional Hazard model including a…
1
2 3 4 5