Questions tagged as 'r'

2
answers

Separate data from a variable

I have a variable - (Municipality), which brings me the result (Açucena - MG). How do I separate the Municipality of the State in R? library(sidrar) Tab1612SojaRend <-get_sidra(1612,variable = 112, period = c("last" = 22),geo ="City",...
asked by 11.12.2018 / 19:43
1
answer

Axis x minute by minute [closed]

I need to identify and quantify time slots longer than 5 minutes from an extended column. "Time" column. Follow dput : structure(list(Time = structure(c(1541062677, 1541062678, 1541062680, 1541062681, 1541062681, 1541062683, 1541062685,...
asked by 05.11.2018 / 18:20
1
answer

How to create a plot with two or more side-by-side histograms:

I need to plot these two histograms side by side. hist(DEM) hist(Tdem) I can only plot individually.     
asked by 20.09.2018 / 23:48
1
answer

Error loading an average column [closed]

I changed the NA value by zero, changing it into a character because I could not calculate the mean. When trying to calculate the average again the following error appeared: Warning message: In mean.default(x = "ECONOMIA INSTITUCIONALIST...
asked by 27.04.2018 / 03:43
1
answer

How to make two loops for the same code only go varying the columns of the courses and the columns of the questions?

I have a date.frame with many codes in the rows and many columns of questions, I'm making the simple frequency of each question would like to know how to vary the courses and questions at once, without having to manually repeat the code I gene...
asked by 09.06.2018 / 17:14
1
answer

PDF graphics in R

I have the following exercise and I am in doubt on item b in bold. Perform a data analysis, using lm (), between two variables, just as we did in the room, but you must import data from any source using read.table () or equivalent commands ac...
asked by 12.12.2016 / 11:27
1
answer

Add rows and columns in R

Good morning, I have been using the R for quite some time and have learned in practice. Now I came across a difficulty with a table. How can I sum all the rows of certain columns and display the result in a new column? In case my initial t...
asked by 19.01.2018 / 07:26
1
answer

how to calculate the average of only one part of a Rstudio column

I have separated only one part of a column, I can not work with this data, I can only see it separately. Can someone help me?!     
asked by 03.02.2018 / 18:09
1
answer

Enter the name of the variables in the first row of the dataframe

I want to enter the variable name as the first line of my datafrane. For example: X11.3116555055603 X16.8234904296696 1 14.79609 10.37313 2 10.02141 16.38942 3 12.10137 18.75196 4...
asked by 21.09.2018 / 16:28
2
answers

Calculating a specific value in a dataframe?

Possessing this dataset: Índice Produto Classificação Comum Quilo 1 2 ABACAXI HAVAI A GRAUDO 3,32 2,2 2 3 ABACAXI HAVAI B MEDIO 2,81 1,8 3 4 ABACAXI HAVAI...
asked by 09.03.2017 / 20:59