search for: 1991

Displaying 20 results from an estimated 634 matches for "1991".

Did you mean: 191
2008 Mar 08
1
plotting NAs
...#39;m trying to plot 2 time series lined up with par(mfrow=c(2,1)), so that the time index is the same for the two series. The data have monthly frequency. An example will illustrate: # data for these dates (monthly frequency) do not have NAs: require(zoo) monthly.dates<- as.Date(c( "1991-01-31", "1991-02-28", "1991-03-31", "1991-04-30", "1991-05-30" )) monthly.only.data<- 1:length(monthly.dates) # data for these extra dates (daily frequency) do have NAs interspersed with # non-NA data having monthly frequency: daily.da...
2009 Oct 07
1
Formatting outputs:(chronological object)
...year 1990, 1990-01-01 314.7547 1990-02-01 266.0105 1990-03-01 353.7275 1990-04-01 273.8321 1990-05-01 325.3691 1990-06-01 253.1501 1990-07-01 318.1684 1990-08-01 291.2097 1990-09-01 298.6409 1990-10-01 304.0167 1990-11-01 279.4668 1990-12-01 286.9456 Total for year 1990 = xxx Observation for year 1991 1991-01-01 313.1515 1991-02-01 297.9274 1991-03-01 315.2565 1991-04-01 290.9797 1991-05-01 327.0480 1991-06-01 281.5030 1991-07-01 316.7332 1991-08-01 289.9122 1991-09-01 296.9334 1991-10-01 280.2053 1991-11-01 295.6098 1991-12-01 321.6451 Total for year 1991 = xxx Any help would be highly apprec...
2005 Mar 22
1
List of tables rather than an extra dimension in the table or (l)apply(xtabs)
...w/ 18 levels "0-4","5-9","10-14",..: 1 1 1 1 1 1 1 1 1 1 ... ..$ lga : Factor w/ 23 levels "Carnamah (S)",..: 1 2 3 4 5 6 7 8 9 10 ... # 23 subregions ..$ psn : num [1:4009] 71 336 26 84 30 133 904 385 99 110 ... ..$ year : num [1:4009] 1991 1991 1991 1991 1991 ... ..$ agecomp : Factor w/ 14 levels "0-4","5-9","10-14",..: 1 1 1 1 1 1 1 1 1 1 ... ..$ RegionNum: num [1:4009] 1 1 1 1 1 1 1 1 1 1 ... $ 2:`data.frame': 720 obs. of 7 variables: ..$ sex : Factor w/ 2 levels "Females&qu...
2006 Nov 23
1
how to loop this?
...uot;1990-10-23", "1990-10-31", "1990-11-12", "1990-11-18", "1990-11-23", "1990-11-27", "1990-12-04", "1990-12-07", "1990-12-13", "1990-12-16", "1990-12-18", "1990-12-27", "1991-01-09", "1991-01-12", "1991-01-14", "1991-01-19", "1991-01-24", "1991-02-04", "1991-02-07", "1991-02-10", "1991-02-12", "1991-02-14", "1991-02-20", "1991-02-25", "1991-02-...
2008 Oct 29
1
Subsetting data in a loop
...at$Year==i,] name<-paste("Year",i) one_year[name]<-myear }     mydat: Year Month Day          number other   Ind1      Ind2       Ind3   Ind4 1985     8  13             1     1       0         0          0      0 1986     8   5             2     3       0         0          0      0 1991     4  24             3     0       0         0          0      0 1991     4  25             4     0       0         0          0      0 1991     8   2             5     0       0         0          0      0 1991     8   6             6     0       0         0          0      0 1991     9   4      ...
2008 Mar 20
3
Problem with diff(strptime(...
...55 1.0020534 0.8323066 1.0841889 0.9993155 1.1690623 [8] 0.8131417 2.0177960 2.8390372 There have been a few messages about this problem, but apparently no solution. The problem can be seen with these examples (I haven't included the real data as it is not mine): foodate<-c("1/7/1991","1/8/1991","1/8/1991","3/8/1991") as.numeric(diff(strptime(foodate,"%d/%m/%Y"))/365.25) [1] 7333.0595 0.0000 473.1006 foodate<-factor(c("1/7/1991","1/8/1991","1/8/1991","3/8/1991")) as.numeric(diff(strptim...
2009 Mar 19
1
problem with Dates
...erent between 2 dates and getting minimum in vector of dates that is i m working with dates in formate "6/22/1992 12:00:00 AM" and the vector is [1] 6/4/1992 12:00:00 AM 2/13/1992 12:00:00 AM 6/19/1992 12:00:00 AM [4] 2/11/1992 12:00:00 AM 6/22/1992 12:00:00 AM 10/3/1991 12:00:00 AM [7] 5/12/1992 12:00:00 AM 7/11/1991 12:00:00 AM 2/6/1992 12:00:00 AM [10] 10/4/1991 12:00:00 AM 1/31/1992 12:00:00 AM 6/9/1992 12:00:00 AM [13] 10/9/1991 12:00:00 AM 6/10/1992 12:00:00 AM 7/19/1991 12:00:00 AM [16] 7/18/1991 12:00:00 AM 9/20/1991 12:00:00 AM 8/6/1992 12:...
2006 Nov 22
3
dataframe manipulation
...uot;, "1990-10-23", "1990-10-31", "1990-11-12", "1990-11-18", "1990-11-23", "1990-11-27", "1990-12-04", "1990-12-07", "1990-12-13", "1990-12-16", "1990-12-18", "1990-12-27", "1991-01-09", "1991-01-12", "1991-01-14", "1991-01-19", "1991-01-24", "1991-02-04", "1991-02-07", "1991-02-10", "1991-02-12", "1991-02-14", "1991-02-20", "1991-02-25", "1991-02-27"...
2017 Jun 07
4
Determining which.max() within groups
...ng the dataset below, I got close to what I'm after, but not quite all the way there. Any suggestions appreciated: Daily <- read.table(textConnection(" Date wyr Q 1911-04-01 1990 4.530695 1911-04-02 1990 4.700596 1911-04-03 1990 4.898814 1911-04-04 1990 5.097032 1911-04-05 1991 5.295250 1911-04-06 1991 6.569508 1911-04-07 1991 5.861587 1911-04-08 1991 5.153666 1911-04-09 1992 4.445745 1911-04-10 1992 3.737824 1911-04-11 1992 3.001586 1911-04-12 1992 3.001586 1911-04-13 1993 2.350298 1911-04-14 1993 2.661784 1911-04-16 1993 3.001586 1911-04-17 1993 2.661784 1911-04-19 1994...
2007 Dec 19
3
plot cummulative sum from calendar time
I have the following list of observations of calendar time: [1] 03-Nov-1997 09-Oct-1991 27-Aug-1992 01-Jul-1994 19-Jan-1990 12-Nov-1993 [7] 08-Oct-1993 10-Nov-1982 08-Dec-1986 23-Dec-1987 02-Aug-1995 20-Oct-1998 [13] 29-Apr-1991 16-Mar-1994 20-May-1991 28-Dec-1987 14-Jul-1999 27-Nov-1998 [19] 09-Sep-1999 26-Aug-1999 20-Jun-1997 05-May-1995 26-Mar-1998 15-Aug-1994 [25] 24-Jun-1996 02-...
2007 Jun 20
1
Date and selection
Dear R experts, Suppose I have a data.frame recording the date and test results of some subjects like this: Name Date results John 01/01/1991 2 John 02/01/1991 3 John 09/0101991 4 Micheal 02/01/1991 4 Micheal 04/01/1991 5 .... How to select the earliest (or latest) test result from all subjects? Thank you. Regards, CH -- "The scientists of today think deeply instead of clearly. One must be sane to think clearly, but one can...
2008 Mar 30
2
convert weekly time series data to monthly
...ke to collapse the data into monthly averages to merge with a monthly series. The input data set for the monthly series takes the following form: M-Y Year Month Change Aug-1990 1990 8 -226.871 Sep-1990 1990 9 -896.333 Oct-1990 1990 10 111.419 Nov-1990 1990 11 -364.2 Dec-1990 1990 12 -527.645 Jan-1991 1991 1 -70.935 Feb-1991 1991 2 231.214 Mar-1991 1991 3 -239 ... ... ..... .. .... The merged data set should be of class(ts). I can perform the conversions outside of R and then import but I would rather perform all conversions within R. I have looked through the zoo and Rmetrics packages but...
2017 Oct 06
2
Time series: xts/zoo object at annual (yearly) frequency
Hi, I'd like to make a time series at an annual frequency. > a<-xts(x=c(2,4,5), order.by=c("1991","1992","1993")) Error in xts(x = c(2, 4, 5), order.by = c("1991", "1992", "1993")) : order.by requires an appropriate time-based object > a<-xts(x=c(2,4,5), order.by=1991:1993) Error in xts(x = c(2, 4, 5), order.by = 1991:1993) : ord...
2009 Nov 08
1
Turn dates into age
Ive got a big column of dates (also some fields dont have a date so they have NA instead), that i have converted into date format as so... dates<-as.character(data[,"date_commissioned"]); # converted dates to characters dates[1:10] [1] "19910101" "19860101" "19910101" "19860101" "19910101" "19910101" "19910101" "19910101" "19910101" "19910101" dateObs <- as.Date(dates,format="%Y%m%d") dateObs[1:10] [1] "1991-01-01" &qu...
2008 Apr 25
4
Constructing dummy variables for months for a time series object
I have a TS of monthly observations. head(data4) 1991(1) 1991(2) 1991(3) 1991(4) 1991(5) 1991(6) 12.00864 11.94203 11.98386 12.01900 12.19226 12.15488 Now I want to make 11 dummy variables indicating months. Therefore I did followings : For Jan : rep(c(rep(0,0), 1, rep(0, 11)), 17) For Feb : rep(c(rep(0,1), 1, rep(0, 10)), 17...
2009 Jan 28
3
Newbie Question About Histograms
Hello everyone. Just have a question , cant figure out how to make this histogram. I have this table, that i stored in a variable name new.data2. Table looks like this Year GeoArea SmpNo Month Gear Maturity Length Age YearC 1989 1 362 10 22 1 225 1 1988 1991 1 267 10 10 1 191 1 1990 1991 1 267 10 10 1 202 1 1990 1992 1 305 10 8 1 162 1 1991 1992 1 305 10 8 1 165 1 1991 1992 1 305 10 8 1 166 1 1991 1992 1 305 10...
2017 Jun 07
0
Determining which.max() within groups
cumsum() seems to be what you need. This can probably be done more elegantly, but ... out <- aggregate(Q ~ wyr, data = Daily, which.max) tbl <- table(Daily$wyr) out$Q <- out$Q + cumsum(c(0,tbl[-length(tbl)])) out ## yields wyr Q 1 1990 4 2 1991 6 3 1992 9 4 1993 15 5 1994 18 I leave the matter of Julian dates to you or others. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic s...
2010 Aug 06
3
How to apply apply?!
guRus I have say a dataframe, d and I wish to do the following: 1) For each row, I want to take one particular value of the row and multiply it by 2. How do I do it. Say the data frame is as below: OPEN HIGH LOW CLOSE 1931.2 1931.2 1931.2 1931.2 0 0 0 999.05 0 0 0 1052.5 0 0 0 987.8 0 0 0 925.6 0 0 0 866 0 0 0 1400.2 0 0 0 754.5 0 0 0 702.6 0 0 0 653.25 0 0 0 348 0 0 0 801 866.55 866.55
2004 Jun 11
4
Regression query
...can throw some light on this matter and how to use R to detect the interactions effectively . Thanks Regards Dev ------Final 'lm model'-------------------- > logmodelfull_minus_run_hr_walk_batting <- lm(log(salary) ~ hit+rbi + walk + obp + strike.out+free.agent.eligible+free.agent.1991+arbitr.elgible.) > summary(logmodelfull_minus_run_hr_walk_batting) Call: lm(formula = log(salary) ~ hit + rbi + walk + obp + strike.out + free.agent.eligible + free.agent.1991 + arbitr.elgible.) Residuals: Min 1Q Median 3Q Max -2.41786 -0.28911 -0.02814 0.31890 1....
2009 Sep 30
2
Few questions about oVirt install.
Hi. I have successfully installed ovirt. Boot 2 nodex throught PXE boot, and added to pool. Whe i try to create NFS storage, they in state: pending setup. How to add NFS storage? taskomatic.log INFO Wed Sep 30 16:59:09 +0300 2009 (1991) starting task_refresh_pool INFO Wed Sep 30 16:59:09 +0300 2009 (1991) storage_find_suitable_host: host node3.ovirt.priv uuid 30303234-3144-3832-4638-3931FF FFFFFF INFO Wed Sep 30 16:59:09 +0300 2009 (1991) host.is_disabled is 0 INFO Wed Sep 30 16:59:10 +0300 2009 (1991) refresh being done on nod...