; I note that there's a possibility of floating point errors.
> If all values have one digit after the decimal point, you could replace:
> qexp (p, rate) with round (qexp (p, rate), 1).
>
> However, sometimes uniroot will fail, due to problems with input.
>
> On Thu, Jan 28, 2021
(9.6, 11.6), rate)
> p <- plim [1] + diff (plim) * u
> qexp (p, rate)
> }
>
> diff.sum <- function (rate)
> sum (constrained.sample (rate) ) - 4200
>
> rate <- uniroot (diff.sum, c (1, 2) )$root
> q <- constrained.sample (rate)
>
> length (q)
>
Hi,
I would like to generate random numbers in R with some constraints:
- my vector of numbers must contain 410 values;
- min value must be 9.6 and max value must be 11.6;
- sum of vector's values must be 4200.
Is there a way to do this in R?
And is it possible to generate this series in such a way
t; > biplot(pca, choices=c(2, 3))
>
> -
> David L Carlson
> Department of Anthropology
> Texas A&M University
> College Station, TX 77840-4352
>
>
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org]
Hi all.
I'm newbie in PCA by I don't understand a behaviour of R.
I have this data matrix:
>mx_fus
height diam hole weight
12.3 3.5 1.1 18
22.0 3.5 0.9 17
33.8 4.3 0.7 34
42.1 3.4 0.9 15
52.3 3.8 1.0 19
62.2 3.8 1.0 19
73.2 4.4 0.9 34
8
For 3D scatterplot you can use also "scatterplot3d" package.
2016-05-19 8:40 GMT+02:00 David Winsemius :
>
> > On May 18, 2016, at 7:51 AM, ch.elahe via R-help
> wrote:
> >
> >
> > Hi all,
> > I am using R version 3.2.3 and I want to plot 3D histogram or 3D
> scatterplot. Does anyone know which
Thank you very much,
just what I needed!!
2016-05-16 18:25 GMT+02:00 Duncan Murdoch :
> On 16/05/2016 12:10 PM, Denis Francisci wrote:
>
>> Hi all,
>> I've a simple question.
>> I have a matrix with same values over and under the diagonal. That's an
>>
Hi all,
I've a simple question.
I have a matrix with same values over and under the diagonal. That's an
example:
[,1] [,2] [,3]
[1,] NaN 45 63.43495
[2,] 45.0 NaN 90.0
[3,] 63.43495 90 NaN
How can I extract just the three values over (or under) the diagonal and
convert
Dear forum,
I have a number of random point in a polygon. I would like to find those
points lying on the same lines.
Is there an R function to find alignments in points (something like this:
https://en.wikipedia.org/wiki/Alignments_of_random_points)?
And is it possible to do the same thing but chan
I don't know if I understood your problem, but maybe you can retrieve
your columns simply in this way:
> DF$y
[1] 10 9 8 7 6 5 4 3 2 1
or (for looking at column)
> DF[2]
y
1 10
2 9
3 8
4 7
5 6
6 5
7 4
8 3
9 2
10 1
Bye
D.
2013/2/9 Lorenzo Isella :
> Dear All,
> Pr
.5, 5"),header=T,sep=",")
> with(rmail2,symbols(item, (int_1+ int_2)/2, boxplots=cbind(.25,
> int_2-int_1,
> int_1-min,max-int_2,0),inches=F,ylim=range(rmail2[,-1]),xaxt="n",ylab=""))
> axis(1,seq_along(rmail2$item),labels=rmail2$item)
>
> hth.
>
Hi all,
I'm new on this list so I greet all.
My question is: does exist in R a plot similar to candlestick plot but
not based on xts (time series)? I have to plot a range of 4 value: for
every item I have min value, max value and 2 intermediate values. I
would like plot this like a candlestick, i.e
12 matches
Mail list logo