search for: 10e6

Displaying 16 results from an estimated 16 matches for "10e6".

Did you mean: 1076
2008 Nov 02
5
R newbie: how to replace string/regular expression
Hello; I am a R newbie and would like to know correct and efficient method for doing string replacement. I have a large data set, where I want to replace character "M", "b", and "K" (currency in Million, Billion and K) to millions. That is 209.7B with (209.7 * 10e6) and 100.00K with (100.00 *1/100) and etc.. d <- c("120.0M", "11.01m", "209.7B", "100.00k", "50") This works that is it removes "b/B", gsub ("(.*)(B$)", "\\1", d, ignore.case=T, perl=T) but gsub ("(.*)(B$)&...
2010 Apr 25
4
how to make read in a vector of 0s and 1s with no space between them
Hi all, Probably a rudimentary question. I have a flat file that looks like this (the real one has ~10e6 elements): 10110100101001011101011 and I want to pull that into R as a vector, but with each digit being it's own element. There are no separators between the digits. How can I accomplish this? Thanks in advance! Matt -- Matthew C Keller Asst. Professor of Psychology University of Colorado...
2007 Jun 29
1
Comparison: glm() vs. bigglm()
...aive assumption? Anyways, I've been using bigglm() on some datasets I have available. One of the sets has >15M observations. I have 3 continuous predictors (A, B, C) and a binary outcome (Y). And tried the following: m1 <- bigglm(Y~A+B+C, family=binomial(), data=dataset1, chunksize=10e6) m2 <- bigglm(Y~A*B+C, family=binomial(), data=dataset1, chunksize=10e6) imp <- m1$deviance-m2$deviance For my surprise "imp" was negative. I then tried the same models, using glm() instead... and as I expected, "imp" was positive. I also noticed differences on the co...
2012 Jan 28
2
Need very fast application of 'diff' - ideas?
...the difference between each value and the subsequent one in the vector). Let's say the vector contains 10 million random integers between 0 and 1,000. The solution vector will have 9,999,999 values, since their is no lag for the 1st observation. In R we have: #Set up input vector x = runif(n=10e6, min=0, max=1000) x = round(x) #Find one-period difference y = diff(x) Question is: How can I get the 'diff(x)' part as fast as absolutely possible? I queried some colleagues who work with other languages, and they provided equivalent solutions in Python and Clojure that, on their machine...
2006 Apr 10
2
Suggestions to speed up median() and has.na()
...f, half + 1)])/2 } } <environment: namespace:stats> Suggestion 1: Replace the sort() calls with the .Internal(psort(x, partial)). This will avoid unnecessary overhead, especially an expensive second check for NAs using any(is.na(x)). Simple benchmarking with x <- rnorm(10e6) system.time(median(x))/system.time(median2(x)) where median2() is the function with the above replacements, gives about 20-25% speed up. Suggestion 2: Create a has.na(x) function to replace any(is.na(x)) that returns TRUE as soon as a NA value is detected. In the best case it returns after the...
2003 Oct 09
1
is.na(v)<-b (was: Re: Beginner's query - segmentation fault)
> -----Original Message----- > From: Richard A. O'Keefe [mailto:ok at cs.otago.ac.nz] <snip> > The very existence of an "is.na<-" which accepts a logical > vector containing FALSE as well as TRUE ... And don't forget this is not the only usage of is.na<-. In fact it is designed to take any valid indexing value. For example: > a<-1:10 >
2005 May 17
0
problem with gls : combining weights and correlation structure
...eal spatial autocorrelation (nugget ~ 0.9 but they always increase with distance). My first problem was the estimation of the parameters of the corStruc function which were very far from their order of magnitude (range > 10E15, though the maximum distance between observations is no more than 10E6). I thought I had convergence problem that I could solve : - with at first fitting corStruct functions to variograms with the solver of Excel - and secondly binding corStruct parameters to the obtained value with the argument "fixed=TRUE" But I obtained very unrealistic values for the p...
2011 Sep 21
1
package / function for monitoring processes?
Hi I recall running across a function a while back which would return information about running processes (such as their cpu and memory usage), but I cannot seem to locate it. Wondering if someone would be kind enough to refresh my memory. I vaguely recall it was parsing the output of the 'ps' command. Thanks, Ben
2009 Jul 02
1
module-info vs pci.ids
...to the pci.ids file that were not there previously that came with the newer driver, including: 10a7 82575EB Gigabit Network Connection 10a9 82575EB Gigabit Backplane Connection 10c9 82576 Gigabit Network Connection 10d6 82575GB Gigabit Network Connection 10e6 82576 Gigabit Network Connection 10e7 82576 Gigabit Network Connection 10e8 82576 Gigabit Network Connection 150a 82576NS Gigabit Network Connection This particular network chipset is a "10c9" When looking at the module-info file for the igb driver I see: ig...
2011 Oct 03
2
patch: Replace many usleep and some sleep calls with nanosleep
...============================================= --- a/drivers/powerpanel.c 2011-05-31 13:36:49.000000000 +0300 +++ b/drivers/powerpanel.c 2011-08-17 00:40:17.000000000 +0300 @@ -165,7 +165,7 @@ void upsdrv_initups(void) } ser_set_dtr(upsfd, 1); - usleep(10000); + struct timespec delay = {0, 10e6}; nanosleep(&delay, NULL); if (subdriver[mode]->initups() > 0) { upslogx(LOG_INFO, "CyberPower UPS with %s protocol on %s detected", subdriver[mode]->version, device_path); @@ -173,7 +173,7 @@ void upsdrv_initups(void) } ser_set_dtr(upsfd, 0); - usleep(10000...
2003 Oct 15
1
is.na(v)<-b (was: Re: Beginner's query - segmentation fault)
...> safe in all possible situations (whatever the underlying > safety problem > or > other difficulties might be). > > > kind regards, > Paul > > (*) Such a remark will probably lead to some kind of reprimand because > it's > probably somewhere within the 10e6 manual pages but I'm trying my luck > here. > > > -- > Paul Lemmens > NICI, University of Nijmegen ASCII Ribbon Campaign /"\ > Montessorilaan 3 (B.01.03) Against HTML Mail \ / > NL-6525 HR Nijmegen...
2001 Nov 06
4
Problem with GID being set to UID for Samba 2.2.2
Hi, Just downloaded the latest SAMBA, and (after a couple of "learning experiences" :-) it is sorta working on my home network. A laptop with win95, and a server with RedHat 7.1 (Intel). But there's this one little problem, the GID for a recognised user is being set to an unknown group. It looks like the GID is being set to be equal to the UID, or it is being set to the
2011 Aug 03
4
slow computation of functions over large datasets
Hello there, I’m computing the total value of an order from the price of the order items using a “for” loop and the “ifelse” function. I do this on a large dataframe (close to 1m lines). The computation of this function is painfully slow: in 1min only about 90 rows are calculated. The computation time taken for a given number of rows increases with the size of the dataset, see the example with
2017 Sep 12
1
dovecot Digest, Vol 173, Issue 28 (INTERNAL)
...iy > BaseALT/ALTLinux Team -- WBR, Korneechev Evgeniy BaseALT/ALTLinux Team ------------------------------ Message: 3 Date: Mon, 11 Sep 2017 14:51:13 +0300 From: Aki Tuomi <aki.tuomi at dovecot.fi> To: dovecot at dovecot.org Subject: Re: Per-user quota (passwd) Message-ID: <7e86447f-10e6-51a3-ce8a-3c4c8261bac1 at dovecot.fi> Content-Type: text/plain; charset=utf-8 Hi! Just so you know, autocreate/autosubscribe is deprecated, you should use namespace { mailbox INBOX { auto = subscribe } } can you run doveadm user administrator at email.dom to verify that mail_home gets...
2013 Oct 11
3
Create sequential vector for values in another column
Hello all - I have an example column in a dataFrame id.name 123.45 123.45 123.45 123.45 234.56 234.56 234.56 234.56 234.56 234.56 234.56 345.67 345.67 345.67 456.78 456.78 456.78 456.78 456.78 456.78 456.78 456.78 456.78 ... [truncated] And I'd like to create a second vector of sequential values (i.e., 1:N) for each unique id.name value. In other words, I need id.name x 123.45 1 123.45
2017 Sep 12
1
dovecot Digest, Vol 173, Issue 28 (INTERNAL)
...geniy > BaseALT/ALTLinux Team > > > ------------------------------ > > Message: 3 > Date: Mon, 11 Sep 2017 14:51:13 +0300 > From: Aki Tuomi <aki.tuomi at dovecot.fi> > To: dovecot at dovecot.org > Subject: Re: Per-user quota (passwd) > Message-ID: <7e86447f-10e6-51a3-ce8a-3c4c8261bac1 at dovecot.fi> > Content-Type: text/plain; charset=utf-8 > > Hi! > Just so you know, autocreate/autosubscribe is deprecated, you should > use > > namespace { > mailbox INBOX { > auto = subscribe > } > } > > can you run > &gt...