# Recent content by marwah

1. ### aggregate function

Hi All, I have the following data: Year Day Month Time Ambient_Air_Temperature Wind_Speed Precipitation 1 2002 1 January 15 -7.980 2.668 146.90 2 2002 1 January 30 -8.090 2.541 146.90 3 2002 1 January 45...
2. ### error message meaning ??

I have the following code to calculate the SPI drought index mat <- matrix(c(2.26, 1.54, 2, 1.61, 2.75, 5.26, 4.78, 2.76, 0.829, 2.35, 3.4, 3, 8.28, 7.76, 2.14, 2.22, 0.939, 2.73, 2.18, 6.38, 6.66, 1.83, 2.41, 1.93, 2.83, 5.71, 4.4, 4.34, 2.28, 3.62, 1.35, 3.79, 2.58, 2.62, 5.02, 2.07, 1.95...
3. ### how to put data in a matrix form

I have the following data: date pcp 1 20010101 1.051627e+01 2 20010102 9.139277e-02 3 20010103 2.826194e+00 4 20010104 2.115948e+00 5 20010105 6.152151e-01 6 20010106 9.994188e-01 7 20010107 1.130322e-01 8 20010108 5.135144e-01 9 20010109...
4. ### 2 graphs in the same plot

HI All, I have the following 2 graphs: mat <- matrix(c(107.6937,75.23753,61.22222,39.83478,23.69258,14.5623,6.201099,3.622861,2.132939, 141.0136,103.0853,82.92933,54.3715,33.37596,20.16385,8.279188,4.765267,2.781721...
5. ### Developing a new R package

I want to develop a new R package , I'm not that amazing in programming thus if you can help me we can publish a paper in the Journal of Statistical Software together, Any one interested? for more details please send me your email and I will contact you. Marwah Soliman, PhD student at...
6. ### I get the following error message , what shall I do?

I have the following code: mat <- matrix(c(99.26252,71.37107,61.3334,39.18475,24.28588,14.35852,6.303219, 3.56242,1.954307,130.77527,94.88575,78.30003,49.84874,31.19563, 18.62511,8.588128,4.634585,2.460038,151.68859,110.49118...
7. ### write a table

Hi everyone, I have a small question how to write the following table in R: \begin{tabular}{|l|cr|} \hline Time & Year & intensity \\ \hline 5min & 2 & 99.26252 \\ 10min & 2 & 71.37107 \\ 15min & 2 & 61.3334 \\ 5min & 5 & 130.77527\\ 10min& 5& 94.88575\\ 15min& 5& 78.30003\\...
8. ### selecting data with certain postal code

HI guys I have the following Data" for example" called ON: \begin{tabular}{|l|cr|} \hline Postal & Claims \\ \hline P0x123 & 180 \\ N0x123 & 169 \\ N0h245 & 125 \\ \hline \end{tabular} I want to select the data that have the postal code starts with "N" --I have a massive data so I want to...
9. ### specifying claims from 1992-2002 for months April through septemebr

I have a data with unordered dates as follows: 2009-10-19, 2011-04-28, 2008-04-11, 2009-10-18, 2009-06-12, 2006-08-04, 2009-08-21 With corresponding claims data as follows: 1,0,0,1,1,1,0 This is just a small part of the data, Now I want to specify the claims with dates from...
10. ### Data

I have the following data: GRID1992040100 PCP 2.98E-02 2.35E-20 1.86E-02 2.35E-20 GRID1992040200 PCP 3.64E+01 9.65E+00 3.25E+00 1.14E+00 GRID1992040300 PCP 3.27E+00 1.10E+01 8.82E-19 1.77E+00 GRID1992040400 PCP 1.88E-18 3.44E-02 1.76E+00 1.47E-02...
11. ### Data

I have the following data set GRID2002070800 PCP 1 2 2 0 2 7.273357510566711e-01 9.982312321662903e-01 2.894499301910400e-01 6.475514769554138e-01 GRID2002070900 PCP 1 2 2 0 2 1.724110126495361e+00...
12. ### counting weeks in R

I have the following data "2001-01-01" "2001-01-02" "2001-01-03" "2001-01-04" "2001-01-05" "2001-01-06" "2001-01-07" "2001-01-08" "2001-01-09" "2001-01-10" "2001-01-11" "2001-01-12" "2001-01-13" "2001-01-14" "2001-01-15" "2001-01-16" "2001-01-17" "2001-01-18" "2001-01-19" "2001-01-20"...
13. ### R Program

I have a precipitation data"daily" and I formed the following index DRI from the data \begin{tabular}{|l|cr|} \hline Daily Rainfall(mm) & DRI \\ \hline 0-4.9 & 0 \\ 5-9.9 & 1 \\ 10-14.9 & 2 \\ so the general formula is 5n-5n+4.9 & n\\ \hline \end{tabular} I have the following code...