similar to: Array Manipulation

Displaying 20 results from an estimated 7000 matches similar to: "Array Manipulation"

2006 Jul 05
2
get value from array.
hi, Im running the following sql statment which returns 1 result. pSql = "SELECT sum(amount) FROM payments WHERE expected_pay_date LIKE ''"+pWholeDate+"%'' AND invoice_id IS null " aResult = Payment.find_by_sql(pSql) how can I get the result of this? (when doing @aResult.inspect it
2011 Feb 02
2
Finding the maximum in a particular group in a dataframe
Hello I am trying to find a way to find the max value, for only a subset of a dataframe, depending on how the data is grouped for example, How would I find the maxmium responce, for all the GPR119a condition below: I've tried tapply > tapply(GPR119data$responce, GPR119data$GPR119a, max) Error in tapply(GPR119data$responce, GPR119data$GPR119a, max) :   arguments must have same length
2018 Oct 18
2
After updating to 16 "Some non-required modules failed to load"
I just noticed this upon startup since updating from 15.6.1 to 16.0.0 - do any of these matter? [Oct 18 12:12:18] WARNING[4489]: loader.c:2228 load_modules: Some non-required modules failed to load. [Oct 18 12:12:18] ERROR[4489]: loader.c:2243 load_modules: res_pjsip_transport_websocket declined to load. [Oct 18 12:12:18] ERROR[4489]: loader.c:2243 load_modules: cdr_sqlite3_custom declined to
2010 Feb 18
3
row indexes from logical statment
Is there any easy way to pull out the row indexes for a logical matching statment? #################example code######################################### foo <- data.frame(name=c(rep("A", 25), rep("B", 25), rep("C", 25), rep("A", 25)), stuff=rnorm(100), and=rnorm(100), things=rnorm(100)) #this is what I want but I would like the row indexes
2011 Feb 01
5
(no subject)
Hello I am trying to find a way to find the max value, for only a subset of a dataframe, depending on how the data is grouped for example, How would I find the maxmium responce, for all the GPR119a condition below: responce,mouce,condition 0.105902,KO,con 0.232018561,KO,con 0.335008375,KO,con 0.387025433,KO,GPR119a 0.576769897,KO,GPR119a 0.645120419,KO,GPR119a 0.2538608,KO,GPR119b
2007 Dec 06
3
XenApi
I originally posted this to the xenapi mailing list but i dont think many are on there... here''s my question. My first attempt at this, trying to get php to interface with /var/run/xend/xen-api.sock (or even 127.0.0.1:9363 for that matter). I can make a connection to both the unix socket and the inet socket and write/read data. The problem is i always get the same responce back, also
2013 Mar 29
1
Dataframe manipulation
Hi Adam, I hope this is what you wanted: dat1<- read.csv("example.csv",sep="\t",stringsAsFactors=FALSE) ?str(dat1) #'data.frame':??? 102 obs. of? 5 variables: # $ species? : chr? "B. barbastrellus" "E. nilssonii" "H. savii" "M. alcathoe" ... # $ period?? : chr? "dusk" "dusk" "dusk"
2006 Mar 17
1
Asterilink?!?!
Hi, Anyone know anything about asterlink? I've heard good things about them. So I thought I'd give them a try. I went to sign-up.... however, I haven't heard from them, I've called them several times between 9am and 5pm EST and no responce. Called today again after 9am EST, no responce. Tried Sales, Billing, and CS, and got the same person's voicemail! Is this a oneman
2006 Jun 08
9
find :order =>
Hi, I have the following find statment @client_pages, @clients = paginate :clients, :per_page => 20, :order => "organisation_id, surname" currently im ordering by organisation_id however I need to order by the field in the organisation table organisations.name how can this be done? Thanks Scott -- Posted via http://www.ruby-forum.com/.
2006 Jan 13
1
Send XML Document with SOAP
Hello, yes it''s another ruby-nuby question but i cant find the right docs so I hope either someone has an answer or can provide links to what i havent been able to find. I am trying to call a wsdl web service running on .net server with a ruby client. I can make the request and with a wiredump I see the SOAP request and responce XML files, the files are correct but I am not sure
2008 Oct 21
2
[help] Realtime Swich any context dinamically
when i wnat to working with realtime and mysql for any context i have to insert (switch => Realtiem/context at extensions) statment into extensions.conf for example if i want to have 10 context, i have to insert these lines into extension.conf : [context1] switch => Realtiem/context1 at extensions [context2] switch => Realtiem/context2 at extensions [context3] switch =>
2010 Jun 28
2
Using if statement on function
Hello everybody, I'm trying to use a if-statment on a function. For a better understanding I want to present a small example: FUN=mean # could also be median,sd or any other function if (FUN == mean) plot(...) if (FUN == median) plot(...) ... This doesn't work, because FUN is a function. I've already tried to coerce the
2005 Mar 10
8
Login controller additions
I have added roles and roles_users table and updated the model so that my users can have multiple roles. ("Admin" role does always have id = 1). I have added these methods to my application controller. <code> helper_method :is_admin? helper_method :is_user? def is_admin? if @session[''user''] @session[''user''].roles.find(1)
2005 May 10
3
Packets going to default class iam having still the problem
Hi all Its been long time i have sending this message to this news group but i could not get proper responce from the authors or any experts that, is that bug or only the problem with my ssytem iam tryin this config with FC iptable 1.3.0 and latest TC tc utility, iproute2-ss050330 htb 3.17 iam trying past 2 weeks and digging all googles but could not able to come to conclusion whats wrong
2006 Jan 30
3
Date Not Staying in Date Format
I have a column in a data frame that has a class of "Date" and a mode of "numeric". When I: max(df$Date) My output stays in Date format, i.e. "2006-01-03". However, when I run the following statment: tapply(df$Date, df$SomeFactor, max) my output looks like this: 9129 9493 9861 10226 10591 10956 11320 11687 12052 12417 The returned object is of
2003 Nov 18
2
Compiling R
I have a generally successful compiled R 1.8.0 version installed on a SuSE 9.0 system. One frustration however is that the basic keyboard functions of BASH have not completely carried through and the up, down, left and right arrow keys don't behave as they do on the regular shell command line. That is no command history can be accessed and the cursor cannot be back-spaced over a
2018 Nov 30
2
Asterisk non-root - selinux - astdb
Hi I'm trying to use Asterisk running as non-root user and selinux enabled. Asterisk is running ok, but astdb not works. When i try to put in astdb, console shows this message: WARNING[1853]: db.c:350 ast_db_put: Couldn't execute statment: SQL logic error or missing database CentOS 7.5.1804 Asterisk certified/13.21-cert3 [root at sv03 asterisk]# ls -lahZ /var/lib/asterisk/astdb.sqlite3
2010 Jan 19
4
apply command
Can you please help on the issue? I using the apply command on a matrix below the example: Create a vector x =c(5, 3, 2:4, NA, 7, 3, 9, 2, 1, 5) create a matrix of 2 rows by 6 columns b=matrix(x, 2,6) print(b) [,1] [,2] [,3] [,4] [,5] [,6] [1,] 5 2 4 7 9 1 [2,] 3 3 NA 3 2 5 using the command apply print(apply(b, 1, function(y) sort(y, na.last=F))) the
2010 Jun 05
5
Controlling calls
Hello folks, I want to write an AGI script doing this: 1-user call a number. 2-asterisk call the agi script 3-the script dial the peer 4-if the call is answered, let the call up for 1min 5-then the script hangs up the channel. I tried either in php or in java but no success. In java i did this: ////////////// exec("Dial", "IAX2/400"); boolean t=true; while(t){
2007 Sep 27
3
different colors for two wireframes in same plot
Hello R, According to: g <- expand.grid(x = 1:10, y = 5:15, gr = 1:2) g$z <- log((g$x^g$g + g$y^2) * g$gr) wireframe(z ~ x * y, data = g, groups = gr, scales = list(arrows = FALSE), drape = TRUE, colorkey = TRUE, screen = list(z = 30, x = -60)) i have two wireframes in one plot. How could i change the color of the top - one to transparent (or only the grid).