Displaying 20 results from an estimated 10000 matches similar to: "sum of certain length"
2012 Nov 12
3
arrange data
Dear r-users,
I have daily rainfall data from 1971 to 2000. I would like to extract november and december data only. I would also like to do column bind for november and december, therefore I would like to delete 31 December from december data so that the length of november and december are the same. Hope somebody can help me. I tried this below:
> kuantan.dt.1 <-
2010 Jun 04
2
horizontal and vertical line with arrow in a plot
Hi r-users,
I would like to add a plot of vertical line segment with arrow from (77,.6) to (77,0) and also a horizontal line segment with arrow from (0,0.6) to (77,.6) . So far this is what I have:
plot(sq, cdf, type="l", lwd=4,col="blue",xaxs="i",yaxs="i", xlab= "Rainfall (mm)", ylab= "Random no.",
main="Random number and
2010 Mar 31
3
barplot and line
Hi r-users,
I have this data below and would like to plot a barplot overlap with a line.
This is my data:
> hist_50
pdf_obs pdf_gen.50
1 0.000000 0.000000
2 0.083156 0.125366
3 0.132196 0.158230
4 0.126866 0.149432
5 0.120469 0.127897
6 0.121535 0.104096
7 0.103412 0.082171
8 0.082090 0.063539
9 0.065032 0.048408
10 0.050107 0.036470
11 0.036247 0.027236
12
2012 Apr 04
2
extract data
HI,
I would like to extract data in a specific way. For example, the rainfall data
0,0,1.5,0,0, 3,1,2.5,0,0,0,0, 2.3,0,0,0, 2.1,1.4,0,0,0, 3,2,1,0,0,0...
data_1: 1.5, 2.3 ( a single nonzero data between zeros data)
data_2: 3.1, 2.5, 2.1,1.4 ( two nonzero data between zeros data)
data_3: 3,1,2.5, 3,2,1 ( three nonzero data between zeros data)
Thank you so much for any
2013 Jul 17
2
error message in gev
Hi r-users,
I would like to use gev and my data (annual rainfall ) is as follows:
> head(dat,20) A B C D E F G H I J
1 45.1 41.5 58.5 50.1 46.0 49.1 37.7 49.1 59.8 54.0
2 50.3 39.8 49.4 56.4 49.4 48.8 42.1 49.8 49.4 58.3
3 41.7 39.3 44.6 39.1 35.7 41.5 40.8 40.8 38.5 45.6
4 50.7 33.9 48.4 28.2 35.5 39.1 61.4 17.0 30.7 38.3
5 39.3 30.6 46.9 23.8 25.8
2010 Nov 11
3
overlap histogram and density
Hi,
Does anybody encounter the same problem when we overlap histogram and density
that the density line seem to shift to the right a little bit?
If you do have the same problem, what should we do to correct that?
Thank you.
par(mar=c(4,4,2,1.2),oma=c(0,0,0,0))
hist(datobs,prob=TRUE, main ="Volume of a catchment from four
2013 Apr 25
2
Missing data
Dear r-users,
I would like to investigate about how to fill in missing data. I started with a complete data and try to introduce missing data into the data series. Then I would use some method to fill in the missing data and then compare with the original data how good it is. My question is, how do I introduce missing data in my complete data systematically like for example every 10th data
2012 Oct 06
1
arrange data
Dear r-users,
I have dailly rainfall data from year 1971 to 2000. I use aggregate to form monthly rainfall data. What I don't understand is that the data for the year 2000 become on the top, instead of year 1971. Here are some codes and output:
agg_dt1 <- aggregate(x=dt1[,4],by=dt1[,c(1,2)],FUN=sum)
> head(agg_dt1,20); tail(agg_dt1,20)
Tahun Bulan x
1 0 1 398.6
2010 Aug 04
2
barplot and x-axis font size
Hi all,
I would like to draw a side by side bar plot. How can I adjust the the font
size for the x-axis? Furthermore, I'm not sure what to write for 'at=?'. I
tried cex.axis and cex.lab but still fail. Here is my data and code:
> t(all)
0-100 100-150 150-200 200-250 250-300 300-350 350-400 400-620
obs_data 382.000 177.000 156.0000 93.0 69.0000 45.000
2008 May 02
4
to extract particular date/data
Hi R-expert,
If I have this daily rainfall data, how do call a particular day?
Year,Month,Day,Amount
1900,12,22,1.3
1900,12,23,0
1900,12,24,0
1900,12,25,0
1900,12,26,0
1900,12,27,0
1900,12,28,0
1900,12,29,4.8
1900,12,30,0.3
1900,12,31,0.5
1901,1,1,0
1901,1,2,3
1901,1,3,0
1901,1,4,0.5
1901,1,5,0
1901,1,6,0
...
I used to use julian.date in S-Plus.
Thank you so much for your kind attention and help.
2010 May 07
2
smooth line overlap with histogram
Hi r-users,
I would like to overlap a smooth line on the histogram. I tried using spline but it does not work.
sq <- seq(0,900,by=50)
sq.50 <- as.character(sq)
datobs <- sum_pos
## first, plot histogram
histo <- hist(datobs,breaks=sq,freq=F)
## extract counts from histogram and calculate the probability in
## each specified interval. Also check the length of the interval is
2008 Mar 31
1
solver in R
Dear R-users,
Is there any function in R that works similarly like solver in Excel. I have a set of daily rainfall data and I would like to estimate alpha and beta for the gamma function.
Here is my daily rainfall data:
[1] 0.2 1.2 0.0 0.0 0.0 0.0 0.0 0.6 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 4.8 1.6 0.0 1.8 1.8 0.0 2.6
[24] 33.0 19.0 0.0 0.0 0.6 0.0 0.0 6.8 0.2 0.0
2010 Jun 01
1
arrange data
Hi r-users,
I have a data below but I would like to rearrange my data so that it will be in the following format: year, month, day, rain. I also would like the data to be arranged so that it will be continues for example year 1939 it will go from january 1 to december 31 and continue with year 1940 from january 1st to 31st December and so on. What I have now is all january for all the years
2008 Jan 06
3
need help
Hi,
I'm Roslina, PhD student of University of South Australia, Australia
from school Maths and Stats. I use S-Plus before and now has started
using R-package. I used
to analyse rainfall data using julian date. Is there any similar
function that you can suggest to me to be used in R-package? Thank you
so much for your attention and help
[[alternative HTML version deleted]]
2010 Nov 25
1
overlap cdf plots and add colors and etc
Hi r-users,
I would like to overlap 2 ecdf plots.
I tried this below and it gives me two plots of ecdf but just both just in
black.
par(mar=c(4,4,2,1.2),oma=c(0,0,0,0),xaxs="i", yaxs="i")
plot(ecdf(datobs))
lines(ecdf(gam_sum_gen))
Then I try to add colors etc and also the legend but fail.
par(mar=c(4,4,2,1.2),oma=c(0,0,0,0),xaxs="i", yaxs="i")
2013 Jan 13
1
Extract data in word pad
Dear r-users,
I have saved data in word pad. I would like to extract certain part of data only, for example
19710629 080000(PARTIAL) 39.3 at interval beginning 19701126 010326
19720629 080000(PARTIAL) 33.8 at interval beginning 19720517 144507
19730629 080000(PARTIAL) 32.2 at interval beginning 19720910 135747
and so on...
The original data set are given below:
2009 Mar 26
2
sum to infinity
Hi r-users,
How do we evaluate the summation of (1/m!) from 0 to infinity (for example).
Any help is very much appreciated.
Thank you.
2010 Feb 15
4
Separating columns, and sorting by rows
Dear anyone who knows more about R than me (so everyone). I have been bashing
my head on the keyboard all day trying to do something with my table.
I have some data, like so:
yyyy-mm Rainfall(mm)
1 1977-02 17.4
2 1977-03 34.0
3 1977-04 26.2
4 1977-05 42.6
5 1977-06 58.6
6 1977-07 23.2
7 1977-08 26.8
8 1977-09 48.4
9
2010 Nov 22
1
plot start at origin
Hi r-users,
I would like my axes to intersect at (0,0). I tried xaxs="i",yaxs="i" but it
does not change anything. I hope anybody can help me with this problem. Here
is my code.
hist(datobs, prob=TRUE, main ="PDF of the sum of two
stations",col="yellowgreen", cex.axis=1.2,
xlab="Rainfall (mm)", ylab="Relative frequency", ylim=
2010 Nov 22
1
need smooth cdf lines
Hi,
I would like to overlap the cdf curve for observed and generated data Here is
my code:
plot(cdf,main ="CDF of the sum for winter
season-Hume",cex.axis=1.2,xlab="Rainfall (mm)",
xaxs="i",yaxs="i",col=c("black","red"), lty=c(1,1),ylab="Cumulative
probability", xlim=c(0,800),lwd=1)
lines(ecdf(datobs))