Most voted "rstudio" questions
Rstudio is a free and open source (IDE) integrated development environment for R
Learn more…175 questions
Sort by count of
-
0
votes1
answer278
viewsView Table in Access Through R
My machine is 64 bit, I would like to know how to connect R to a table in Access (2016). As an example to facilitate, suppose the table in Access is called MAT and the Access file is in a folder in…
-
0
votes1
answer436
viewsR, Shiny and maps: How to render a map according to the choice in the dropdown_menu?
I am working on a Shiny app and would like the map to be rendered according to the user’s choice in a dropdown. I have three maps (M1, m2 and m3), what I need to put on the ui and server? Follows a…
-
0
votes1
answer241
viewsHow to update a dataframe column in R using joins without creating another object?
Rapazeada blz? Guy I am Newbie in R and I wonder if it is possible to update a data.frame in R by making key with another data.frame, the analogy in tsql would be this: Update a Set a.col1 = b.col2…
-
0
votes2
answers51
viewsHow to find out how many times a certain level is repeated in a specific column (factor) of a data.frame?
I am working with 4 data frames (W, X, Y and Z) that have the same number of variables. Factor (column/variable) 11 was classified into 3 different levels (1, 2, 3). I need to find out how many…
-
0
votes1
answer892
viewsHow to save a ggplot chart without losing quality to Word and Power Point?
I’m having trouble saving the graphics in a way that: they either lose quality or change their dimensions in relation to the background of the sheet that receives it. Attempt.1 <- A figure with…
-
0
votes1
answer26
viewsDate Below the chart
Hello, I have the following code my doubt is, using the function Legend has how do I put the dates below the chart? if not, what would be the best way to do that?…
-
0
votes0
answers7
viewspredictors <- stack(files)
Hello! When I try to load a map this appears: files <- list.files('. /wc2.1_2.5m_bio/', Pattern='. tif$', full.Names=TRUE) predictors <- stack(files) Error in data.frame(values =…
rstudioasked 3 years, 9 months ago Sâmia Caroline Melo Araújo 1 -
0
votes1
answer34
viewsHow to separate data that is in the same column in Rstudio?
Good evening, I have a table that I imported from excel to Rstudio and I want to work with the "Date" column. I need to separate the date from the hours and so far have not succeeded through the…
-
0
votes1
answer107
viewsError generating bar graph: 'height' must be a vector or a Matrix
Hello! When building a bar chart on R Language using the RStudio I came across the following mistake: Error in barplot.default(database$results, main = "EvasionChart", xlab = rotulo[1], : 'height'…
-
0
votes1
answer67
viewsHow to organize dates in ggplot2
I have a chart made with ggplot2, but when it comes to exporting it, the dates on the X-axis are totally unreadable, as in this example: How can I fix them? Code I’m using:…
-
0
votes0
answers571
viewsI can’t install any package on Rstudio!
When I open the option Packages, in the console appears that phrase: Aviso: unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/3.1* Even trying to install by clicking…
-
0
votes1
answer305
viewsAutomate script execution R
There is a script in the R link that works perfectly in Rstudio. To automate it, it runs every Tuesday at 15:00, I decided to create a file. bat and schedule its execution by the task scheduler,…
-
0
votes1
answer287
viewsI cannot install the dplyr package on Rstudio
I cannot install the "dplyr" package in Rstudio. When I try the following warnings appear: > install.packages("dplyr") Installing package into…
-
0
votes1
answer63
viewsGraphics in ggplot2, I want to add a loop to create graphics
I have a question in ggplot, I want to compare two tables and create graphs for each Gene in R: Table 1 Table 2 below I used as reference in the index for the loop: "gene_data" is variable for Table…
-
0
votes0
answers41
viewsHow do I make the legend of each curve appear in the graphic print area?
grafico <- read.csv("Pasta1.csv", header = F, sep = ";") library(ggplot2) Experimental <- ggplot(grafico)+ geom_line(size=1.2, aes(x=V1, y=V2))+ scale_fill_manual(values = c("Experimental" =…
-
0
votes0
answers10
viewsHow do I adjust the origin of the axes (x,y) to the points (0,0) using ggplot in Rstudio?
PLOT: VARIATION OF VISCOSITY Visc_M5 <- read.csv("VISCOSIDADE.csv", header = T, sep = ";") g1 <- ggplot(Visc_M5) + aes(x=Uexp)+ geom_line(aes(y=Pexp, col = "Experimental"), size = 1.1) Visc2…
-
0
votes0
answers37
viewsdynamic table in Rstudio
I am using Rstudio and would like to transform a table that is in this format municipality affiliated to entities Antoinina yes Antonina nay Antonina Not Antonina yes Antoinina NI Paranaguá nay…
-
0
votes1
answer41
viewsHow to position geom_text above geom_errorbar?
I would like help to position the label of geom_text (which in case would be a test of averages) exactly above each error bar, as I did the error bars by treatment, they were of different sizes, so…
-
0
votes1
answer60
viewsHow to change the legend, leaving it with the same strokes that are represented in the graph?
I generated a graph that has three types of line; dotted, dashed and continuous. The problem is that subtitles are displayed as if all lines were equal. How can I fix this? ggplot(dados,aes(x =…
-
0
votes1
answer159
viewsPDF R Markdown not generated
I started using Rstudio on Windows 10 recently. I tried the basic operation to save a PDF from R Markdown, however, when generating R Markdown, the file does not appear as . rmd, even having renamed…
-
0
votes0
answers14
viewsRstudio Server, with Shiny on AWS
all right? See if you can help me with a question. I use Rshiny for a Dashboard where I work, last month we migrated this application to a virtual machine (aws), installed the Rstudio server and…
-
-1
votes1
answer1011
viewsChange column type in Data in R Studio
I would like to know where I can get a material about data modeling in R Studio... I need to modify some columns, changing from text to value, for example, but I don’t know which command to use.…
-
-1
votes1
answer96
viewsMultivariate analysis with only one table
1 I am trying to relate quantities of polykets in oyster samples from different locations, the locations and quantities are in the same table, I started by boxplot to have medias and variables in R,…
-
-2
votes0
answers13
viewsCompleting the Nas of a Tibble
Hello, I have a database on R where there are some Nas in the variables. I would like to apply a logical function where Nas would be filled with the immediately preceding value. Below is an example:…
-
-5
votes3
answers137
viewsProblem reading readline keyboard input on R
Hello, I’m trying to do this program there in rstudio, but when I select everything to run, it gives this error. If I put it to run the first line and then the rest, then it runs the program…