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

Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

How to auto-generate 'anchor links' and directory path to text search function? [closed]

I have a tokenized txt document with 'div' tags and 'id' to it : ...
0
votes
1answer
18 views

How to output my uploaded text in Shiny in R at the position of the screenshot?

I would like to position a long text on the right side of this Shiny app, as shown on the screenshot below. ...
0
votes
1answer
30 views

Creating dummy variables [closed]

I have a Eurobarometer dataset and want to eventually create a logistic regression model and a linear probability model using a set of dates as the dependent variable. However, the dates in the ...
2
votes
0answers
47 views

How to achieve SHAP values for a CATboost model using Rstudio?

I must use Rstudio for my work and I'm also asked to create SHAP analysis but I cannot find it how to obtain them. It is easy in python but I think it hasn't been implementet in R yet. I also have ...
1
vote
1answer
25 views

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 ...
1
vote
1answer
22 views

Keeping DataFrame in Memory while working - R vs Python in VS Code

I am considering migrating from R-Studio to Python. So I am just starting Python with VS Code as my editor. My purpose is mainly to analyze data, build predictive models and make such models available ...
0
votes
0answers
5 views

Rstudio opens old file

I a using Ubuntu 18.04.4 LTS. It happens often that I am unable to use Rstudio, since, whenever I open it, it keeps opening old rmarkdown files I used to work on, and becomes unresponsive. The only ...
0
votes
1answer
30 views

How to create a matrix from two given vectors in R in RStudio?

Suppose, $c(1, 2, 3, 4)$ and $c(2, 4, 5, 6)$ are two vectors. Then in R or RStudio, How to create a $4\times 2$ matrix from these two vectors? Also, how to add another vector $c(8, 9, 10, 11)$ ...
0
votes
1answer
34 views

RStudio/RMD files to create a student version assignment from the instruction version assignment solution

Does anyone know plugin or package in Rstudio to create a student version assignment from the instruction version assignment solution? I know nbgrader for Jupyter Notebook that can do this, but I am ...
0
votes
0answers
13 views

Using lmer in R Studio with a large data set

I have a very large data set (127,000 observations, each point has 22 variables). I am only interested in 7 of those variables. The two dependent variables (linear and rotational acceleration) are ...
-1
votes
1answer
16 views

Which graphical tools can be used to display uni- or bivariate continuous data?

There are 4 options to this multiple question, Scatterplots Conditional density plots Histograms Boxplots I chose Scatterplots and Histograms but the answer is either wrong or not enough, I haven'...
0
votes
2answers
22 views

Converting data format

I'm trying to use the recent COVID-19 data from the site of Italian Civil Protection, but they use a rather complicated time format that I'm finding troublesome as a novice to plot as data in a graph. ...
1
vote
0answers
8 views

RStudio keyboard shortcut to run child documents in a knitr doc?

