Hi Rosa,
You pass a vector to ggplot, which expects a data.frame. I am sure you
meant to do this:
point7$y_point7 <- point7$beta0_7 + point7$beta1_7*point7$time + point7
$epsilon_7
ggplot(point7, aes(time, y_point7)) + geom_line()
HTH
Ulrik
On Wed, 19 Jul 2017 at 20:37 Rosa Oliveira
I think this looks like a question about statistics. I suggest you review the
documentation for the functions you are using and study the references to
better understand the algorithms you are using. If you think the algorithms are
not behaving according to theory and the packages are part of
> On 19 Jul 2017, at 21:34, Eridk Poliruyt wrote:
>
> Hi all,
>
> I am trying to analyse a time series data and want to make
> trend-season decomposition using STL approach in R. However I found
> the decomposition result seems to be sensitive to data points even
> with the
Hi everyone,
I’m trying to do a spaghetti plot and I know I’m doing all wrong, It must be.
What I need:
15 subjects, each with measurements over 5 different times (t1, ..., t5), and
the variable that I need to represent in the spaguetti plot is given by:
PCR = b0 + b1 * ti + epsilon
B0, -
Hi all,
I am trying to analyse a time series data and want to make
trend-season decomposition using STL approach in R. However I found
the decomposition result seems to be sensitive to data points even
with the robust option.
More specifically, suppose I have a few years of monthly data. Using
Thank you all!
On Mon, Jul 17, 2017 at 4:46 PM, Michael Friendly wrote:
> On 7/16/2017 9:36 AM, Nada Gh wrote:
>>
>> Hi,
>>
>> I create a plot using sunflowerplot, I need to highlight one point to show
>> its importance. What suggestion you have to accomplish this?
>>
>>
On 19/07/2017 11:41 AM, Jeff Newmiller wrote:
I think the whole premise of this question is flawed. If you want to work with
this string as data, then read it in from a separate file using readLines. If
it is fixed data that you want to be part of your program, then invest the
effort to
I think the whole premise of this question is flawed. If you want to work with
this string as data, then read it in from a separate file using readLines. If
it is fixed data that you want to be part of your program, then invest the
effort to escape the odd characters and be done with it. But
> On Jul 19, 2017, at 5:38 AM, Michael Friendly wrote:
>
> It was suggested to quote your string with *backticks* (` ... `) rather than
> single quotes.
>
> String <- `
>
> ...
> `
That failed for me. The parser considered it a language object, an R name.
Here's
Necesito eliminar los datos de la COLUMNA"B" COMPRENDIDOS ENTRE EL 1-1-2016 y el 4-4-2016. Obviamente se entiende que son solo de la columna "B", DE MULTIPLES COLUMNAS de un data frame
Queda más claro asi?
Ahora, si al mismo tiempo, esos espacios en blanco se pudieses remplazar con NAN sería
Estimados
Desde mi punto de vista, si los datos están en una base de datos es más simple
trabajarlos en la base de datos, en caso de no poder modificar datos guardados
se podría colocar en la consulta la parte sql que limpiaría los datos con unos
simples if. Claro que cuándo los datos vienen
It was suggested to quote your string with *backticks* (` ... `) rather
than single quotes.
String <- `
...
`
On 7/18/2017 1:05 PM, Christofer Bogaso wrote:
Thanks for your pointer.
Is there any way in R how to replace " ' " with " /' " programmatically?
My actual string is quite
Javier hay algo que no entiendo, no aclaras bien porque el filtrado por fechas
para modificar el valor de un campo según su valor actual, sino aclaras bien
eso las soluciones que te brinden por buenas que sean puede que no resuelvan el
problema porque va a satisfacer totalmente los casos, igual
Primero asegúrate de que la columna "date" es de clase "fecha":
datos$date <- as.Date(datos$date)
Si quieres seleccionar las fechas anteriores al 4 de enero, sería, por ejemplo:
datos$B[datos$date < "2016-1-4"] <- NA
Si quieres seleccionar en un rango:
datos$B[datos$date > "2016-1-2" &
hola javier, usando data.table si tu bbdd es grande:
library(data.table)
xx <- fread("/tu/path/ejemplo.csv")
xx
xx[date%in%c("2016-1-2","2016-1-3"), B:=NA]
> xx
date A B C
1: 2016-1-2 1 NA 1
2: 2016-1-3 2 NA 2
3: 2016-1-4 3 3
Is res.path usually empty? If the res.path directory is empty (i.e.
dir(res.path) is an empty vector) the file.remove operation will remove the
directory. This behaviour is documented in the help for file.remove. When
your subsequent function tries to write to that directory it does not exist
Hi Ana,
The path is most likely wrong.
How does f.texto() know the res.path? Do you manage to remove the old path
and create a new one but f.texto() doesn't know?
Not reasons for your problem, but curious: Why do you change the working
directory? What is the intention behind appending
On 19/07/17 19:19, Ana Belén Marín wrote:
Hi all!
I'm developing a shiny app and I have problems when I wanna write a .txt
file.
" ... when I *want to* write ..."
The language of this mailing list is *English*, not Valspeak.
cheers,
Rolf Turner
--
Technical Editor ANZJS
Department of
Hi all!
I'm developing a shiny app and I have problems when I wanna write a .txt
file.
First of all, I change the directory in order to work in a temporal one:
wd <- tempdir()
setwd( wd )
res.path <- paste0( wd, "/OUT/" )
dir.create( res.path )
Just before calling the function that fails, I
19 matches
Mail list logo