Questions tagged as 'rstudio'

1
answer

How to insert a caption on a map in R (with the RColorBrewer package)?

I did a fictitious k-means cluster analysis. I want to create a caption (cluster1, cluster2 and cluster3), which is represented by the variable "kmeans" (clusters formed). I do not know if it would be possible to enter a scale. If possible, how?...
asked by 17.07.2018 / 05:23
1
answer

Error importing .csv data into RStudio

When I'm going to import and create a file my data to R it's error ... I tried the following path: melipona <- paste(system.file(package="dismo"), "/ex/Melipona.csv", sep=";") melipona<-read.csv(melipona,header=TRUE,sep=";") Th...
asked by 14.07.2017 / 17:04
1
answer

Reading of PNAD 2016 data

When reading Pnad 2016, I ran the code below in r studio # Ler o dicionário de variáveis com as posições #devtools::install_github("tidyverse/readr") library(readxl) library(dplyr) library(readr) dic = read_xls("dicionario_das_variaveis_PNAD...
asked by 20.11.2018 / 01:06
1
answer

Data content - R [duplicate]

no R (rstudio) I have a vector v1 <- c(543, 543, 543, 675, 675, 675, 675, 22, 22, 22, 90, 90, 87, 876, 867) . I would like to get a vr vector that represents the count of v1 (increasing 1:n ) of the numbers t...
asked by 02.01.2018 / 17:05
1
answer

Select part of Text in R

I would like to filter specific elements of a row, similar to the Excel filter. I have the following example: NOME VALOR LEITO 1 10 LEITO 2 - HPP 20 LEITO 3 - HPP 30 LEITO 4 40 I need to filter, in the name column, lines with the...
asked by 01.12.2017 / 13:15
1
answer

I need to add captions to my chart in R

#--------------Biblioteca necessária para gerar gráficos library(ggplot2) #setwd( '/home/gabriel/Videos' ) #-------------------------------Carrega arquivo csv dados1 <- read.csv(file.choose()) dados2 <- read.csv(file.choose()) dados3 <...
asked by 27.09.2017 / 20:08
2
answers

How to calculate the average of a column in RStudio but ignore the values 0 of the column?

example column 1 = 1 2 3 4 0 0 0 the normal average of this would give 1.428571 however ignoring the 0 would be 2.5, I would like to know how to do this by ignoring the 0 column values.     
asked by 23.04.2017 / 19:03
1
answer

Fit models for calculating meta-regression in R Studio

I started using R Studio a short time ago to do a meta-regression analysis using the mada package. I need to create a fit template for each variable and after creating 6 templates the R started to give an error saying that it is not finding the...
asked by 15.06.2016 / 15:55
0
answers

How to search APP RStudio Shiny

I'm entering the world of Shiny Rstudio now. One question I came up with is: how do I search for the Shiny Apps available / created? Are all created Apps available? Is there any way that, once I create my app, I prevent it from being viewed? Or...
asked by 21.11.2018 / 17:02
0
answers

Data normalization in R

I'm trying to normalize the data and give the following error: Error in if (colSd != 0) res[, i] <- (x[, i] - colMean)/colSd else res[, : missing value where TRUE/FALSE needed The code in R is this: # Modelo de Trinamento de uma Re...
asked by 05.07.2018 / 17:40