search for: nnnot

Displaying 4 results from an estimated 4 matches for "nnnot".

Did you mean: annot
2024 Feb 08
1
round.Date and trunc.Date not working / implemented
...one. Here an example with trunc. Sys.Date() |> class() Sys.Date() |> trunc("years") Sys.Date() |> trunc.Date("years") Sys.Date() |> trunc.POSIXt("years") As for the OP, the problem is thhat the generic roun())) doesn't have unit argument. So I am nnnot understanding why round.POSIXt works. Sys.Date() |> round("years") #> Error in round.default(structure(19761, class = "Date"), "years"): non-numeric argument to mathematical function Sys.Date() |> round.Date("years") #> Error in NextMethod(): g...
2024 Feb 08
1
round.Date and trunc.Date not working / implemented
...gt; Sys.Date() |> class() > Sys.Date() |> trunc("years") > Sys.Date() |> trunc.Date("years") > Sys.Date() |> trunc.POSIXt("years") > > > As for the OP, the problem is thhat the generic roun())) doesn't have > unit argument. So I am nnnot understanding why round.POSIXt works. > > > Sys.Date() |> round("years") > #> Error in round.default(structure(19761, class = "Date"), "years"): > non-numeric argument to mathematical function > Sys.Date() |> round.Date("years") &gt...
2024 Feb 08
2
round.Date and trunc.Date not working / implemented
> On 8 Feb 2024, at 15:15, Martin Maechler <maechler at stat.math.ethz.ch> wrote: > >>>>>> Ji?? Moravec >>>>>> on Wed, 7 Feb 2024 10:23:15 +1300 writes: > >> This is my first time working with dates, so if the answer is "Duh, work >> with POSIXt", please ignore it. > >> Why is not `round.Date` and
2024 Feb 08
1
round.Date and trunc.Date not working / implemented
...>> Sys.Date() |> trunc("years") >> Sys.Date() |> trunc.Date("years") >> Sys.Date() |> trunc.POSIXt("years") >> >> >> As for the OP, the problem is thhat the generic roun())) doesn't have >> unit argument. So I am nnnot understanding why round.POSIXt works. >> >> >> Sys.Date() |> round("years") >> #> Error in round.default(structure(19761, class = "Date"), "years"): >> non-numeric argument to mathematical function >> Sys.Date() |> round.Dat...