Re: [R] Add Anova statistics in each figure

2017-07-30 Thread David Winsemius
> On Jul 30, 2017, at 11:28 AM, Kristi Glover wrote: > > Hi R Users, > > I created interaction plots in ggplot2 and was trying to add output of two > way ANOVA models, especially only interaction ( example treatment*control > F(XX, XX) = xxx, p = xxx) into

Re: [R] greek letters do not work in expression

2017-07-30 Thread Uwe Ligges
There is no internationalization of help pages, only of messages. Best, Uwe On 30.07.2017 21:51, David Winsemius wrote: On Jul 30, 2017, at 8:25 AM, Uwe Ligges wrote: On 30.07.2017 17:22, Milan Cisty wrote: Dear all, I appreciate suggestions for

[R] How to replace match words whith colum name of data frame?

2017-07-30 Thread Abraham Mathew
Try the stringr package. This should work chemical=c("basic", "alkalin", "alkali", "acid", " ph ", "hss") chemical_match <- str_c(chemical, collapse = "|") chemical_match concept_df$match[str_detect(concept_df$concept, chemical_match)] <- "chemical" concept_df > concept_df

Re: [R] greek letters do not work in expression

2017-07-30 Thread Rui Barradas
Hello, Inline. Em 30-07-2017 20:51, David Winsemius escreveu: On Jul 30, 2017, at 8:25 AM, Uwe Ligges wrote: On 30.07.2017 17:22, Milan Cisty wrote: Dear all, I appreciate suggestions for following problem. I wrote to RStudio: plot(c(1,20),c(1,20), xlab

Re: [R] How export data set (available in the package) from R?

2017-07-30 Thread Suzen, Mehmet
I also suggest you Hadley's optimized package for interoperating xls files with R: https://github.com/tidyverse/readxl https://cran.r-project.org/web/packages/readxl/index.html __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] greek letters do not work in expression

2017-07-30 Thread David Winsemius
> On Jul 30, 2017, at 8:25 AM, Uwe Ligges > wrote: > > > > On 30.07.2017 17:22, Milan Cisty wrote: >> Dear all, >> I appreciate suggestions for following problem. I wrote to RStudio: >> plot(c(1,20),c(1,20), xlab = expression(paste(alfa))) >> or the same

Re: [R] problem in run cmsaf script

2017-07-30 Thread Jeff Newmiller
1) Very few attachment types are permitted on the R mailing lists. Study the Posting Guide and for best results put code and data within the body of your email. 2) This is not the debug-my-script mailing list, it is the R-help mailing list, which means helping you understand one or a few

Re: [R] Kalman filter for a time series

2017-07-30 Thread Staff
Thanks David, that's the clue I needed. Since x monotonically increases, all I needed to do was: ssModel = SSModel( t ~ SSMtrend(degree=1, Q=matrix(NA)), H=matrix(NA), distribution="gaussian") On Sun, Jul 30, 2017 at 10:11 AM, David Winsemius wrote: > > > On Jul

Re: [R] Kalman filter for a time series

2017-07-30 Thread Staff
Exactly. I'm doing: x=c(1:length(t)) ssModel = SSModel( t~x, distribution="gaussian",H=NA) but it is not plotting the Kalman filter line and not giving any errors. I'm not sure what more the model needs? On Sun, Jul 30, 2017 at 9:17 AM, Roy Mendelssohn - NOAA Federal <

[R] problem in run cmsaf script

2017-07-30 Thread Nooshin Ahmadi via R-help
Hi I work with cmsaf package and have a script for prepare data in R. I run this script and have some error like this:Error in if (startdate < dates[1]) (dums <- 1) : missing value where TRUE/FALSE needed In addition: Warning messages: 1: running command 'tar.exe -tf "D:/CM SAF/ORD24552.tar"'

Re: [R] greek letters do not work in expression

