Displaying 6 results from an estimated 6 matches for "leapyears".
Did you mean:
leapyear
2008 Oct 10
2
Leap year?
Given a Date object or simply a year is there an R function to tell me if the it is a leap year or not? I was hoping for something like 'is.leapyear'. I probably can build my own function (year divisible by 4 etc.) but I would rather use an existing function if it is available.
Thank you.
Kevin
2011 Feb 28
0
MultiDimensional arrays
hello,
I'm working with a 4 dimensional NetCDF file, trying to calculate some
summary statistics on a parameter.
The dimensions are number of rows and columns, time and days. The
attribute in question in this case happens
to be a probability of woodstork foraging success. But it could be anything
My question is whether the following code is efficient to grab the
probability values ? I am
2011 Mar 26
0
NetCDF - rolling means and StdDev
Hello,
I am trying to come up with a routine to calculate a rolling mean and
standard deviation for three parameters stored in a NetCDF file. The NetCDF
file contains 10 years of daily records for each of the three parameters,
and I need the statistics for each of the three parameters.
Below I include some code illustrating what I've done so far. Obviously this
approach does not get at the
2005 Jul 14
0
dialplan logic, logical not
In the dial plan, with GotoIf...is there a way to do a logical
negation(NOT)? I want to check if the year is a leap year and the below
code is how I would write the check in C. According to the wiki there
isn't a logical NOT as a valid expression. From reading the
asterisk/docs/README.variables, this seems to be missing.
int year = 2005;
if ( (year % 4 = 0) && !(year % 100 =
2008 Sep 09
1
'xtfrm' performance (influences 'order' performance) in R devel
Hello everybody,
it looks like the presense of some (do know know which) S4 methods for a
given S4 class degrades the performance of xtfrm (used in 'order' in new
R-devel) by a factor of millions. This is for classes that ARE derived
from numeric directly and thus should be quite trivial to convert to
numeric.
Consider the following example:
setClass("TimeDateBase",
2011 Dec 13
4
sum with dates
How do I sum 15 years to my dataset?
original dataset
dates val
1 2001-01-12 1.2
2 2001-02-12 1.2
3 2001-03-12 1.2
result
dates val
1 2016-01-12 1.2
2 2016-02-12 1.2
3 2016-03-12 1.2