Thanks! That works!!
Duncan Murdoch 於 2019年2月27日 週三 下午12:06寫道:
> On 26/02/2019 10:34 p.m., John wrote:
> > If I use the na.locf function to replace each NA with the most recent
> > non-NA prior to it, then
> >
> >> na.locf(c(NA,NA,1,4,NA,2))
> > [1] 1 1 1 4 4 2
> >
> > I want to keep leading NA'
On 26/02/2019 10:34 p.m., John wrote:
If I use the na.locf function to replace each NA with the most recent
non-NA prior to it, then
na.locf(c(NA,NA,1,4,NA,2))
[1] 1 1 1 4 4 2
I want to keep leading NA's, and this is what I want
NA NA 1 4 4 2
How can I do it?
The following do not work:
If I use the na.locf function to replace each NA with the most recent
non-NA prior to it, then
> na.locf(c(NA,NA,1,4,NA,2))
[1] 1 1 1 4 4 2
I want to keep leading NA's, and this is what I want
NA NA 1 4 4 2
How can I do it?
The following do not work:
> na.locf(c(NA,NA,1,4,NA,2), na.rm=FALSE)
Crossposting is explicitly advised against in the rhelp posting guide.
Furthermore, this is the wrong list for this sort of question within the
r-project hierarchy of mailing lists. I do not believe an answer is
possible in the absence of the data (and note the request some
would say deman
(Also posted on StackExchange but submitting to R-help to reach more potential
experts)I am using the gamm function in the mgcv package in R to specify a
model that predicts abundance with respect to elevation and year based on
repeated measures from several sites. My overarching question is how
Dear All,
The latest issue of The R Journal is now available at:
https://journal.r-project.org/archive/2018-2/
Many thanks to all contributors - especially reviewers and authors.
Regards,
John Verzani
CUNY/College of Staten Island
--
John Verzani
Department of Mathematics
College of Staten I
Dear R-users,
(with my apologies for multiple posting: this message was already posted
on R-announce but accidentally not forwarded to R-help)
The list of selected tutorials for useR! 2019 is out
http://user2019.r-project.org/tutorials/. If you want to join them, you
can still submit a proposal
On Tue, 26 Feb 2019, Martin Maechler wrote:
I'm not the expert on these problems, but as nobody else has
replied:
Martin,
Thanks for responding.
My experience is that both Rcpp and BH need "often" to be re-installed if
your system updates in some way. IIUC, 'LinkingTo:' is actually a misno
> Rich Shepard
> on Sun, 24 Feb 2019 11:08:43 -0800 writes:
> I apologize for the ambiguous subject; I could not think of a more
accurate
> one.
> Updating packages reported that 'later' did not build, but I did not see
> which dependency needs updating. Looking at t
9 matches
Mail list logo