Re: [R] Separating lines in ts.plot()?

2015-11-29 Thread Jim Lemon
Hi mviljamaa, Line color, line style, line width... An example or an image of the output would help. Jim On Mon, Nov 30, 2015 at 5:22 AM, mviljamaa wrote: > I'm using ts.plot() to plot a matrix of time series (each column is a ts). > > What I noticed is that ts.plot()

[R] Separating lines in ts.plot()?

2015-11-29 Thread mviljamaa
I'm using ts.plot() to plot a matrix of time series (each column is a ts). What I noticed is that ts.plot() creates a lot of overlapping lines which makes it difficult to distinguish different series. What options exist for making the series more easily read?

[R] Converting a matrix to an mcmc object

2015-11-29 Thread Margaret Donald
Dear List, I am using R2jags and post process some mcmc objects to produce a new object, which is currently a matrix, which replicates the shape of the objects from which it is derived. I want to produce a Gelman-Rubin graph from its (implied) three chains, but I need to coerce the matrix into

[R] Extracing Unique Rows based on 2 Column

2015-11-29 Thread Ragia Ibrahim
Dear group, kindly,  I have a data frame, as follows:  Measure_id i j value      rank 1           1 2 3   2.0 1.000 2           1 5 1   2.0 1.000 3           1 2 1   1.5 0.750 4           1 5 2   1.5 0.750 5           1 7 3   1.5 1.000 6           1 2 4   1.0 0.500 7      

Re: [R] Extracing Unique Rows based on 2 Column

2015-11-29 Thread Boris Steipe
A logical expression applied to a vector (such as a dataframe column) gives you a logical vector that you can use for selection. You can combine several of these with the & (AND) and | (OR) operator. In your case, you apparently want a range of possible values. Use the %in% operator. Consider

Re: [R] Error in 'Contrasts<-' while using GBM.

2015-11-29 Thread Max Kuhn
Providing a reproducible example and the results of `sessionInfo` will help get your question answered. My only guess is that one or more of your predictors are factors and that the in-sample data (used to build the model during resampling) have different levels than the holdout samples. Max On

Re: [R] Converting a matrix to an mcmc object

2015-11-29 Thread Jim Lemon
Hi Margaret, Doesn't the "mcmc" function in the "coda" package create an mcmc object from a matrix? Jim On Mon, Nov 30, 2015 at 9:44 AM, Margaret Donald < merricks.merri...@gmail.com> wrote: > Dear List, > > I am using R2jags and post process some mcmc objects to produce a new > object, which

Re: [R] Extracing Unique Rows based on 2 Column

2015-11-29 Thread Johannes Huesing
Ragia Ibrahim [Mon, Nov 30, 2015 at 04:55:08AM CET]: Dear group, kindly,  I have a data frame, as follows:  Measure_id i j value      rank I want to select distinct rows based on two coulmn ( Measure_id  and i ) I didn't get your example code to run but the following

[R] Frank Wang <fw42...@gmail.com>

2015-11-29 Thread 13351275265
Frank Wang you can use function substr() to split the number. x<-c(substr("02d0",1,4),substr("02d0",5,8)) > x [1] "02d0" "" [[alternative HTML version deleted]] __ R-help@r-project.org mailing list --