Displaying 20 results from an estimated 800 matches similar to: "Turning points in a series"
2009 Sep 16
2
Turnpoints
Good evening to everybody. I have a data of four columns - three of the
columns represent date while the fourth is counts. Setting 4000 as my
minimum point/value, I wish to find out the number of counts that are less
or equal to 4000 and the dates they occur. I have installed pastecs and have
been trying to use turnpoints function to do this. I have not been much
lucky. I am a still learning. I
2009 Sep 18
1
Help a newbie
Hello,
To me as a beginner, every problem looks big. Below is what I was asked to
do as part of a code that will solve my problem. I have used read.table to
read my data into R and assigned the column names with colnames(dat)<- ... .
But to go from txt<-" to the last " at the bottom of the table below is what
I am unable to do. Could anybody please tell me how to type or arrive at
2009 Oct 07
3
two plots on the same axis
Good morning. I wish to plot two data on the same axis. I tried plot(x,y,
type = "l") for the first and tried to use lines or points(x,y, lty = 2, col
= 4) to add or plot the second data on alongside the first. However, what I
got was not encouraging.
I have attached the two data and would be pleased if anybody could be of
help.
Thank you
Best regards
Ogbos
-------------- next part
2006 Mar 15
3
which.minimums not which.min
Hi
Is there a function which determines the location, i.e., index of the all minimums or maximums of a numeric vector.
Which.min(x) only finds the (first) of such.
> x <- c(1:4,0:5, 4, 11)
> x
[1] 1 2 3 4 0 1 2 3 4 5 4 11
> which.min(x)
[1] 5
> which.max(x)
[1] 11
>
but I need
which.min(x) to be 5 11
which.max(x) to be 4 10
2002 Dec 29
3
lowess + turnpoints = doubling integers?
Happy New Year, r-helpers!
I am using lowess to smooth a scatter plot,
xx<-lowess(xinput,f=.04) #defaults for other args
followed by
turnpoints(xx$y) #defaults for other args
I plot the smoothed result as well as turnpoints (using yy$tppos) on top of raw
data plot.
Result is exactly as expected, graphically.
For another purpose, I calcuate the difference between turnpoints (representing
2006 Mar 15
1
Additional arguments in S3 method produces a warning
Hello,
I just notice this:
> x <- c(1:4,0:5, 4, 11)
> library(pastecs)
Loading required package: boot
> tp <- turnpoints(x)
> extract(tp, no.tp = FALSE, peak = TRUE, pit = FALSE)
[1] FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE TRUE FALSE
FALSE
Warning message:
arguments after the first two are ignored in: UseMethod("extract", e, n,
...)
>
2005 May 16
0
Turnpoints (pastecs): How to specify a limit on the number of tur npoints?
Hello,
I'm trying to get a few turnpoints for a financial time series. There is a
function in pastecs that does that. However, I get a large number of
turnpoints:
library(pastecs)
data(EuStockMarkets)
dax <-EuStockMarkets[,1]
plot(dax)
turnp <-turnpoints(dax)
summary(turnp) #gives 925 peaks/pits!!!
How can specify to get only 30 turnpoints?
Second question: the extract function
2010 Dec 14
3
peak detection
Hi,
I was wondering if anyone knows of a package that contains the ability
for peak/valley detection. Here is an example of what I'm looking for,
only problem is that it's written in Matlab.
http://www.billauer.co.il/peakdet.html
Thanks for any help in advance.
-Joe
2004 Jun 18
2
[Q] Newbie (continued.. at least I got R running allready :-)
Hi all
a week ago, I posted a newbie question in data smoothing &
maximum-extraction with R. I got quite a lot of response, but I'm still
kinda stuck with it...
I'll restate the problem : i got a datafile with 2400 measuerements (every
250msec) of a CO2 measurement device, capturing the breath of a subject. I
uploaded such a sample here :
2011 Jan 04
1
function masking and gmp questions
Hi,
Here's the problem I ran into: the gmp package has a method for apply()
so it masks the base::apply function. With gmp installed, I tried to
run the function turnpoints() from the pastecs package. It fails
because it calls apply() internally, like this:
apply(mymatrix,1,max,na.rm=TRUE)
,
but the code in the gmp package which sets up the operator overload for
apply() strictly
2003 Jan 03
0
RE: stange behavior of subset [] (was: lowess + turnpoints = doubling integers?)
Tom Blackwell wrote:
>...
>I summarized this to myself as "computed subscripts need explicit
>rounding in R, but not in S". Here's the sample code which gave
>me different results with R than with Splus. I no longer have
>Splus available, so I can't check it again.
>look <- (10 * seq(14)) - 76
>chk.1 <- seq(1420)[ 10 * (73.1 + look) ] #
2007 May 23
1
Question concerning "pastecs" package
Hi
I just installed the pastecs package and I am wondering: is there an
english (or german) translation of the file pastecs.pdf? If not, is
there an explanation somewhere of the object of type 'turnpoints' as a
result of turnpoints(), especially the "info" field?
Thanks,
Rainer
--
NEW EMAIL ADDRESS AND ADDRESS:
Rainer.Krug at uct.ac.za
RKrug at sun.ac.za WILL BE
2007 Nov 19
0
Using density() and turnpoint to Identify maxima in data
Hi
I have a large dataset which follows a multimodal distribution. And I
would like to identify the maxima. As the data is obtained from a
stochastic simulation, not all maxima in the data are "real maxima of
the dirstribution" but rather small random fluctuations. Unfortunately,
it is not possible for me to run more simulations to smooth the obtained
distribution.
What I am doing
2009 Aug 27
2
chooseCRANmirror()
Hello,
I am runing linux on Ubuntus. I find it difficult to install R packages. I
am in South Africa. It always asked me to choose the nearest CRAN mirror. I
normally choose South Africa and once I clicked Ok, the error message pasted
below will appear. Please I am a new student of R and Ubuntus. The other
warning "argument 'lib' is missing: using
2016 Apr 22
0
clock24.plot
Hi Ogbos,
Here is your sample data plotted in roughly the same way as the image.
You can get the hours to start at the bottom, but it will require more
code.
swe$hour<-as.numeric(sapply(strsplit(swe$time,":"),"[",1))
swe$FD<-sample(1:2,nrow(swe),TRUE)
library(plotrix)
clock24.plot(swe$count,swe$hour,rp.type="s",radial.lim=c(3000,4010),
2010 Oct 14
1
installing grid package
Hi all,
I can't understand why grid package failed to installed on my machine. Can
anybody have a look and advice on where I am missing it.
My R version is 2.9.2. After untarring: tar xzvf grid_0.7-4.tar.gz, I
tried to configure or make but none worked, 'no such files'. I have also
tried using : sudo R CMD INSTALL /home/ogbos/Desktop/goo/grid_0.7-4.tar.gz
which also resulted in the
2009 Aug 27
2
Installing R Packages on ubuntus
Hello,
Please I am a learner. My operating system is ubuntus and I am trying to
install raster package from R-forge site. I entered sudo apt-get install
r-base-dev on the command line and that worked fine. I then typed R at the
command line so as to run R. Inside R, I typed >
install.packages("raster",repos="http://R-Forge.R-project.org<http://r-forge.r-project.org/>")
2016 Apr 30
3
Could not find function "pointsToRaster"
Dear All,
I have a script that draws longitude and latitude of lightning
occurrence. This script was running fine before. But when I changed my
system and do a fresh install on another laptop, this error persist.
source("script")
Error in eval(expr, envir, enclos) :
could not find function "pointsToRaster"
I have tried to see if there is any other package I need to install
2011 Jan 26
3
adding error bars
Dear all,
I am trying to add error bars on a boxplot but have encountered an error as
indicated below. Is there a package I need to install or a library I have to
load before this goes please.
Thanks for any idea.
Ogbos
x<-replicate(20,rnorm(50))
boxplot(x,notch=TRUE,main="Notched boxplot with error bars")
error.bars(x,add=TRUE)
Error: could not find function "error.bars"
2018 Jan 22
2
Manipulating two large dataset differing by date and time
Dear Members,
Compliments of the Season!!
Below is a part of a code I use for Fourier analysis of signals. The code
handles data with the format 05 01 01 8628 (year, month, day and count)
05 01 02 8589 (year, month, day and count)
The sample data is attached as 2005daily.txt.
I would like to adapt the code to handle data of the form:
05 01 01 00 4009