Hi
Please do not post in HTML formating, your messages are then messy. Better
to show how your data frame look like is something like
dput(bop.df[1:10,])
Anyway, melt/cast functions from reshape2 package are quite handy for such
tasks.
Cheers
Petr
> -Original Message-
> From: R-help
Thanks a lot to David and William - I think
ggplot( data=ddd, aes(x=pH, y=BC,group=interaction(type,pH),
col=type))+geom_boxplot()
was very helpful!
All best
Troels
Den 18-05-2021 kl. 02:27 skrev David Winsemius:
ggplot( data=ddd, aes(x=pH, y=BC,group=interaction(type,pH),
col=type))+geom_
Hi Troels,
Have you considered using Lattice graphics?
Adapting from examples on the help page:
> ?histogram()
> histogram( ~ BC | pH, data = ddd, type = "density",
xlab = "BC", layout = c(1, 3), aspect = 0.618,
strip = strip.custom(strip.levels=c(TRUE,TRUE)),
panel = function(x, ...) {
On 5/17/21 7:44 AM, Troels Ring wrote:
Dear friends
I'm trying to plot in silico derived values of 3 types of
buffer-capacities over pH values and want densities of the three
types together at each pH with the pH values on the abscissa.
I have generated some data
set.seed(2345)
pHs <- c(7
Have you looked here: https://cran.r-project.org/web/views/Optimization.html
(Warning: I have no idea whether your query even makes mathematical sense.)
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed
On 5/17/21 7:44 AM, Troels Ring wrote:
Dear friends
I'm trying to plot in silico derived values of 3 types of
buffer-capacities over pH values and want densities of the three
types together at each pH with the pH values on the abscissa.
I have generated some data
set.seed(2345)
pHs <- c(7
Hi everyone,
I'm looking for an R-function that solves a quadratically constrained
linear program of the form:
min(x) -\mu' x
subject to
x' \Sigma x <= s
1'x <= 1
-1'x <= -1
Ix <= u
-Ix <= -b
while considering a given starting value for the vector x.
The above problem results from a larger pro
Dear R Community,
blocklength 0.1.4 has been released to CRAN
(https://cran.r-project.org/package=blocklength! blocklength is a package with
several methods to automatically select the optimal block-length parameter to
be used in a block-bootstrap procedure of dependent data, such as stationary
Country <- c('Angola', 'Angola','Botswana',
'Botswana','Zimbabwe','Zimbabwe')
year <- c('2006', '2007', '2008', '2009', '2010', '2006')
bank_ratio <- c(24,25,38,34,42,49)
Reserve_ratio <- c(77,59,64,65,57,86)
broad_money <- c(163,188,317,361,150,288)
id <- (c(1,1,2,2,3,3))
df <- data.frame(Country
Such specialized questions are usually better posted on appropriate R-sigs,
in this case, https://stat.ethz.ch/mailman/listinfo/r-sig-phylo I presume.
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in
If your data frame is named x then
y <- x[ x$id %in% c(1,2), ]
would create a new data frame y that has what you want.
On Mon, May 17, 2021 at 5:33 PM Admire Tarisirayi Chirume <
atchir...@gmail.com> wrote:
> Can someone help on how to filter my data frame below such that it retains
> a countr
Hi Ramdas,
I have no idea what might be causing this but it would probably help those
who might be able to help if you supply additional information, such as the
output of sessionInfo() in an R session.
Also try to send your emails to the list in plain text (not HTML).
Good luck,
Eric
On Mon, Ma
Dear friends
I'm trying to plot in silico derived values of 3 types of
buffer-capacities over pH values and want densities of the three types
together at each pH with the pH values on the abscissa.
I have generated some data
set.seed(2345)
pHs <- c(7.2,7.4,7.6)
pH <- rep(pHs,each=30)
BC <- r
I believe you'll need to show us exactly what bop.df looks like, e.g. via
head(bop.df) .
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Mon, May 17, 2021 at 7:
Dear All
I am trying to apply a phylogenetic correction to an MCMC model, but I have
problems in making the inverse matrix. I can visualise the treeplot very well,
but when I use the script:
inv.phylo<-inverseA(phylo_ultra,nodes="TIPS",scale=TRUE)
R tells me that there is an error:
Error in
I need help on reshaping my data frame which is currently in wide format.
I ran the following codes to create panel ids based on the variable for
country names "*Country"; *
*bop.df$id<-as.numeric(as.factor(bop.df$Country))*
then ran the code below to reshape from wide to long format;
*reshape
Can someone help on how to filter my data frame below such that it retains
a country if a given id (last column) is satisfied eg filtering a data
frame that has countries with id 1 and 2 only
Country year bank_ratio Reserve_ratio broad_money id
Angola 2006 24 77 163 1
Angola 2007 25 59 188 1
Botsw
I have a working knowledge of R, and have been teaching statistics courses
based on R for quite some time now.
I started with ver 4.0.2, and am now using Ver 4.0.5 which I downloaded a
week ago. The system works when I type Object <- read.csv(file.choose())
for a couple of times, and then just sta
Hi All,
Version 1.0.0 of the new BI package is now on CRAN.
The BI package will generate the James Blinding Index, as described in
James et al (1996, https://pubmed.ncbi.nlm.nih.gov/8841652/) and the
Bang Blinding Index, as described in Bang et al (2004,
https://pubmed.ncbi.nlm.nih.gov/150200
Dear R community,
A new version of diveMove (1.6.0) is now on CRAN
(https://cran.r-project.org/package=diveMove). diveMove offers tools
and utilities for performing essential tasks for the analysis of
time-depth recoder (TDR) data loggers.
The latest version completes the framework for modelling
20 matches
Mail list logo