Here is a solution using character manipulation. Noting that month.name
is built into R we paste together the character string:
"January Februrary ... December January ... December"
Then we use perl style ungreedy matching to get the shortest substring
matching the indicated expression then splitt
Duncan Murdoch-2 wrote:
>
> On 11/09/2007 6:36 AM, Arun Kumar Saha wrote:
>> Hi all,
>>
>> I am looking for a function for following calculation.
>>
>> start.month = "July"
>> end.month = "January"
>>
>> months = f(start.month, end.month, by=1)
>>
>> * f is the function that I am looking for
On 11/09/2007 6:36 AM, Arun Kumar Saha wrote:
> Hi all,
>
> I am looking for a function for following calculation.
>
> start.month = "July"
> end.month = "January"
>
> months = f(start.month, end.month, by=1)
>
> * f is the function that I am looking for.
>
> Actually I want to get months = c(
3 matches
Mail list logo