Posts by TheBiro • 525 points
11 posts
-
4
votes3
answers1792
viewsA: Columns with numbers of different rows, how to join?
I simulated some basis to exemplify what you want, please let us know if there is any inconsistency: The bases with 3 and 4 lines, where the equal values are a1 and a2 (in your case are the dates):…
-
0
votes2
answers157
viewsA: Using a dataframe values in ifelse
Updating the solution: procura <- as.data.frame(sapply(as.character(recursos$Server), function(x) grepl(x, eventos$Eventos)), stringsAsFactors = F) # Adiciona uma coluna "Missing" para os casos…
-
1
votes1
answer620
viewsA: Fixed footer and header
You can see that the footer is fixed and the header is not, and the value position is respectively absolute and fixed. Then, you only need to change the header value as follows: #header{ height:…
-
7
votes2
answers604
viewsQ: PDF to text organizing columns
I am scraping to extract files .pdf, and I need these files as an organized text, since for each line of text in the file there are 3 different columns. For example in this file, you can see the 3…
-
4
votes2
answers133
viewsQ: Direct (and beautiful) solution to fix base using dplyr
I have the following basis of defaulters: df <- data.frame( lead_15 = c(1,0,0,0,0,1,0,0,1,0,0,0,0,0,1), lead_30 = c(0,0,0,1,0,0,1,1,0,1,0,0,0,1,0), lead_60 = c(0,1,0,0,1,0,0,0,0,0,1,1,0,0,0),…
-
2
votes2
answers190
viewsA: Edit the style of the external div tag of a box in Shiny
I was able to find a solution. When I create the box with width = NULL it does not come within a div, so I can create the div myself (in the R is the column()), but you get an extra div. For…
-
7
votes2
answers190
viewsQ: Edit the style of the external div tag of a box in Shiny
I’m developing an app on R’s Shiny, and I’m having trouble editing the tag out of a box. When I turn the remote: box( title = 'Teste', width = 4 ) the corresponding HTML it creates is: <div…
-
5
votes1
answer70
viewsQ: How do I exchange a apply inside a for for for a double apply?
I have a vector origem and a vector destino with different locations in latitude and longitude. For each location in origem, I want to count how many places in destino are located in a radius of up…
-
3
votes1
answer116
viewsQ: Save changes from a loaded app to shinyapps.io
I’m developing an app in Shiny that I’m going to upar at shinyapps.io. It consists of an already loaded table that the user can select some row, and then a report is generated based on the selected…
-
3
votes1
answer83
viewsQ: Change output in Shiny only when I change value in numericInput()
I have this table in my Shiny app. | a | 2 | | b | 3 | | c | 5 | Has a box to choose a line (from 1 to 3), and from this it prints the value for that line. There is also another box so I can change…
-
2
votes1
answer519
viewsA: Read file with non ascii format [à="<U+00E0>"]
To export to . csv in the correct encoding just add the argument fileEncoding in function write.csv() The code would look like this: dados <- readRDS('roubo2.rds') write.csv2(dados, 'roubo2.csv',…