Displaying 7 results from an estimated 7 matches for "headpr".
Did you mean:
header
2024 Jun 09
2
head.ts, tail.ts loses time
..., 6-npresObs)
try(tail(presidents, 1:2)) # 'try-error'
try(tail(presidents, 0)) # 'try-error'
# matrix time series
str(pres <- cbind(n=1:length(presidents), presidents))
tail(pres, 2)
tail(pres, 2-npresObs)
tail(pres, 1:2)
tail(pres, 2:1)
tail(pres, 1:3)
# for unit testing:
headPres <- head(presidents)
pres6 <- ts(presidents[1:6], time(presidents)[1],
frequency=frequency(presidents))
stopifnot(all.equal(headPres, pres6))
headPres2 <- head(presidents, 2)
pres2 <- ts(presidents[1:2], time(presidents)[1],
frequency=frequency(presidents))
s...
2024 Jun 10
1
head.ts, tail.ts loses time
...gt; try(tail(presidents, 0)) # 'try-error'
>
> # matrix time series
> str(pres <- cbind(n=1:length(presidents), presidents))
> tail(pres, 2)
>
> tail(pres, 2-npresObs)
>
> tail(pres, 1:2)
> tail(pres, 2:1)
> tail(pres, 1:3)
>
> # for unit testing:
> headPres <- head(presidents)
> pres6 <- ts(presidents[1:6], time(presidents)[1],
> frequency=frequency(presidents))
> stopifnot(all.equal(headPres, pres6))
>
> headPres2 <- head(presidents, 2)
> pres2 <- ts(presidents[1:2], time(presidents)[1],
>...
2024 Jun 10
2
head.ts, tail.ts loses time
...ix time series str(pres <-
>>> cbind(n=1:length(presidents), presidents)) tail(pres, 2)
>>>
>>> tail(pres, 2-npresObs)
>>>
>>> tail(pres, 1:2) tail(pres, 2:1) tail(pres, 1:3)
>>>
>>> # for unit testing: headPres <- head(presidents) pres6
>>> <- ts(presidents[1:6], time(presidents)[1],
>>> frequency=frequency(presidents))
>>> stopifnot(all.equal(headPres, pres6))
>>>
>>> headPres2 <- head(presidents, 2) pres2 <-
>>>...
2024 Jun 10
1
head.ts, tail.ts loses time
...gt;>
>> # matrix time series
>> str(pres <- cbind(n=1:length(presidents), presidents))
>> tail(pres, 2)
>>
>> tail(pres, 2-npresObs)
>>
>> tail(pres, 1:2)
>> tail(pres, 2:1)
>> tail(pres, 1:3)
>>
>> # for unit testing:
>> headPres <- head(presidents)
>> pres6 <- ts(presidents[1:6], time(presidents)[1],
>> frequency=frequency(presidents))
>> stopifnot(all.equal(headPres, pres6))
>>
>> headPres2 <- head(presidents, 2)
>> pres2 <- ts(presidents[1:2], time(president...
2024 Jun 11
1
head.ts, tail.ts loses time
...t; >>> cbind(n=1:length(presidents), presidents)) tail(pres, 2)
> >>>
> >>> tail(pres, 2-npresObs)
> >>>
> >>> tail(pres, 1:2) tail(pres, 2:1) tail(pres, 1:3)
> >>>
> >>> # for unit testing: headPres <- head(presidents) pres6
> >>> <- ts(presidents[1:6], time(presidents)[1],
> >>> frequency=frequency(presidents))
> >>> stopifnot(all.equal(headPres, pres6))
> >>>
> >>> headPres2 <- head(presidents, 2) pres...
2024 Jun 10
1
head.ts, tail.ts loses time
...>>> cbind(n=1:length(presidents), presidents)) tail(pres, 2)
> >>>
> >>> tail(pres, 2-npresObs)
> >>>
> >>> tail(pres, 1:2) tail(pres, 2:1) tail(pres, 1:3)
> >>>
> >>> # for unit testing: headPres <- head(presidents) pres6
> >>> <- ts(presidents[1:6], time(presidents)[1],
> >>> frequency=frequency(presidents))
> >>> stopifnot(all.equal(headPres, pres6))
> >>>
> >>> headPres2 <- head(presidents, 2)...
2024 Jun 13
0
head.ts, tail.ts loses time
...t; >>> cbind(n=1:length(presidents), presidents)) tail(pres, 2)
> >>>
> >>> tail(pres, 2-npresObs)
> >>>
> >>> tail(pres, 1:2) tail(pres, 2:1) tail(pres, 1:3)
> >>>
> >>> # for unit testing: headPres <- head(presidents) pres6
> >>> <- ts(presidents[1:6], time(presidents)[1],
> >>> frequency=frequency(presidents))
> >>> stopifnot(all.equal(headPres, pres6))
> >>>
> >>> headPres2 <- head(presidents, 2) pres...