similar to: a difficult situation, how to do this using base function.

Displaying 20 results from an estimated 1000 matches similar to: "a difficult situation, how to do this using base function."

2017 Jul 21
1
a difficult situation, how to do this using base function.
Hello, I have a following dataframe with many rows. data.frame(match.start=c(5,10,100,200),range.coordinates=c("1000-1050","1500-1555","5000-5050,6000-6180","100-150,200-260,600-900")) match.start range.coordinates 5 1000-1050 10 1500-1555 100 5000-5050,6000-6180 200
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
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 Mar 01
0
how to make row.names based on column1 with duplicated values
On Wed, 28 Feb 2018, Stephen HonKit Wong wrote: > Dear All, > Suppose I have a dataframe like this with many thousands rows all with > different names: > data.frame(gene=c("a","b","c","d","c","d","c","f"),value=c(20,300,48,55,9,2,100,200)), > > I want to set column "gene" as row.names, but
2016 Aug 30
2
Automatic purging of old email in all mailboxes
Forgive me, I'm a novice. Consider that today I have already set up a working postfix + Dovecot server with userdb using the static driver and passdb using a password file (in the format <username>:{hashing algorithm}<password hash>). The Dovecot server has several mailboxes which are already in use today. I understand that I'll need to change over to using the passwd-file
2017 Aug 30
2
Segmentation fault with doveadm search
Hi, We have a Ubuntu 14.04 server with dovecot 2.2.9 If I try to run /usr/bin/doveadm search -u email at exmaple.com mailbox Junk savedbefore 30d It will dump a core file. We have a similar config on an other server and there is no problem there. Any ideas how to prevent the core dump? root at triws2:~# gdb --args doveadm search -u email at example.com mailbox Junk savedbefore 30d Reading
2017 Aug 30
0
Segmentation fault with doveadm search
On 30.08.2017 09:13, Stef?n Tam?s wrote: > Hi, > > We have a Ubuntu 14.04 server with dovecot 2.2.9 > > If I try to run > > /usr/bin/doveadm search -u email at exmaple.com mailbox Junk savedbefore 30d > > It will dump a core file. > > We have a similar config on an other server and there is no problem there. > > Any ideas how to prevent the core dump? >
2017 Aug 30
0
Segmentation fault with doveadm search
On 30.08.2017 13:55, Stef?n Tam?s wrote: >> 2017. aug. 30. d?tummal, 12:02 id?pontban Aki Tuomi <aki.tuomi at dovecot.fi> ?rta: >> >> Something goes wrong when opening "Junk" mailbox. Are you sure it exists? Can you doveadm with >> >> doveadm -Dv search -u email at example.com mailbox Junk savedbefore 30d > There is public namespace defined. Maybe
2017 Aug 30
2
Segmentation fault with doveadm search
> 2017. aug. 30. d?tummal, 12:02 id?pontban Aki Tuomi <aki.tuomi at dovecot.fi> ?rta: > > Something goes wrong when opening "Junk" mailbox. Are you sure it exists? Can you doveadm with > > doveadm -Dv search -u email at example.com mailbox Junk savedbefore 30d There is public namespace defined. Maybe that is the problem? doveadm(root): Debug: Loading modules from
2018 Mar 01
3
how to make row.names based on column1 with duplicated values
Dear All, Suppose I have a dataframe like this with many thousands rows all with different names: data.frame(gene=c("a","b","c","d","c","d","c","f"),value=c(20,300,48,55,9,2,100,200)), I want to set column "gene" as row.names, but there are duplicates (c, d), which I want to transform into this as row names:
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() #
2011 May 13
3
Adding same items together in data.frame
Dear All, I am new to R. I have a 2 column data frame with more than ten thousand rows. Something like below. I want to add up all duplicated items, e.g. the three "aa" add up together to get a single value gene=a, value=74. How can I do that?? Thanks for help ! gene value aa 20 bb 10 cc 9 aa 30 aa 24 dd 100 ee 55 .... ... Millions thanks. Best Regards, hon WONG, Hon-Kit
2011 Oct 24
0
Output from BRugs Doesn't Match That from OpenBUGS
Hi. I am trying to analyze with BRugs the Box-Tiao variance components example in WinBUGS. The output from BRugs, mean sd MC_error val2.5pc median val97.5pc start sample sigma2.btw 681.9 1161 10.89 0.7016 253.8 4232 25001 100000 sigma2.with 4266.0 1246 4.92 2480.0000 4057.0 7262 25001 100000 doesn't match the output from WinBUGS, node mean
2005 Mar 08
1
Broadvoice latest changes and still not working- An Additional Server
I have been going crazy with this also since Sat. Our server was working perfectly with BV but will now not place calls to BV. Incoming from BV works fine. I felt sad rebooting it today, it had been running for almost 200 days! Here is my error message from the console... Notice I am running today's CVS Connected to Asterisk CVS-03/08/05-14:32:39 currently running on com (pid = 1624)
2016 Aug 29
5
Automatic purging of old email in all mailboxes
I am using a postfix + Dovecot server as a test mail server for which some applications in our test environment use as a target to deliver email so that our real endusers don't receive messages from our test servers. A few of the mailboxes in Dovecot receive hundreds of emails per day. I'd like to automatically remove all emails in all mailboxes and mailbox folders that were received
2007 Feb 16
0
Looking for descriptions of difficult problems
Hi all, Paul Anderson, a friend of mine who works at the University of Edinburgh, is looking for complicated problems that are currently difficult to handle with existing config mgmt tools. Please read his request below, and if you have any difficult problems that seem to meet his needs, I''d appreciate it if you would send descriptions of them to him. Thanks, Luke Begin
2006 Feb 27
0
Difficult bug
My program allows users to create an account to login, etc. like most other programs. I am using the login routine supplied by rails. In my program I have an option to ''add funds'' to the account. When the user selects this option I ask them how much they want to pay, etc., I then take this info and the user is taken to an authorize.net payment page (I pass the data that
2006 Jan 06
2
Paginate from a difficult sql query
Hello, I have 2 tables table colors : +----------------------+ | id | user_id | name | +----------------------+ | 1 | 1 | test1 | | 2 | 2 | test2 | | 3 | 3 | test3 | +----------------------+ table users : +----------------------+ | id | enabled | name | +----------------------+ | 1 | 1 | bob | | 2 | 1
2011 Jun 08
1
The simplest bar graph with ggplot is difficult to realize
Dear all, What is the simplest way of producing a bar graph using ggplot but avoiding calling qplot? That is, given: d <- data.frame(x=seq(1,5), y=seq(1,5)) Why does the following line return an error? ggplot(d, aes(x=x, y=y)) + stat_identity() + geom_bar(bindwidth=1) Thanks in advance, jcb!
2003 Apr 09
0
Config wine is a so difficult job
Config wine is a so difficult job.It takes me almost 12 hours.Wine cannot work still now. ......# wine /mnt/dosc/winxp/system32/winmine.exe Warning: could no t find wine config [Drive X] entry for current working directory /home/xxxx;starting in windows directory. When you are running with a native NT directory specify 'Profile=<Profiledirectory>' or disable loading of Windows