on(x)
> round(mean(df_snow$snow[df_snow$day == x], na.rm=T)))
>
> This does not work. I do not understand why the class of df_snow_day$snow
> is of type list either:
>
>day snow
> NA NULL
> NA.1 NULL
> NA.2 NULL
>
> Where is my mistake?
&
A.2 NULL
Where is my mistake?
Thank you for all your help
Stefano
_
Da: Duncan Murdoch [murdoch.dun...@gmail.com]
Inviato: giovedì 9 giugno 2016 12.36
A: Stefano Sofia; r-help@r-project.org
Oggetto: Re: [R] create an empty data frame and then fill in it
On
une 10, 2016 12:46 PM
> To: Duncan Murdoch ; r-help@r-project.org
> Subject: Re: [R] create an empty data frame and then fill in it (and then
> evaluate the mean of semi-hourly data for each day)
>
> Thank you for your answer. Very clear.
> (I don't like the second solution eit
gmail.com]
Inviato: giovedì 9 giugno 2016 12.36
A: Stefano Sofia; r-help@r-project.org
Oggetto: Re: [R] create an empty data frame and then fill in it
On 09/06/2016 6:22 AM, Stefano Sofia wrote:
> Dear R list users,
> sorry for this simple question, but I already spent many efforts to s
On 09/06/2016 6:22 AM, Stefano Sofia wrote:
Dear R list users,
sorry for this simple question, but I already spent many efforts to solve it.
I create an empty data frame called df_year like
df_year <- data.frame(day=as.Date(character()), hs_MteBove=integer(),
hs_MtePrata=integer(), hs_Pintura=
On 09/06/2016 6:22 AM, Stefano Sofia wrote:
Dear R list users,
sorry for this simple question, but I already spent many efforts to solve it.
I create an empty data frame called df_year like
df_year <- data.frame(day=as.Date(character()), hs_MteBove=integer(),
hs_MtePrata=integer(), hs_Pintura=
Dear R list users,
sorry for this simple question, but I already spent many efforts to solve it.
I create an empty data frame called df_year like
df_year <- data.frame(day=as.Date(character()), hs_MteBove=integer(),
hs_MtePrata=integer(), hs_Pintura=integer(), hs_Pizzo=integer(),
hs_Sassotetto=
7 matches
Mail list logo