Questions tagged as 'rstudio'

0
answers

Problems accessing a site via RStudio

Problems connecting to a particular site via RStudio url <- "https://www.jusbrasil.com.br/diarios/busca?q=%22licen%C3%A7a+sem+vencimentos%22&idtopico=T10001849&o=data" links <- read_html(url) %>% html_nodes('.DocumentSnippet'...
asked by 29.05.2018 / 16:52
2
answers

Withdraw NA in a Data Frame

I import a file containing more than 30 columns. Some blank lines that I imported the R recognize as "NA". When exporting these same columns, the lines that should be blank (empty) appear with "NA". How do I export by changing the "NA" for empty...
asked by 14.08.2018 / 17:10
3
answers

count of TRUE and FALSE

I have a vector with just TRUE and FALSE and would like to know how I can count how many TRUE and FALSE I have in this vector?     
asked by 03.05.2018 / 22:54
2
answers

Generate a date after a specific date

I have a column of a table with dates, I need to create another column with random dates and after that date. I used the seq.Date function for this but I get the following error. date_arq<-seq.Date(as.Date(base$DATE_END, "%Y-%m-%d")) Error...
asked by 06.06.2018 / 20:00
1
answer

Join multiple in R

I have two tables: dados and dados_aux . I need to add to the table dados the REGIÃO column, present in the dados_aux table. However, I have to use two keys to join: CIDADE and UF . Otherwise, the i...
asked by 31.01.2018 / 14:58
3
answers

Use of the sub function in the R - string with special characters

I'm running a database with the following values: data $ Col_Nova
asked by 27.10.2017 / 14:33
1
answer

Customize boxplot

I have the following data: structure(list(NotasMateriais...4. = c(1L, 2L, 8L, 5L, 5L, 4L, 4L, 2L, 9L, 2L, 5L, 3L, 1L, 3L, 0L, 3L, 3L, 2L, 2L, 3L, 0L, 2L, 14L, 0L, 0L, 3L, 6L, 3L, 4L, 3L), NotasMateriais...5. = c(3L, 3L, 4L, 3L, 9L, 3L, 15L,...
asked by 13.11.2017 / 14:40
3
answers

Aggregate function in R

Good afternoon. I'm using the aggregate function to group some data. However, I'm only using one variable to add. I would like to use more than one variable. It is possible? I'm using the following example: TESTE = aggregate(VALOR ~ REF...
asked by 05.12.2017 / 18:03
2
answers

Automate the creation of numbers in a loop in R

The digits after ^ ( 1 , 2 and 3 ) are the values that I want to automate (incrementally: from 1 to ith value): var1<-rnorm(3,5000,1300)/1.15^1 var2<-rnorm(3,5000,1300)/1.15^2 var3<-rnorm(3,5000,1300)/1.15^...
asked by 20.08.2018 / 05:28
1
answer

Extract table from a site to Rstudio

Hello, I want to get the Brazilian table, for example from this site " link " and extract for a dateset in Rstudio, so that whenever the table updates according to the games, it updates itself in rstudio as well. Can you help me?     
asked by 10.10.2017 / 20:38