use 'dput' to enclose your data. I think 'cut' is what you want:
> dput(x)
c(0, 1.179, 3.729, 9.418, 18.01, 29.746, 58.662, 131.566, 2323.7
)
> dput(y)
c(5.79, 1579.52, 2323.7, 68.85, 426.07, 110.29, 108.29, 1067.6,
17.05, 22.66, 21.02, 175.88, 139.07, 144.12, 20.46, 43.4, 194.9,
47.3, 7.74, 0.4,
HI,
Not sure whether this is what you wanted.
dat3<-c(5.79, 1579.52, 2323.70, 68.85, 426.07, 110.29, 108.29, 1067.60,
17.05, 22.66,
21.02, 175.88, 139.07, 144.12, 20.46, 43.40, 194.90, 47.30, 7.74, 0.40,
82.85, 9.88, 89.29, 215.10, 1.75, 0.79, 15.93, 3.91, 0.27, 0.69,
100.58,
Hello,
Post your data using dput(). Copy the output of dput(X) and paste it in
a post.
Anyway, you can try the following.
sum( leftaj <= X & X <= rightaj )
Hope this helps,
Rui Barradas
Em 11-08-2012 14:59, hafida escreveu:
Hi
i have this data
X
[1]5.79 1579.52 2323.70 68.85 4
3 matches
Mail list logo