2017-07-30 Thread Marc Schwartz
> On Jul 30, 2017, at 10:22 AM, Milan Cisty wrote: > > Dear all, > I appreciate suggestions for following problem. I wrote to RStudio: > plot(c(1,20),c(1,20), xlab = expression(paste(alfa))) > or the same happen when I wrote: > plot(c(1,20),c(1,20), xlab =

Re: [R] greek letters do not work in expression

2017-07-30 Thread Uwe Ligges
On 30.07.2017 17:22, Milan Cisty wrote: Dear all, I appreciate suggestions for following problem. I wrote to RStudio: plot(c(1,20),c(1,20), xlab = expression(paste(alfa))) or the same happen when I wrote: plot(c(1,20),c(1,20), xlab = expression(alfa)) Write "alpha", not "alfa". Best, Uwe

[R] greek letters do not work in expression

2017-07-30 Thread Milan Cisty
Dear all, I appreciate suggestions for following problem. I wrote to RStudio: plot(c(1,20),c(1,20), xlab = expression(paste(alfa))) or the same happen when I wrote: plot(c(1,20),c(1,20), xlab = expression(alfa)) what happen is, that description under x label is exactly "alpha", not greek letter

Re: [R] Kalman filter for a time series

2017-07-30 Thread David Winsemius
> On Jul 30, 2017, at 5:10 AM, Spencer Graves > wrote: > > > > On 2017-07-29 11:26 PM, Staff wrote: >> I found an example at >> http://www.bearcave.com/finance/random_r_hacks/kalman_smooth.html > > That example is signed by "Ian Kaplan". There's a

Re: [R] Kalman filter for a time series

2017-07-30 Thread Roy Mendelssohn - NOAA Federal
> structSSM Is no longer part of KFAS. All you needed to do was: library(KFAS) ?KFAS and you would have seen that if you went to the index. A structural state space model is now built up from its components, much like in LM. Look at; ?SSModel -Roy > On Jul 29, 2017, at 9:26 PM, Staff

Re: [R] Kalman filter for a time series

2017-07-30 Thread Spencer Graves
On 2017-07-29 11:26 PM, Staff wrote: I found an example at http://www.bearcave.com/finance/random_r_hacks/kalman_smooth.html That example is signed by "Ian Kaplan". There's a box at the bottom of the page for you to email him. shown below. But it seems the structSSM function

Re: [R] [FORGED] How export data set (available in the package) from R?

2017-07-30 Thread Rolf Turner
On 30/07/17 15:47, Ted via R-help wrote: "Data set flchain available in the survival package". How can I get it (from R) as Excel file? Thanks! The best advice is *DON'T*!!! I.e. Don't use Excel. Ever. Unless you really *want* to create chaos and havoc, and let slip the dogs of war.

Re: [R] How export data set (available in the package) from R?

2017-07-30 Thread Hasan Diwan
write.csv(flchain, 'flchain.csv') should import into Excel without problems. -- H On 29 July 2017 at 23:27, Jeff Newmiller wrote: > Read the help file for the survival package. Probably use the data > function to retrieve it, and write it out using the write.table

Re: [R] How export data set (available in the package) from R?

2017-07-30 Thread Jeff Newmiller
Read the help file for the survival package. Probably use the data function to retrieve it, and write it out using the write.table function. -- Sent from my phone. Please excuse my brevity. On July 29, 2017 8:47:51 PM PDT, Ted via R-help wrote: >"Data set flchain

[R] Kalman filter for a time series

2017-07-30 Thread Staff
I found an example at http://www.bearcave.com/finance/random_r_hacks/kalman_smooth.html shown below. But it seems the structSSM function has been removed from KFAS library so it won't run. Does anyone know how to fix the code so that it runs? library(KFAS) library(tseries) library(timeSeries)

[R] How export data set (available in the package) from R?

2017-07-30 Thread Ted via R-help
"Data set flchain available in the survival  package".  How can I get it (from R)  as Excel file? Thanks! [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see