I have a knitr doc. Actually, many. I've started factoring out common code in child documents. For example, in a doc foo.Rnw I might have: ...
1
vote
1answer
20 views

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 (...
1
vote
0answers
28 views

Predict with some probability the day of the month paycheck received through daily transactions

I am using R to do machine learning. I have daily shopping expenditure data of individuals over a couple of months and my goal is to be able to identify through their shopping pattern the day of the ...
0
votes
0answers
12 views

R Studio functions appear as headers

In R Studio, you can split a script by Header using code like # Heading 1 ------- These Headers are easily accessed via the drop down in the lower left of the ...
1
vote
0answers
15 views

Automatically clear Rstudio temp files when manually stopping background “job” [closed]

When I manually stop a local background job (that is running a loop over many rstan analyses) on Rstudio, Rstudio/R treat the job as if it's failed (rather than ...
0
votes
1answer
37 views

How to get a output of a hidden layer of a single-layer LSTM

How can get the hidden layer outputs in a simple one-layer lstm? ...
1
vote
0answers
10 views

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 : ...
0
votes
0answers
40 views

Exploratory Data Analysis for Big Data with continuous and categorical variables (mixed data types)

I have a dataset with 28 variables (6 continuos + 22 categorical). I'm using ...
0
votes
1answer
650 views

Error loading tidyverse in R Studio - No broom package

I'm getting numerous errors when trying to install packages, namely tidyverse and ggplot. The error is of the form are always in the form: ...
1
vote
2answers
82 views

install_tensorflow() keeps overwriting virtualenv, making it impossible to install tensorflow and keras

I would like to use the Keras & Tensorflow package for R in RStudio. Everytime I use the command install_keras() or install_tensorflow(), I get the following error: ...
0
votes
1answer
34 views

Y-axis output is not order

I am currently attempting to output some data based on user agent strings. The strings are too messy to place into a plot similar to the one shown below, so I plotted their index instead. Why is my ...
2
votes
3answers
798 views

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 ...
-1
votes
2answers
31 views

How do I fix space allocation error on a machine with plenty of space?

I'd like to run a model on RStudio Server, but I'm getting this error. Error: cannot allocate vector of size 57.8 Gb This is what my data looks like and it has 10,000 rows. ...
1
vote
1answer
826 views

Kmean clustering on text data

I have a large raw dataset on crime and I want to cluster the data using k-means, However, I get an Error when I enter this code: ...
0
votes
1answer
70 views

error trying to build a histogram using r with the rStudio application

Using ggplot2 I am attempting to create a histogram. I have a column that is full on the continents. I need to add all the continents which I attempted to do with the aggregate function. ...
0
votes
1answer
57 views

found \N in my data does not count as missing values in r

So scrolling through my columns I find \N embedded. I need to count them, but I get an error. Would it be considered a missing value, it's new to me. ...
-1
votes
1answer
203 views

How to Plot a two line graph out of three tabular columns in R

This definitely not what I wanted. I'm learning to plot, but I want my x value to be dates and my y value to be line graphs telling the story of projected vs performed values. So far here is what I ...
0
votes
2answers
463 views

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 ...
1
vote
0answers
32 views

personalize the output with Rstudio

I'm trying to mine some data with Rstudio, but I have problem in the results output. Trying to search big number from 100000 to 900000 the function works well but ...
0
votes
1answer
79 views

Errors generated in Rstudio [closed]

I'am using Rstudio to create some codes. the cods works pretty well, without any error and gives the output desired. But when I turn on the PC after period and re-execute the same code, it generes ...
2
votes
1answer
25 views

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 ...
2
votes
0answers
51 views

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 ...
0
votes
1answer
29 views

Do DBMS decrease Memory requirements?

I finished my Economics thesis using RStudio, but my script was very slow due to massive RAM consumption during the process. My Case I had a massive dataset (stock prices in daily frequency for 10 ...
1
vote
1answer
38 views

Different R Markdown in same document for each output type

In R Markdown, I would like to be able to conditionally include certain chunks depending on what I am outputting to. For example if I am knitting a PDF I would like to include a small bit of LaTeX to ...
1
vote
1answer
8k views

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
vote
0answers
365 views

R studio, one multi core CPU vs dual single cores

So far I was using R on my home pc: i3 CPU, two cores, 4 threads. In order to run the code faster I was using the package "DoSnow", utilizing 3 out of the 4 cores in order not to choke my system ...
1
vote
0answers
388 views

Multilabel multiclass classifier returns same probabilities for any input

I am new to deep learning. I have a collection of website texts and the activity class each company belongs to. A company can list multiple activity classes (NACE-codes) The goal is to build a ...
4
votes
1answer
130 views

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 ...
-2
votes
1answer
2k views

Error in mlogit package: system is computationally singular: reciprocal condition number = 8.87901e-37

I have a data set that is formatted according to mlogit's standards using mlogit.data command in Rstudio. Here is the first three rows of the dataset. ...
-1
votes
1answer
411 views

where does the downloaded file gets stored in the R-Studio Server on Ubuntu EC2 Instance when using download.file()

Studio Server on an Ubuntu EC2 instance for the first time and successfully started r-studio server in my browser. I also have putty ssh client.For the Purpose of this Analysis i first want to ...
-2
votes
1answer
2k views

how to sum a variable by group in r and display in a tabular form?

Say I have this data ...
-1
votes
1answer
95 views

Error While Trying To Transform Data Into Stocks Object [closed]

I am following a tutorial on R-Bloggers on an introduction to stock market data analysis. I got to this part - ...
2
votes
1answer
386 views

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 ...
0
votes
2answers
7k views

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 ...
4
votes
4answers
7k views

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 ...
1
vote
1answer
6k views

Rstudio using 2.5% of 250GB RAM. how to Increase it [closed]

I am working on Rstudio on a server which has 250GB ram. But its taking too much time to handle a 2GB data file. how should i speed up my work?
1
vote
1answer
674 views

How do I access data on my EBS Volume from R-Studio Server on Ubuntu EC2 Instance

I have setup R-Studio Server on an Ubuntu EC2 instance for the first time and successfully started r-studio server in my browser. I also have putty ssh client. How do I set path in r-studio server to ...
51
votes
10answers
77k views

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 ...