You loaded "lubridate" so using Erin's approach
library(lubridate)
st <- c("1961-01","1961-04","1983-02")
dat1 <- ymd(paste( st, "01", sep ="-"))
On Monday, August 20, 2018, 1:15:56 a.m. EDT,
wrote:
Thanks Erin and Jim. You have indeed solved my problem.
Philip
Quoting Erin
Please disregard I simply added a highlight variable and added
scale_fill_manual(values = c("Yes"="red", "No"="grey"))
-Original Message-
From: R-help On Behalf Of Jeff Reichman
Sent: Tuesday, August 21, 2018 8:44 PM
To: r-help@r-project.org
Subject: [R] How to manually color
R-Help Forum
While the following code works fine I need to change (highlight) specific
"bars" within plot 2 (p2). For example I want the bars to be (lets say)
red, on 1 Aug 2016 and 1 Aug 2017 . What do I need to do?
library(ggplot2)
library(reshape2)
library(scales)
library(egg)
Nice one!
On Tue, Aug 21, 2018 at 6:14 PM John Kane wrote:
> You loaded "lubridate" so using Erin's approach
>
> library(lubridate)
> st <- c("1961-01","1961-04","1983-02")
> dat1 <- ymd(paste( st, "01", sep ="-"))
>
>
> On Monday, August 20, 2018, 1:15:56 a.m. EDT, <
>
hi R https://goo.gl/G8X41r
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal,
Dear Paul,
Is it possible that you're overthinking this? That is, to you really need an R
model formula or just want to evaluate an arithmetic expression using the
columns of X?
If the latter, the following approach may work for you:
> evalFormula <- function(X, expr){
+ if
Can you point me at any packages that allow users to write a
formula with coefficients?
I want to write a data simulator that has a matrix X with lots
of columns, and then users can generate predictive models
by entering a formula that uses some of the variables, allowing
interactions, like
y ~
On Mon, Aug 20, 2018 at 2:17 PM David Doyle wrote:
>
> Hello everyone,
>
> I'm trying to generate tables of my data out of R for my report.
>
> My data is setup in the format as follows and the example can be found at:
> http://doylesdartden.com/R/ExampleData.csv
>
> LocationDate
Dear David:
Thank you very much
abou
__
*AbouEl-Makarim Aboueissa, PhD*
*Professor of Statistics*
*Department of Mathematics and Statistics*
*University of Southern Maine*
On Tue, Aug 21, 2018 at 12:07 PM David L Carlson wrote:
> There are some materials at
>
>
Another approach to adding GW_Elevation to the year value, but the table is
more compact with just the year.
dta <- read.csv("http://doylesdartden.com/R/ExampleData.csv;)
Years <- paste("GW_Elevation", dta$Year)
xtabs(GW_Elevation~Location+Years, dta)
David L. Carlson
Department of
There are some materials at
https://www-users.cs.umn.edu/~kumar001/dmbook/index.php
Michael Hahsler has code examples at
https://mhahsler.github.io/Introduction_to_Data_Mining_R_Examples/
https://github.com/mhahsler/Introduction_to_Data_Mining_R_Examples
David L. Carlson
Department of
Dear All: good morning
I am going to teach a course title "Introduction to Statistical Data
Mining", and I am using the book titled "*Introduction to Data Mining
(Second Edition)*" by Kumar and etal.
I am wondering if someone have R codes/functions for examples and exercises
given in this
(apologies for cross posting)
The Statistical Computing and Graphics Award of the ASA Sections of Statistical
Computing and Statistical Graphics recognizes an individual or team for
innovation in computing, software, or graphics that has had a great impact on
statistical practice or research.
Try this:
plot(1)
tmp <- x >= 3 ~ "&" ~ y <= 3
mtext(tmp)
On Mon, Aug 20, 2018 at 5:00 PM MacQueen, Don via R-help
wrote:
>
> I would like to use plotmath to annotate a plot with an expression that
> includes a logical operator.
>
> ## works well
> tmp <- expression(x >= 3)
> plot(1)
>
Hi,
Which package/function do you recommend for Granger causality between x
and y with an error correction term?
In my problem, economic theory maintains that x~ I(1); y~I(1), x-y ~I(0)
\begin{eqnarray}
\Delta x_t = g_0 + \lambda_{x}(x_{t-1}-y_{t-1})+\sum_{k=1}^{n}g_{1k}\Delta
Hello,
I have a list of lists. The lists in the list of lists are file names. I
use lapply to read and merge the contents of each list in the list of lists
(3 merged contents in this case which will be the content of 3 files).
Then, I have to change the name of the 3 resulting files and
16 matches
Mail list logo