search for: 1990

Displaying 20 results from an estimated 649 matches for "1990".

Did you mean: 1970
2008 Mar 30
2
convert weekly time series data to monthly
I have weekly time series data with year, month, day, and price variables. The input data set for the weekly series takes the following form: Year month day price 1990 8 20 119.1 1990 8 27 124.5 1990 9 3 124.2 1990 9 10 125.2 1990 9 17 126.6 1990 9 24 127.2 1990 10 1 132.1 1990 10 8 133.3 1990 10 15 133.9 1990 10 22 134.5 1990 10 29 133.9 .. ... ... ... ... ... .... .... 2008 3 3 313.7 2008 3 10 320 2008 3 17 325.7 2008 3 24 322.4 I would like to collapse th...
2009 Oct 07
1
Formatting outputs:(chronological object)
Hello everyone, I have a data generated in a way similar to the following library(chron);library(zoo) date<- seq(as.Date("1990-01-01"),, as.Date("2000-12-31"), by = 1) obs<- zoo(rnorm(length(date), mean = 10, sd = 2.5), order.by = date) monthly<- function(date) as.Date(as.yearmon(Date)) result<- data.frame ( Date = obs = aggregate(obs, monthly, sum)) Now, I want to get the result data in the follow...
2011 Apr 29
3
why doesn't ifelse work ?
...en diff(ind , 5) is less than zero, signal gets set to 0 instead of - 1. Any ideas why ? Here's some information on ind and diff(ind, 5) : > mode(diff(ind, 5) >0) [1] "logical" > class(diff(ind, 5) >0 ) [1] "zoo" > str(diff(ind, 5) > 0 ) ?zoo? series from 1990-05-31 to 2010-12-02 Data: logi [1:5171, 1] FALSE FALSE FALSE FALSE FALSE FALSE ... - attr(*, "dimnames")=List of 2 ..$ : NULL ..$ : chr "GSPC.Adjusted" Index: Date[1:5171], format: "1990-05-31" "1990-06-01" "1990-06-04" "1990-06-05&qu...
2012 Oct 01
3
ffbase, help with %in%
...FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE : FALSE [3647] [3648] [3649] [3650] [3651] [3652] [3653] FALSE FALSE FALSE FALSE FALSE FALSE FALSE Here you see a part of the data: data[1:20,] (just a sample, data has 3653 obs) fecha juliano altura UTM.E UTM.N 1 1990-07-01 182 15 248500 6239500 2 1990-07-02 183 15 248500 6239500 3 1990-07-03 184 15 248500 6239500 4 1990-07-04 185 15 248500 6239500 5 1990-07-05 186 15 248500 6239500 6 1990-07-06 187 15 248500 6239500 7 1990-07-07 188 15 248500 6239500...
2006 Nov 23
1
how to loop this?
...uot;1989-10-22", "1989-10-28", "1989-11-02", "1989-11-06", "1989-11-14", "1989-11-17", "1989-11-24", "1989-11-27", "1989-12-09", "1989-12-11", "1989-12-19", "1989-12-29", "1990-01-02", "1990-01-04", "1990-01-07", "1990-01-10", "1990-01-13", "1990-01-30", "1990-02-11", "1990-02-21", "1990-02-28", "1990-03-09", "1990-03-12", "1990-03-15", "1990...
2007 Dec 24
1
Help with read.zoo and transform
...S","DAX","GBP") df<-read.zoo(paste(pathname,files[match(market,markets)],sep=""), index.column=1, format="%m/%d/%Y", header=F, sep=",") df } This works fine and returns the dataset as planned: V2 V3 V4 V5 V6 V7 1990-01-02 54.89 54.99 54.61 54.61 125 2576 1990-01-03 54.48 54.62 54.29 54.33 1495 3232 1990-01-04 54.67 55.20 54.59 55.08 932 3145 1990-01-05 54.64 54.87 54.57 54.57 272 2567 1990-01-08 54.87 54.89 54.68 54.79 177 2456 1990-01-09 54.87 54.96 54.80 54.88 106 2403 Also if I type the following: mo...
2010 Jun 15
6
working with zoo time index ??
Hello Where could I find examples on how to work with the time index in a timeseries or zoo series? Let say I've got this series DATA 1990-01-01 10:00:00 0.900 1990-01-01 10:01:00 0.910 1990-01-01 10:03:00 0.905 1990-01-01 10:04:00 0.905 1990-01-01 10:05:00 0.890 ....................... 2000-12-31 20:00:00 0.992 How do I make simple calculations such as ... ? Calculate the mean of the first data every day. (mapply, for...
2005 Jul 17
1
Strange problems with lattice plots
Dear r-help, I need to draw some lattice plots and have stuck in strange problems. I have a data frame of 405 rows: > str(dframe) `data.frame': 405 obs. of 4 variables: $ year : num 1990 1990 1990 1990 1990 1990 1990 1990 1990 1990 ... $ month: num 1 2 3 4 5 6 7 8 9 10 ... $ V_A2 : num NA NA NA NA NA ... $ V_A3 : num NA NA NA NA NA ... Variable month changes from 1 to 27 as the data frame includes monthly measurements and some aggregations of them. Variable year varies from...
2006 Nov 22
3
dataframe manipulation
...uot;, "1989-10-22", "1989-10-28", "1989-11-02", "1989-11-06", "1989-11-14", "1989-11-17", "1989-11-24", "1989-11-27", "1989-12-09", "1989-12-11", "1989-12-19", "1989-12-29", "1990-01-02", "1990-01-04", "1990-01-07", "1990-01-10", "1990-01-13", "1990-01-30", "1990-02-11", "1990-02-21", "1990-02-28", "1990-03-09", "1990-03-12", "1990-03-15", "1990-03-19"...
2017 Jun 07
4
Determining which.max() within groups
Using 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...
2010 Jun 30
6
Multiline and grouping in R
...al Wiki and also searched via Google, but I did not find anything. I'm importing some data from a cvs file. Here is a sample: YEAR,AREA,CASES 1988,CONTRACTS,286 1988,INTERNATIONAL,189 1988,FAMILY,385 1988,TAXATION,177 1989,CONTRACTS,233 1989,INTERNATIONAL,431 1989,FAMILY,425 1989,TAXATION,201 1990,CONTRACTS,190 1990,INTERNATIONAL,302 1990,FAMILY,303 1990,TAXATION,209 ... "t <- read.csv("file.csv", header=TRUE)" So far so good... But the problem is: I'd like to create a multiline plot, one line per AREA, showing the evolution of the number of CASES per YEAR. I k...
2010 Aug 17
0
Merge xts
Hi all , I have 12 xts objects of differing timeseries stamp. For example : > str(s1_predict.xts) An ?xts? object from 1990-03-25 20:00:00 to 1990-12-15 09:00:00 containing: Data: num [1:725, 1] 11.23 10.18 9.3 9.74 10.18 ... - attr(*, "dimnames")=List of 2 ..$ : NULL ..$ : NULL Indexed by objects of class: [POSIXt,POSIXct] TZ: Original class: 'double' xts Attributes: NULL > str(...
2005 May 10
1
Aggregate lag
...ag series ? when I try to use aggregate I get the following message > try<-ts(1:100,start=c(1985,1),freq=12) > aggregate(try,4,mean,na.rm=T) Qtr1 Qtr2 Qtr3 Qtr4 1985 2 5 8 11 1986 14 17 20 23 1987 26 29 32 35 1988 38 41 44 47 1989 50 53 56 59 1990 62 65 68 71 1991 74 77 80 83 1992 86 89 92 95 1993 98 > aggregate(lag(try,-1),4,mean,na.rm=T) Error in rep.int("", start.pad) : invalid number of copies in rep() Matthieu
2010 Sep 02
0
extract month data automatically
...   1  10    0.0 11 1901     1  11    0.5 12 1901     1  12    1.8 13 1901     1  13    0.0 14 1901     1  14    0.0 15 1901     1  15    2.5 16 1901     1  16    0.0 17 1901     1  17    0.0 18 1901     1  18    0.0 19 1901     1  19    0.0 20 1901     1  20    0.0       Year Month Day Amount 32858 1990    12  17    0.0 32859 1990    12  18    0.0 32860 1990    12  19    0.8 32861 1990    12  20    0.0 32862 1990    12  21    0.0 32863 1990    12  22    8.0 32864 1990    12  23    0.0 32865 1990    12  24    0.0 32866 1990    12  25    0.0 32867 1990    12  26    0.0 32868 1990    12  27    0.4 32...
2009 Mar 23
1
Graphic with several curves
Hi R users, Imagine the folowing data frame 1990 1991 1992 1 5 20 6 2 15 1 11 3 3 14 22 4 20 8 55 5 10 3 14 Is there a way to build a graphic in which: - 1 curve represents the observation 1 during 1990 & 1992...
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&quo...
2006 Nov 26
1
adding elemens to a list
..."1988-03", "1988-04", "1988-05", "1988-06", "1988-07", "1988-08", "1988-09", "1989-03", "1989-04", "1989-05", "1989-07", "1989-08", "1989-09", "1989-11", "1990-01", "1990-02", "1990-03", "1990-04", "1990-05", "1990-06", "1990-07", "1990-08", "1990-10", "1990-11", "1991-01", "1991-03", "1991-04", "1991-05", "1991-06&qu...
2001 Oct 31
4
strptime bug (PR#1155)
...%/% 100, time %% 100), "%j %H %M") ## note that the times wrap and the times on both days 346 and 347 are ## mapped to "1900-01-01" ## Including the year in the format gets the right answer, with two ## different days appearing in the result. strptime(paste(1990, day, time %/% 100, time %% 100), "%Y %j %H %M") detach("tmp") ## > tmp <- beav1[90:93,] ## > tmp ## day time temp activ ## 90 346 2340 36.93 0 ## 91 346 2350 36.83 0 ## 92 347 0 36.93 0 ## 93 347 10 36.83 0 ## &gt...
2012 Sep 15
4
how to view only readings of a selected data from a column while the other columns remain
Hi Friends I am new here and have a problem Year Market Winner BID 1 1990 ABC Apple 0.1260 2 1990 ABC Apple 0.1395 3 1990 EFG Pear 0.1350 4 1991 EFG Apple 0.1113 5 1991 EFG Orange 0.1094 For each year and separately for the two m...
2009 Mar 31
4
Convert Character to Date
Hello, I have a date in the format Year-Month Name (e.g. 1990-January) and R classes it as a character. I want to convert this character into a date format, but when I try as.Date(1990-January, "%Y-%B"), I get back NA. The function strptime also gives me NA back. Thanks. [[alternative HTML version deleted]]