Re: [R] notch filter in R

2013-12-09 Thread Bretschneider (R)
Dear Soeren Groettrup, Re: > I am dealing with a time series of eeg data and I need to filter them with a > notch filter. However, I could only find the function notch() in the RTisean > package. Unfortunately, this function is not implemented yet. Is there > another package/function in R wh

Re: [R] plot - how to vary the distances of the x axis?

2013-10-17 Thread Bretschneider (R)
On 17 Oct 2013, at 13:44 , Hermann Norpois wrote: > Hello, > > > my dots of 0 and 2 are quite close to the marging. So I would like to move > the 0 and the 2 both towards the 1. I wish to be my dots more centered. > And: I dont need so much space between 0,1 and 2. > > How does it work? > I tr

[R] Cosine window in r

2013-09-26 Thread Bretschneider (R)
Dear Babak Bastan, Re: > > Can some one tell me, how can I implement Cosine window in r? Is there a > function for that? > The Hanning window is a cosine windowing function, to multiply sample signals with (before an FFT etc.). e.g. z = y*hanning(256) It resides in the 'signal' package. Ho

Re: [R] question about "lines"

2013-09-17 Thread Bretschneider (R)
Dear meng, Re: > Hi all: > I met a question about "lines". > > > attach(cars) > > > plot(dist ~ speed) > #add the regression line to the plot > lines(fitted(lm(dist~speed)) ~ speed) > > > plot(dist ~ speed) > #what kind of curve does the following command add to the plot? > lines(fitted(lm

Re: [R] storing multidimensional arrays - save and load -

2013-08-15 Thread Bretschneider (R)
Dear Witold E Wolski, Re: > I am have a procedure which generates multidimensional arrays. > > To compute them is expensive so I want to store them in order to be > able to analyse them later. > > I am using at the moment > > problem is that the array is always assigned to a variable ma (the >