Questions tagged as 'r'

1
answer

Bar Chart in ggplo2, geom_bar ()

I made this chart with geom_bar() , I would like the bars to stick to the bottom line, indicated by the arrows. How could I do it? Is there any parameter of the theme() function that can solve this problem?     
asked by 17.09.2018 / 20:59
1
answer

Plotting the evolution of the data in time in the R

Good afternoon, I'm having trouble plotting this data series over time. I would like to see the frequency of customers without CPF and without note per month, and how these indicators are evolving. I can see this by looking at all the data...
asked by 29.06.2018 / 20:00
1
answer

How to use strings as parameters in R

Galera, I need to create a column using a string and use other column strings as arguments, for example: dataframe <- dataframe %>% mutate("Newstring" = case_when("stringA" < 65 & stringB == 0 ~ 1, TRUE ~ 0)) I believe parsi...
asked by 26.05.2018 / 18:36
1
answer

How to compare two columns of a worksheet, and keep information that is the same?

Hello I'm working with a spreadsheet in Excel that has this structure: Coluna_A Coluna_B A A B B C C C_1 E D E F What I want is to figure out a way to put together a third column, which has data p...
asked by 03.06.2018 / 01:46
1
answer

Is there any function in R that can convert dates?

Good afternoon, I'm new to the R language, and I need a little help. I would like to know if there is a function that changes the date of the timestamp, it was to be time and date, but the database made me available the way it is in the...
asked by 08.05.2018 / 20:30
1
answer

R - gtrends: ISO language code "pt" or "en-US" do not work?

. Guys, I'm using gtrends and I'd like to get the related "pt_BR" in Portuguese, but the "hl" argument of the gtrends function is not returning to Portuguese. Without the argument, it returns related topics in English. Would anyone have any tips?...
asked by 13.05.2018 / 13:35
2
answers

How to return a logical value when rows have identical values in software R?

I have a database that contains 3 variables: var1 , var2 and var 3 . I tried to use some functions in R that would return me a logical value if any of the rows had the same values. One of them was the all function, as b...
asked by 27.10.2018 / 04:36
1
answer

PDF reading in R

I am doing a job for college and would like to get the income and the public from every Brazilian championship game of the last few years. The CBF makes available in a series of links, an example is the Borderô . For other similar problems I us...
asked by 08.05.2018 / 02:00
1
answer

Calculating rates in R

I have the following dataframe: data <- data.frame(Individuo=c("1","2","3","4","5","6"), Sexo=c(2,4,4,2,4,2),Ocupaçao=c(1,1,2,2,1,2), Raça=c("Branco","Negro","Pardo","Branco","Pardo","Branco"), Estudo=c(10,12,14,16,13,11)) Where,...
asked by 13.03.2018 / 21:03
1
answer

Understanding the survey

Come on ... I'm studying the survey package I started by studying this page link But my questions are more basic I have already loaded the following database > mydata id str clu wt hou85 ue91 lab91 1 1 2 1 0.500...
asked by 09.06.2014 / 06:16