search for: firstpart

Displaying 6 results from an estimated 6 matches for "firstpart".

2006 Jun 08
1
Formatting numbers for printing
...s like "12012" that I will be printing in a graphic. I would like to format them as follows: 012-012, i.e., the first two digits padded to the left by a zero, followed by a dash, followed by the final three digits, also padded to the left by zeros. I can do this with brute force: FirstPart <- sprintf("%03d", floor(Number / 1000)) SecondPart <- sprintf("%03d", WhichID %% 1000) Combined <- paste(FirstPart, "-", SecondPart, sep="") But, I suspect that there is some more clever means to accomplish this using formatC or sprintf. Unf...
2010 Mar 10
1
Trouble with plm in Ubuntu 9
...eems reasonable. However, it fails running the included example in the help. > data("Produc", package="Ecdat") > zz <- plm(log(gsp)~log(pcap)+log(pc)+log(emp)+unemp, data=Produc, index=c("state","year")) Error in do.call("~", list(firstpart, as.name(i))) : object 'firstpart' not found In addition: Warning messages: 1: In if (length(formula) == 2) formula <- expand.formula(formula) : the condition has length > 1 and only the first element will be used 2: In if (length(formula) == 1) part = "first" : the co...
2010 Mar 10
0
trouble with plm , Ubuntu 9?
...eems reasonable. However, it fails running the included example in the help. > data("Produc", package="Ecdat") > zz <- plm(log(gsp)~log(pcap)+log(pc)+log(emp)+unemp, data=Produc, index=c("state","year")) Error in do.call("~", list(firstpart, as.name(i))) : object 'firstpart' not found In addition: Warning messages: 1: In if (length(formula) == 2) formula <- expand.formula(formula) : the condition has length > 1 and only the first element will be used 2: In if (length(formula) == 1) part = "first" : the co...
2007 Mar 14
0
${EXTEN} is limited to 17 characters under IAX ?
...f1d4b36c199f48c-g1 The problem is that on the local server, we try to read ${EXTEN} and parse it (specifically - I want to get at the 'g1' at the end. for this I use the CUT function): [mydundictx] exten => _[0-9a-fA-f_].,1,Set(lastpart=${CUT(EXTEN,,2)}) exten => _[0-9a-fA-f_].,2,Set(firstpart=${CUT(EXTEN,,1)}) and then we get this (in the console): -- Accepting AUTHENTICATED call from 192.118.54.135: [...] -- Executing [f19dffb971b93746d@mydundictx:2] Set("IAX2/192.118.54.135:4569-1", "lastpart=") in new stack -- Executing [f19dffb971b93746d@mydundictx:3]...
2016 Oct 07
5
Migration Samba4 and LDAP packages from CENTOS to DEBIAN
Dears, i have Samba4 and LDAP in CENTOS , but i have install this samba4 in DEBIAN How i to search the equivalent package for compilation samba in Debian repository quickly. I used this below packages for compilation samba4 in CENTOS. findutils readline glibc-devel findutils-locate gcc flex compat-readline4 db-devel gcc-c++ make python libacl-devel libblkid-devel gnutls-devel readline-devel
2005 May 31
11
More Tests for 2.4.0-RC2 - strange behaviour
...loc = xloc '']'' + return 0 + list_search eth1 + local e=eth1 + ''['' 1 -gt 1 '']'' + return 1 + wildcard= + case $interface in + ALL_INTERFACES='' eth1'' ++ separate_list dhcp ++ local list=dhcp ++ local part ++ local newlist ++ local firstpart ++ local lastpart ++ local enclosure ++ case "$list" in ++ list=dhcp ++ part=dhcp ++ newlist=dhcp ++ ''['' xdhcp ''!='' xdhcp '']'' ++ echo dhcp + options=dhcp ++ chain_base eth1 ++ local c=eth1 ++ true ++ case $c in ++ echo eth1 ++ return +...