- 1. [S] Re: Help with spectrum() (score: 1)
- Author: "Jan Schelling" <schelling@ivuk.mavt.ethz.ch>
- Date: Thu, 18 Jun 1998 13:05:45 +0200
- Dear all, I'm trying to do some spectral analysis of time series using the function spectrum(). For testing purposes I tried to compare the variance of the time series var(x) with the integral of the
- /archives/html/s-news/1998-06/msg00131.html (8,540 bytes)
- 2. [S] Summary: Help with spectrum() (score: 1)
- Author: "Jan Schelling" <schelling@ivuk.mavt.ethz.ch>
- Date: Thu, 18 Jun 1998 21:42:36 +0200
- Thanks to Prof. Ripley, Don Murdoch and Don Percival who responded to my question about a deviation between the integral of the spectrum and the variance of a time series. My mistake was a missing fa
- /archives/html/s-news/1998-06/msg00143.html (9,273 bytes)
- 3. Re: [S] create dummy variables (score: 1)
- Author: "Jan Schelling" <schelling@ivuk.mavt.ethz.ch>
- Date: Thu, 25 Jun 1998 23:12:00 +0200
- the function col( ) does the trick: f <- c(0, 2, 1, 2, 0) m <- matrix(0, nrow = length(f), ncol = max(f)) m[col(m) <= f ] <- 1 data.frame(m) X1 X2 1 0 0 2 1 1 3 1 0 4 1 1 5 0 0 Jan -- Jan Schelling
- /archives/html/s-news/1998-06/msg00195.html (9,920 bytes)
- 4. Re: [S] x axis limits on barchart (score: 1)
- Author: "Jan Schelling" <schelling@ivuk.mavt.ethz.ch>
- Date: Tue, 26 May 1998 16:24:16 +0200
- 7
- /archives/html/s-news/1998-05/msg00266.html (10,310 bytes)
- 5. Re: [S] Data Frame Subsetting Question (score: 1)
- Author: "Jan Schelling" <schelling@ivuk.mavt.ethz.ch>
- Date: Fri, 29 May 1998 10:04:11 +0200
- o
- /archives/html/s-news/1998-05/msg00315.html (9,167 bytes)
- 6. [S] Re: name identical elements (was: no subject) (score: 1)
- Author: "Jan Schelling" <schelling@ivuk.mavt.ethz.ch>
- Date: Wed, 15 Apr 1998 02:12:05 +0200
- A quick and easy way to identify identical elements of a vector is the function match(): Try z_c <- complex(real = round(rnorm(1000),1), imaginary = round(rnorm(1000),1)) names(z_c) <- paste("z", mat
- /archives/html/s-news/1998-04/msg00113.html (9,767 bytes)
- 7. Re: [S] Re: name identical elements (was: no subject) (score: 1)
- Author: "Jan Schelling" <schelling@ivuk.mavt.ethz.ch>
- Date: Wed, 15 Apr 1998 08:42:44 +0200
- Oops, in my earlier post I certainly intendet to write: n <- 100000 # not 1000000 z <- complex(real = round(rnorm(n),1), imaginary =round(rnorm(n),1)) # z not z_c !! names(z) <- paste("z", match(z ,z
- /archives/html/s-news/1998-04/msg00114.html (10,759 bytes)
- 8. [S] Re: spline (was: no subject) (score: 1)
- Author: "Jan Schelling" <schelling@ivuk.mavt.ethz.ch>
- Date: Thu, 05 Mar 1998 18:00:29 +0100
- Assuming your data is really x<-c(-3.9,-2,-0.22,0.1,4,7,9) # x and y must have the same length y<-c(-15,-7,-1,-0.22,2,8,13) you could use: sp <- spline(x,y, n=100) # interpolating spline with a 'larg
- /archives/html/s-news/1998-03/msg00071.html (9,362 bytes)
- 9. [S] passing argument to strip.default() (score: 1)
- Author: "Jan Schelling" <schelling@ivuk.mavt.ethz.ch>
- Date: Fri, 06 Mar 1998 15:03:53 +0100
- Dear all, does anybody know how to pass an argument to the strip.default() function inside a call to a trellis plotting routine? In detail: I'm trying to customize the text that is printed on the str
- /archives/html/s-news/1998-03/msg00079.html (8,524 bytes)
- 10. Re: [S] Line Chart.. (score: 1)
- Author: "Jan Schelling" <schelling@ivuk.mavt.ethz.ch>
- Date: Fri, 06 Feb 1998 11:44:49 +0100
- You can use vectors with the "segments" function: plot(c(0,10), c(-4,4), type="n") segments(1:9, rnorm(9), 1:9, rnorm(9)) Jan -- Jan Schelling Institute of Process Engineering ETH Zurich, 8092 Switze
- /archives/html/s-news/1998-02/msg00046.html (8,520 bytes)
This search system is powered by
Namazu