Questions tagged as 'r'

2
answers

Know how many times a number is repeated in a Dataframe in R

I am new to R and I have the following question. I have the following data in R Estado 1 1 2 1 3 2 4 3 5 3 6 3 7 4 8 5 9 5 and I want to get the number of times that are repeated each...
asked by 16.04.2018 / 06:57
1
answer

delete space from the names of a variable in r

I have a variable (a column) with names and surnames. I want to eliminate the space between the name and the last name. How can I do it, without converting all the fields of my matrix into factors?     
asked by 17.11.2016 / 12:04
1
answer

R: grouping the values of a dataframe in ranges

Considering a dataframe like this: a$ID<-data.frame(c("PV001","PV001","PV002","PV002","PV003","PV003")) b$freq<-data.frame(c("468","487","213896","212005","90827","86592")) c<-cbind(a,b);colnames(c)<-c("ID","freq") I wanted...
asked by 12.12.2018 / 19:49
1
answer

Convert a value of Paste to a variable

I have the following problem, I paste a character to form another character as follows: paste0("SUMATOT", "VALORES", sep = "") Now what I need is to convert that paste into a variable to which I can assign values, I used the get func...
asked by 04.12.2018 / 18:30
3
answers

Graphic doubt of violins

I am taking my first steps with R. In this case I am representing a violin chart with my data, and I have a question. (1) I do not know what to do to order the violins from left to right, from the lower to the medium average . And in some paper...
asked by 26.03.2018 / 11:54
1
answer

Is it possible to remove a given conditional character in R? [duplicate]

I need help to clean a database in R. I need to remove a point that is at the beginning of some lines, I'm using R and the formula sub("^.","", x) the problem is that using this formula eliminates the 1st line of my entire base, Is...
asked by 08.05.2017 / 19:41
1
answer

ggplot2 shows nothing or gives error

I'm testing the R ggplot2 package. I have tried in different ways and I never get a satisfactory result (rather, I always fail). I'm trying to make a graph that shows me the number of consultations per year. Using a plot by default of...
asked by 27.02.2017 / 12:28
2
answers

Problem with loading speed

I'm trying R and learning to use it. I'm making an application with shiny loading the data from an ORACLE base. To load the data I have created R scripts to part of the application and to launch it I load the data before with this scirpt: l...
asked by 21.02.2017 / 14:44
1
answer

problem with dates in r studio

I have a CSV file with this data DATE,IUMABEDR 31 Jan 1975,11.3295 28 Feb 1975,10.6875 31 Mar 1975,10.2632 30 Apr 1975,9.9091 31 May 1975,9.9762 30 Jun 1975,10 31 Jul 1975,10.1739 31 Aug 1975,11 30 Sep 1975,11 31 Oct 1975,11.8696 30 Nov...
asked by 18.11.2016 / 14:19
1
answer

RStudio I do not show import dataset by URL

I just started with an R course and I'm in the part of importing data, the option to import from a URL comes out in the course - But in my Rstudio it does not come out, this is because I'm missing some package? Does the version you inst...
asked by 27.12.2018 / 20:58