Hi Jeff,
Let's say you have the following data:
set.seed(12345)
CONTBR_RESULT<-sample(20:200,30)
If you don't mind ordering the results, you can do this:
barplot(rev(sort(CONTBR_RESULT))[1:15],...)
If you want the values in the original order:
barplot(CONTBR_RESULT[order(CONTBR_RESULT) > 15],.
r-help forum
I have a database that I have performed a "group_by" of a variable called
CONTBR_OCCUPATION. I then simply want to plot out just the top 15 results as
a bar plot. How do I plot only the top 15 groups on the x -axis. Should I
just extract the top 15 records and plot them or is the a
> Bert Gunter
> on Tue, 15 Oct 2019 07:41:35 -0700 writes:
> "...plausible sample sizes i.e. integers."
> ??
> f(...) = function that returns a real.
> ceiling(f(...)) = function that returns an integer.
> The problem is the "plausible" part.
Actually, power.t.
You don't really want the diddling, since it gives meaningless values anyway...
For a pragmatic strategy, how about this?:
(a) calculate the power at n=2, if bigger than target power, done, else
(b) calculate n to reach target power, now guaranteed to have n > 2. Round
upwards.
Peter D.
> On 1
> On Oct 15, 2019, at 5:19 AM, Subhamoy Chakraborty
> wrote:
>
> Dear All,
>
> Here is the error that I am encountering :-
>
>> sessionInfo()
> R version 3.3.3 (2017-03-06)
> Platform: x86_64-pc-linux-gnu (64-bit)
> Running under: Ubuntu 14.04.5 LTS
>
> locale:
> [1] LC_CTYPE=en_IN LC
You desperately need to upgrade both your operating system and your version of
R. If the rda file was transmitted to you from someone else then that will most
likely fix your problem.
On October 15, 2019 2:19:14 AM PDT, Subhamoy Chakraborty
wrote:
>Dear All,
>
>Here is the error that I am enco
"...plausible sample sizes i.e. integers."
??
f(...) = function that returns a real.
ceiling(f(...)) = function that returns an integer.
The problem is the "plausible" part.
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things int
Started having a problem installing packages where R can't find base unix
commands. I've put an example below (other packages have identical "command not
found" errors, sometimes with different commands e.g. sh) and my
PATH/.Renviron(where the problem likely is). I'm on MacOS. Thanks in advance
Dear All,
Here is the error that I am encountering :-
> sessionInfo()
R version 3.3.3 (2017-03-06)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.5 LTS
locale:
[1] LC_CTYPE=en_IN LC_NUMERIC=C LC_TIME=en_IN
[4] LC_COLLATE=en_IN LC_MONETARY=en_INLC_MESSA
Dear Peter,
Yes, It is a technical issue and a matter of diddling around. And I
agree with your comment regarding the 2 observations.
I have several thousands variance estimates for which I need to
compute the sample sizes automatically. Using try statements is
typically the last thing I would lik
10 matches
Mail list logo