Displaying 20 results from an estimated 349 matches for "pres".
Did you mean:
pre
2024 Jun 09
2
head.ts, tail.ts loses time
Hello, All:
The 'head' and 'tail' functions strip the time from a 'ts' object.
Example:
> head(presidents)
[1] NA 87 82 75 63 50
> window(presidents, 1945, 1946.25)
Qtr1 Qtr2 Qtr3 Qtr4
1945 NA 87 82 75
1946 63 50
Below please find code for 'head.ts' and 'tail.ts' that matches
'window'.
Comments?
Spencer Graves
head.ts <- function(x...
2024 Jun 10
1
head.ts, tail.ts loses time
zoo overcomes many of the limitations of ts:
library(zoo)
as.ts(head(as.zoo(presidents)))
## Qtr1 Qtr2 Qtr3 Qtr4
## 1945 NA 87 82 75
## 1946 63 50
xts also works here.
On Sun, Jun 9, 2024 at 12:04?PM Spencer Graves
<spencer.graves at prodsyse.com> wrote:
>
> Hello, All:
>
>
> The 'head' and 'tail' functions...
2024 Jun 10
2
head.ts, tail.ts loses time
...am sympathetic adding such methods to "base R"'s
utils package.
Martin
> Best Wishes, Spencer Graves
> On 6/9/24 8:40 PM, Gabor Grothendieck wrote:
>> zoo overcomes many of the limitations of ts:
>>
>> library(zoo) as.ts(head(as.zoo(presidents))) ## Qtr1 Qtr2
>> Qtr3 Qtr4 ## 1945 NA 87 82 75 ## 1946 63 50
>>
>> xts also works here.
>>
>> On Sun, Jun 9, 2024 at 12:04?PM Spencer Graves
>> <spencer.graves at prodsyse.com> wrote:
>>>
>>> Hell...
2024 Jun 10
1
head.ts, tail.ts loses time
...quot; both
call "[", so "head" cannot return a ts object, because "[" doesn't.
Best Wishes,
Spencer Graves
On 6/9/24 8:40 PM, Gabor Grothendieck wrote:
> zoo overcomes many of the limitations of ts:
>
> library(zoo)
> as.ts(head(as.zoo(presidents)))
> ## Qtr1 Qtr2 Qtr3 Qtr4
> ## 1945 NA 87 82 75
> ## 1946 63 50
>
> xts also works here.
>
> On Sun, Jun 9, 2024 at 12:04?PM Spencer Graves
> <spencer.graves at prodsyse.com> wrote:
>>
>> Hello, All:
>>
>>
>...
2024 Jun 11
1
head.ts, tail.ts loses time
...;'s
> utils package.
>
>
> Martin
>
> > Best Wishes, Spencer Graves
>
>
> > On 6/9/24 8:40 PM, Gabor Grothendieck wrote:
> >> zoo overcomes many of the limitations of ts:
> >>
> >> library(zoo) as.ts(head(as.zoo(presidents))) ## Qtr1 Qtr2
> >> Qtr3 Qtr4 ## 1945 NA 87 82 75 ## 1946 63 50
> >>
> >> xts also works here.
> >>
> >> On Sun, Jun 9, 2024 at 12:04?PM Spencer Graves
> >> <spencer.graves at prodsyse.com> wrote:
> &g...
2024 Jun 10
1
head.ts, tail.ts loses time
...your reply.
sg
>
>
> Martin
>
> > Best Wishes, Spencer Graves
>
>
> > On 6/9/24 8:40 PM, Gabor Grothendieck wrote:
> >> zoo overcomes many of the limitations of ts:
> >>
> >> library(zoo) as.ts(head(as.zoo(presidents))) ## Qtr1 Qtr2
> >> Qtr3 Qtr4 ## 1945 NA 87 82 75 ## 1946 63 50
> >>
> >> xts also works here.
> >>
> >> On Sun, Jun 9, 2024 at 12:04?PM Spencer Graves
> >> <spencer.graves at prodsyse.com> wrote:
>...
2008 Oct 29
2
Help using tapply with multiple variables
Dear list,
I have the function (as a simple example, which is actually part of a
larger function)
pres.test<-function(N0=N0, N1=N1)
{
dt<-5
r<-log(N1/N0)/dt
r
}
which calculates the annual growth rates in a population
Where N0 is the population classified into age intervals, say 5
years, at time=1995, and N1 is the population by 5 year age classes
at time=2000.
For exa...
2008 Jan 17
2
Forms, database, and yes I'm new
...blem of mine.
I''ve done the ONLamp tutorial with scaffolding a recipe etc, and honesly
I didn''t get really any wiser. So I decided to try it out on my own
without scaffolding.
However. Now I''m stuck with my edit-form. I need to update a row with
old text in the ''pres'' column in the table called ''presentations'' in my
database with a new text typed in with a form (in edit.rhtml).
My Edit method gets the ''pres'' from the ''presentations''table but it
doesn''t update the edited ''pres'...
2024 Jun 13
0
head.ts, tail.ts loses time
> It isn't really clear that it can't work. This does work by inserting NA's...
>
> library(zoo)
> as.ts(as.zoo(lynx)[ c(1:3, 7) ] )
If by 'this' you mean indexing, it would be very confusing and error prone for expressions like lynx[c(1:3, 7)] (lynx is from class 'ts') to return a ts object with NA's inserted and, even more so, since this has been unambiguously documented for ages in '?ts'. For 'zoo' objects, the situation is different since they have a time index by definition, so t...
2014 Mar 01
1
[PATCH] nouveau: add valid range tracking to nouveau_buffer
...v50_resource.c b/src/gallium/drivers/nouveau/nv50/nv50_resource.c
index 7fbb0a9..d289b4a 100644
--- a/src/gallium/drivers/nouveau/nv50/nv50_resource.c
+++ b/src/gallium/drivers/nouveau/nv50/nv50_resource.c
@@ -68,6 +68,8 @@ nv50_surface_create(struct pipe_context *pipe,
struct pipe_resource *pres,
const struct pipe_surface *templ)
{
+ /* surfaces are assumed to be miptrees all over the place. */
+ assert(pres->target != PIPE_BUFFER);
if (unlikely(pres->target == PIPE_BUFFER))
return nv50_surface_from_buffer(pipe, pres, templ);
return nv50_miptree_surface_new...
2013 Jan 04
3
help "reshaping" dataframe
....
"occ.data" (see below) is how my original data are arranged, and I know
that with melt() I can reshape it like "y" (see below). However, I just
want to build a matrix like the "y" matrix, but with only 2 dimensions.
Something like this:
year Site specie Pres Rep1 Rep2 Rep3 Rep4 Rep5
1 2003 2021 MICH 1 0 0 1 1
0
3 2003 2021 MISA 1 1 0 0 0
0
4 2003 2021 MOBO 1 1 1 0 0
0
where "year" and "specie" are...
2003 Dec 03
1
net rpc vampire is sucking my brain!
...ootpw something sensible
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory /var/lib/ldap
# Indices to maintain for this database
index objectClass eq,pres
index ou,mail,givenname eq,pres,sub
index uidNumber,gidNumber,loginShell eq,pres
index uid,memberUid eq,pres,sub
index nisMapName,nisMapEntry eq,pres,sub
index cn pres,sub,eq
index sn pres,sub,eq
in...
2012 Mar 14
0
using predict() with poly(x, raw=TRUE)
...terms. (Actually, I encountered the problem using
model.frame(), but the source of the error is the same.) The problem is
technical and concerns the design of poly(), which is why I'm sending this
message to r-devel rather than r-help.
To illustrate:
------------ snip -------------
> mod.pres <- lm(prestige ~ log(income, 10) + poly(education, 3) +
poly(women, 2),
+ data=Prestige) # Prestige data from car package
> predict(mod.pres, newdata=data.frame(education=10, income=6000, women=30))
# works
1
39.66414
> model.frame(delete.response(terms(mod.pres...
2016 Jul 04
2
CALLERID on pjsip doesn't work?
...things a bit further by trying the following:
>
> Set(CALLERID(all)=Jon Doe <+123456789>)
>
> Or individually:
>
> Set(CALLERID(name)=Jon Doe)
> Set(CALLERID(num)=+123456789)
>
Tried many permutations of this, and the only thing I can get to happen is
to make the call present as Anonymous by changing the pres-name/pres-num
setting.
It's not a production system, dialplan is pretty simple:
same => _X.1,Set(CALLERID(name-pres)=allowed)
same => n,Set(CALLERID(num-pres)=allowed)
same => n,Set(CALLERID(name)=Fred)
same => n,Set(CALLERID(num)=6123)
same =&...
2006 Apr 28
1
mISDN: No DID/extension information returns busy to caller
...orrect extension
; instead
;
; default value: no
;
immediate=yes
; uncomment the following to have hold and retrieve support
;
; default value: no
;
;hold_allowed=yes
; Pickup and Callgroup
;
; deafult values: not set = 0
;
;callgroup=1
;pickupgroup=1
;
; these are the exact isdn screening and presentation indicators
; if -1 is given for both values the presentation indicators are used
; from asterisks SetCallerPres application.
; s=0, p=0 -> callerid presented not screened
; s=1, p=1 -> callerid presented but screened (the remote end does not see it!)
;
; defaule values s=-1, p=-1
pre...
2005 Mar 16
0
Sun One Directory Server 5.2 ldapclient init -v -a Problem
...y Server installed using the following
Suffix dc=tipu,dc=com,dc=pk
when i run /usr/lib/ldap/idsconfig it's working fine
below are the configuration i did while running idsconfig
/usr/lib/ldap/idsconfig
It is strongly recommended that you BACKUP the directory server
before running idsconfig.
Press Ctrl-C at any time before the final confirmation to exit.
Do you wish to continue with server setup (y/n/h)? [n] y
Enter the iPlanet Directory Server's (iDS) hostname to setup: train01
Enter the port number for iDS (h=help): [389]
Enter the directory manager DN: [cn=Directory Manager]
Enter p...
2006 Oct 21
1
Problems running IsoMDS using vegdist with pres-abs data and two sites with zero distance
...oke around in R and wanted to analyse
a stream fish dataset with 28 sites and 18 species. When trying to
follow the Vegan manual to run nmds from distance measures calculated by
the vegdist function it turns out that I have two sites (streams) with
the exactly the same four species (I have used pres-abs data in this
case). When I try to run isoMDS I get an error message saying that:
Error in isoMDS(vare.dis) : zero or negative distance between objects 14
and 15
i.e. the two sites with the same fish species. I can run the decorana
function with "sensible" results so the dataset see...
2009 Feb 06
1
set caller id on outgoing calls through BRI ISDNlines
...n
-->> P[ 1] * CALL: g:ISDN_GROUP/6666666666
-->> P[ 1] --> * dad:6666666666 tech:mISDN/1-u23701
ctx:from-pstn-deviate-
-->> custom
-->> P[ 1] --> * adding2newbc ext 6666666666
-->> P[ 1] --> * adding2newbc callerid 9999999999
-->> P[ 1] --> pres: -1 screen: -1
-->> P[ 1] --> pres: 0
-->> P[ 1] --> PRES: Allowed (0x0)
-->> P[ 1] --> SCREEN: Unscreened (0x0)
-->> P[ 1] NO OPTS GIVEN
-->> P[ 1] I SEND:SETUP oad:9999999999 dad:6666666666 pid:2626
-->> P[ 1] --> bc_state:BCHAN_CLEANED
--...
2017 Jun 14
3
CallerId presence issue
Hi,
I've run into a minor snag trying to pass on CALLERID presence from one
Asterisk to another via SIP (both running 13.16.0)
I have a PRI coming in PBX_A and PBX_A is connected to PBX_B via SIP.
PBX_A gets PRI calls on a 4 port Digium card, and each call naturally has
its own callerid values and presence. I pass on those calls to PBX_B via
SI, and I'...
2006 Apr 25
1
Changing Windows Passwords
...ct="cn=Replica,dc=lufkin,dc=com" size=unlimited
time=unlimited
overlay syncprov
syncprov-checkpoint 100 10
syncprov-sessionlog 1000
# Indices to maintain
## required by OpenLDAP
index objectclass eq
index entryUUID eq
index cn pres,sub,eq
index sn pres,sub,eq
index uid pres,sub,eq
index displayName pres,sub,eq
index uidNumber eq
index gidNumber eq
index memberUid eq
index sambaSID eq
index s...