Displaying 20 results from an estimated 5000 matches similar to: "Problem indexing a factor variable"
2008 Feb 06
1
Histogram/Bar plot graph
Hi,
I have the following data:
> Myvalues
Gene ES MEF Embryo ESHyp
1 GeneA -0.38509507 0.00 1.6250 1.7039921
2 GeneB 0.06262914 0.00 1.6250 -0.272033
and so on...
I want to plot the expression values of GeneA and GeneB in the
different cell/embryo/conditions (columns 2:5 above). Now, if I do:
>library(ggplot2)
> qplot(x=Gene, Embryo, geom =
2011 Mar 23
1
how to add in interaction terms in gamm
I want to use gamm to generate smoothed trend line for three groups
identified by dummy variable genea and geneb. My question is how to add in
an interaction term between the time and another dummy variable such as
gender?
fitm<-gamm(change_gfr~
genea+geneb+s(timea_n,bs="ps")+s(timeb_n,bs="ps")+s(timec_n,bs="ps"),data=mm,random=list(time_n=~1|PID))
--
View this
2018 May 25
1
how to make the code more efficient using lapply
Eric's approach seems reasonable to me, and I agree that it's probably not the use of a "for" loop that makes the original version slow. As Eric mentioned, there are lots of unnecessary things happening in the loop.
For example, list.files() was called twice inside the loop, which is unnecessary, and will definitely slow the loop down (though probably not by much). Call it
2018 May 25
0
how to make the code more efficient using lapply
Hi Stephen,
I am not sure that the "for loop" is the source of slowness.
You seem to be doing a lot of unnecessary work each time through the loop.
e.g. no need to check if it's the last file, just move that section outside
of the loop.
It will be executed when the loop finishes. As it is you are calling
list.files() each time
through the loop which could be slow.
In any case
2018 May 25
2
how to make the code more efficient using lapply
Dear All,
I have a following for-loop code which is basically intended to read in
many excel files (each file has many columns and rows) in a directory and
extract the some rows and columns out of each file and then combine them
together into a dataframe. I use for loop which can do the work but quite
slow. How to make it faster using lapply function ? Thanks in advance!
temp.df<-c() #
2007 Apr 19
1
CDR(dst) != CALLERID(dnid)
Hi guys,
i just came to know that CDR(dst) field is set to current extension instead
of the dialed no. i need to set it to DNID because our every user has 5 dids
and i want to show the caller at the end of the month which numbers he
dialed for every call, along with other cdr info. Our rating depends on the
dialed number also. here is my extensions.conf
exten=> 1212,1,Dial(SIP/rizwan)
2007 Jan 20
1
Connecting 2 asterisk servers
hi all,
actually i have partially connected the 2 servers but there is a problem.
2 servers A and B
server A forwards call to server B without any problem
but when i try to forward call from server B to A, server shows the
following error on the cli
WARNING[7751]: app_dial.c:1081 dial_exec_full: Unable to create channel of
type 'SIP' (cause 3 - No route to destination)
== Everyone is
2007 Jul 26
4
Finding matches in 2 files
I have 2 files containing data analysed by 2 different methods. I would like to find out which genes appear in both analyses. Can someone show me how to do this?
_________________________________________________________________
[[trailing spam removed]]
[[alternative HTML version deleted]]
2008 Aug 07
1
Mtext doesn't display characters in italic when I use a greek symbol
Following on from my previous mail!
plot(1:10,1:10)
mtext("title", side=3, adj=0, font=3, cex=1.5)
This works as expected and puts the font in italics.
tag <- "A)"
suffix <- "genea::"
plot(1:10,1:10)
mtext(bquote(.(tag) ~ Delta * .(suffix)), side=3, adj=0, font=3,
cex=1.5)
Here, the font isn't in italics, it's normal.
I presume this is some
2008 Aug 06
2
shared mysql connection in dialplan
hi all,
i just finished developing some incoming call features in a macro. that
macro gets executed everytime an incoming call is received and a new mysql
connection is made using the MYSQL cmd in dialplan. i want to use a single
mysql connection for every incoming call.
my idea of doing it is like this, i want to get a mysql connection in a
global variable, just to share the connection with
2006 Apr 17
2
Simple Problem
Is it possible to select a portion of string? For example, in many
websites, they give the first paragraph in the main page and link for
the article on the other page. I remember this is available in PHP.
Any help is appreciated.
Thanks
Rizwan
--
Posted via http://www.ruby-forum.com/.
2007 Oct 24
2
Remote provisioning for ATA's
Hi all,
I need a fully developed web based remote provisioning system. I cant find
anything reliable on the internet. Have already checked ataconfig.com and
voxilla-ays.com. have tried to contact them but got no response. So if
anybody knows a good provisioning system then plz tell me about it.
--
Best Regards
Rizwan Hisham
Software Engineer
Axvoice Inc.
www.axvoice.com
-------------- next part
2015 Mar 18
2
PRI Callerid Passthrough
Thanks AJ and David,
We were actually using GSM gateways by setting busy forward number on the
SIMs and just giving busy signal on every incoming call, telco took care of
the forwarding and the line was free within seconds. Now we need to scale
up the setup but GSM gateways a very very expensive if we want to scale
upto a 1000 DIDs, which means thousand SIMs and a gateway/gateways big
enough.
2008 Nov 17
2
two sip listening ports for single asterisk
Hi all,
We are planning to shift our sip users from one platform to another.
(basically from one asterisk server to another). the problem we are facing
is that both asterisk servers are using different ports to listen for sip.
and both have live customers on them. provisioning their ata's is not a
good option for us coz of our settup. we cant just ask the customers to
change their ports for
2013 Oct 31
3
Realtime Call Files
Hi all,
Is there any way of originating calls in future without using call files?
We have 2 servers (1 active at a time). If we use call files with
modification date in future, on the 1st server and it dies and, we activate
the second server but we lose the call files.
I could have a cronjob on both servers and create callfiles reading
execution time from database, but this involves some other
2013 Nov 21
3
Call files without permission for asterisk to read
Hi all,
I am syncing call files on my secondary asterisk server but without
permission to read for asterisk. So they should be executed when I grant
the right permissions (thats when my primary asterisk server crashes or
shutsdown somehow). But asterisk only tries to read the file at the time of
placing the file. So when i grant right permissions nothing happens. Is
there any workaround to this
2007 May 09
3
The 'h' extension problem
Hi all,
There is a problem with my dialplan. here is the dialplan:
exten=> 123,1,Dial(SIP/U1,,Ttg)
exten=> 123,2,Hangup
exten=> h,1,AGI(onhangup.pl)
The problem is whenever U1 is called or calls someone, if U1 hangsup the
call then the h extension is NOT executed. but if the other person hangsup
the call, then the h extension is executed (assuming that the other person
is calling
2015 Mar 18
3
PRI Callerid Passthrough
Hi All,
I have to forward incoming call on PRI back out to PRI but I need the
original Callerid to passthrough. Is it possible with DAHDI PRI cards
without involving the service provider?
Thanks
--
Best Ragards
Rizwan H Qureshi
V: +971 (0) 528272154
linkedin.com/in/rhqureshi
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Sep 11
3
Prevent multiple sip registrations
Hi all,
Is there anyway i can prevent multiple sip registrations from different IPs
using single username in asterisk. Does asterisk provide any aid in this
respect? As far as my knowledge is concerned i dont think there is any
support for this in asterisk, so i think i'll have to makeup a script which
sniffs sip packets coming for asterisk and detect for multiple register
requests coming from
2008 Jan 25
1
Need sample configuration files for sipura/linksys ata
Hi all,
i need sample xml configuration files for linksys pap2, linksys pap-2t,
sipura 2100, sipura 2102, 1001, 3000 and 3102. All of these are
linksys/sipura products. So if anyone has these sample files then plz share.
--
Best Regards
Rizwan Hisham
Software Engineer
Axvoice Inc.
www.axvoice.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: