similar to: inefficient ifelse() ?

Displaying 20 results from an estimated 2000 matches similar to: "inefficient ifelse() ?"

2010 Oct 19
4
Chron object in time series plot
Dear R users, I have the following script to create bins of specified time intervals bin_end=60/bin_size bin_size=bin_size*100 h=seq(070000,180000,by=10000) breaks=c() for (i in h) { for (j in 0:(bin_end-1)) { value=i+(bin_size)*j breaks=append(breaks,value) } } I would like to plot then using the time as x-axis. I tried the following prova=zoo(myseries,times(breaks)) but of
2010 Nov 23
2
Plot two zoo object with different indexes
Dear R community, I have the following two zoo objects: MONTHLY CPI > plot(z) > par("usr") [1] 1977.76333 2011.15333 70.39856 227.03744 > z=zooreg(cpius$Value,as.yearmon("1979-11"),frequency=12) > str(z) ?zooreg? series from Nov 1979 to Oct 2010 Data: num [1:372] 76.2 77 77.8 78.5 79.5 80.3 81.1 82 82 82.6 ... Index: Class 'yearmon' num [1:372]
2009 Apr 15
2
From daily series to monthly and viceversa
I have the following daily exchange rate series (from january 1st 1996 to december 31st 2008) and I want to obtain them monthly series from it. I've read about the 'zoo' library but I'm not getting it how to do it. These are the data (left column day-month-year, right column the index) 31/12/1993 1,12509 03/01/1994 1,12509 04/01/1994 1,12558 05/01/1994 1,1258 06/01/1994 1,12596
2010 Jan 26
2
Large dataset importing, columns merging and splitting
Dear All, I have a large data set that looks like this: CVX 20070201 9 30 51 73.25 81400 0 CVX 20070201 9 30 51 73.25 100 0 CVX 20070201 9 30 51 73.25 100 0 CVX 20070201 9 30 51 73.25 300 0 First, I would like to import it by merging column 3 4 and 5, since that is the timestamp. Then, I would like to aggregate the data by splitting them in bins of 5 minutes size, therefore from 93000 up to
2010 Oct 13
1
Pasting function arguments and strings
Dear R community, I am struggling a bit with a probably fairly simple task. I need to use some already existing functions as argument for a new function that I am going to create. 'dataset' is an argument, and it comprises objects named 'mean_test', 'sd_test', 'kurt_test' and so on. 'arg1' tells what object I want (mean, sd, kurt) while 'arg2' tells
2003 May 31
5
parse on left hand side of R assignment
I keep finding myself in a situation where I want to calculate a variable name and then use it on the left hand side of an assignment. For example iteration <- 1 varName <- paste("run",iteration,sep="") myList$parse(text=varName) <- aColumn I want to take some existing variable "aColumn" and use the name "varName" name for it and put it into a
2003 Jun 17
2
Paste and namespace
Hi, my doubt is very simple. I'm sure I've seen someone using something like this before, but unfortunatelly my searches in the archives were useless. Well, I have some objects called after a name that has a number attached to it, varying. Let's say I have: > ls poly1 poly2 poly3 poly4 poly5 poly6 ... I would like to access these objects using a for(), in which I could do
2005 Dec 15
2
Outbound Routing
Hello, I have a 4 port FXO digium card with 3 PSTNs attached to it and AsteriskAtHome setup. Everything is working fine except outbound calls. When I dial a outside number, it works fine, but when another employee trys to dial out while I am on a line, it will not go. I have a outgoing route setup in the AMP interface. Dial Pattern: 1NXXNXXXXXX NXXNXXXXXX NXXXXXX Trunk
2006 Mar 02
1
Insert a data in Oracle with Rails
Hi, I tried many things to insert a data in an Oracle Table, but the Rails compiler never Works! I create this Oracle table: CREATE TABLE "FOO" ( "id" int NOT NULL primary key, "acolumn" VARCHAR(10) NULL ) and when i tried to insert a new row the Rails compiler tell me : OCIError: ORA-00904: invalid column name: INSERT INTO AGO.FOO (acolumn, id)
2007 Aug 07
11
Positioning text in top left corner of plot
Simple question how can you position text in the top left hand corner of a plot? I am plotting multiple plots using par(mfrow=c(2,3)) and all I want to do is label these plots a), b), c) etc. I have been fiddling around with both text and mtext but without much luck. text is fine but each plot has a different scale on the axis and so this makes it problematic. What is the best way to do this?
2010 May 19
8
Generating all possible models from full model
Is there a function that will allow me to run all model iterations if I specify a full model? I am using information criteria to choose between possible candidate models. I have been writing out all possible model combinations by hand, and I am always worried that I am missing models or have made a mistake somewhere. It is also difficult to alter models if I want to change a term. For example,
2006 Feb 03
1
No path to translate from Zap to SIP
I'm getting this messages trying to call with one sip trunk: Feb 3 16:43:09 DEBUG[3389] channel.c: Avoiding initial deadlock for 'SIP/usa-e2ea' Feb 3 16:43:09 VERBOSE[3491] logger.c: -- SIP/usa-e2ea answered Zap/1-1 Feb 3 16:43:09 WARNING[3491] channel.c: No path to translate from Zap/1-1(68) to SIP/usa-e2ea(256) Feb 3 16:43:09 WARNING[3491] app_dial.c: Had to drop call
2007 Jul 02
5
softphone with g729 codec
Hi: Iam looking for a sip softphone that supports g729 codec Any one have an idea ? Reagrds; jonnyhashem --------------------------------- Don't get soaked. Take a quick peak at the forecast with theYahoo! Search weather shortcut. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Jun 14
4
Que on A2Billing
Hello All, I got one quick question on A2Billing. Specs: - - A2Billing v1.3 - OS CentOS 4.5 - Asterisk 1.2 - Zaptel 1.2 Did the installation and everything is working as it suppose to... Using the A2Billing documentation, I created the RateCard, SIP Trunks, and SIP Customers. I was also able to login using XLite Dialer and was able to call out to my SIP Trunk also. Now how can I remove the
2007 Sep 05
4
special kind of billing
Dear Sirs, we ... 1) buy minutes from other providers 2) sell minutes to out clients some calls terminate to our equipment, others - to h323 proxies. we want calls to be routed according to costs (a route is chosen from many by lowest cost). at the end of it, we'd like to bill our clients and see how much have we earned (money we receive from client on one side, money we pay to proxies on
2005 Jun 30
3
Computer to use
Hi, Already posted once but I need more feedback. What kind of servers is everyone using for asterisk and what problems have you ran in to ? Thanks. Dovid -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050630/dd52bf35/attachment.htm
2006 Jan 17
2
idefisk 4 linux now available for download
It took a little longer then expected, but here it finally is, a field test for the idefisk for linux iax2 softphone. Freely downloadable from http://www.asteriskguru.com/tools/ You will probably need to copy the iaxclient lib into your library directory and run ldconfig before starting the phone. Please note that this is the first copy in the wild of the linux version and is not as tested
2006 Nov 28
1
Billing software with reseller accounts
Hello, Can you recommend a good billing software for asterisk that supports reseller accounts? Will be better if it haves opensource licence. Best regards, -- Guillermo Salas M. Telconet S.A. Calle 15 y Avenida 24 Esq Edificio Barre #2 Primer Piso Telefono : +593 5 262 8071 Celular : +593 9 985 5138 e-mail : gsalas@manta.telconet.net www : http://www.manta.telconet.net
2008 Jul 28
3
getting error Unknown method 'new' for a new model instance
I have a model called Test. In the controller I have @circuit = Test.new. Any ideas why rails is complaining about the ''new'' method?? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2009 Sep 28
1
xyplot help - colors and break in plot
Dear List, I am new to lattice plots, and am having problems with getting my plot to do what I want. Specifically: 1. I would like the legend to have the same symbols as the plot. I tried simpleKey but can't seem to get it to work with autoKey. Right now my plot has dots (pch=19) and my legend shows circles. 2. I have nine groups but xyplot seems to only be using seven colors, so two