Posts by Bruna • 183 points
8 posts
-
1
votes1
answer55
viewsQ: Quantitative position
I need to calculate the percentage of days that are in a certain range of values in the analyzed column (values are in percentage) in relation to the total quantity of days for that month. Initially…
-
4
votes2
answers101
viewsQ: Insert scale on y-axis for geom_line
I want to plot the columns analise1, analise2, analise3 in a single chart of lines but with different scales, because the width of the column analise1 is much larger than the other two columns. On…
-
0
votes1
answer56
viewsQ: Name columns generated by Summarise() and use division in the same function
df is the data frame with the data that I will work with df <- data.frame(matrix(NA,nrow = 30, ncol = 6)) colnames(df) <- c("ano","mes","x1","x2","x3","x4") df$ano <-…
-
0
votes1
answer42
viewsQ: Create a repeat function using two data frames
I need the average of each variable (X1,x2,X3,X4) according to the month it belongs to. The value of this average will be recorded in (Y1,Y2,Y3,y4) according also to the month belonging to the…
-
3
votes2
answers35
viewsQ: Error to calculate pBias
I need to calculate the pBias, but it’s a mistake. I’ve performed this calculation before and it worked, I don’t know what could be going wrong, below the code I used: #observado obs <-…
-
3
votes2
answers118
viewsQ: Logarithmic scale - Histogram R
I plotted a chart of type histogram, using the following code: hist(dados1$Prec, breaks=40 , col=rgb(0.2,0.8,0.5,0.5) , border=F , main="" , xlab="Precipitação (mm)", xlim=c(0,140), ylim =…
-
2
votes2
answers64
viewsQ: Export Summary() as data-frame
I want to export Summary() from my data-frame to look like this: For this, I built my code as shown below: dados1 <- read.csv("dados-originais.csv", header = T, skip = 0, sep = ",")…
-
0
votes1
answer94
viewsQ: How to make boxplots monthly, quarterly, biannual, annual and every 10 years for a period of 30 years?
I need to create several boxplots with different data intervals. I have a data-frame composed of precipitations of the city of Alagoas and need to compare with other data-frame with precipitation…