similar to: Paddding an integer with zeros

Displaying 20 results from an estimated 200 matches similar to: "Paddding an integer with zeros"

2008 Oct 15
2
R: "in-place" appending to a matrix.
Hello fellow R sufferers, Is there a way to perform an appending operation in place? Currently, the way my pseudo-code goes is like this for (i in 1:1000) { if (some condition) { newRow <- myFunction(myArguments) X <- rbind(X, newRow) # <- this is the bottleneck!! } } As you can see, it works but as the matrix X gets the size of a few million rows, the
2009 May 21
2
subsetting of a data.frame
Hello everybody How do you subset a data.frame when your boundaries are a combination of explicit and implicit limits? For example, I need to subset from the fourth (explicit) to the last (implicit) column a data.frame named A. In other languages you would do A[ , 4:]. Would anybody show me the R's way? Thank you, Your culprit -- View this message in context:
2009 Jan 06
2
Drawing from an empirical distribution
Hi All, Does anybody know if there is a simple way to draw numbers from an empirical distribution? I know that I can plot the empirical cumulative distribution function this easy: plot(ecdf(x)) Now I want to pick a number between 0 and 1 and go back to domain of x. Sounds simple to me. Any suggestion? Thank you, Your culprit (everybody needs a culprit) -- View this message in context:
2009 Mar 10
1
system() not accepting strings from cat()
Hi again R-ists, How do you construct a string that you can pass to system()? For instance. Say I do > system("echo Hello!") Hello! That works. Now the alternative: I need to construct the string like this > a <- "echo" > b <- "Hello!" > c <- "\n" > cat(a, b, c) echo Hello! Looks nice... but see what happens when I try to use it
2009 Jan 09
1
Calling R functions from Python
All- Thanks in advance for your help. I'm trying to call R function using Python in a windows environment and have downloaded the Rpy library however it doesn't appear to work with R 2.7.2. Does anyone know if a new version of Rpy exists for windows that will work with R and where it can be downloaded from? Here's an example of the error I'm getting:
2009 Mar 06
1
a general question
Hi everyone, Although this question is more related to ChIP and ChIP-seq, it could be probably anchored in a more general statistical context. The question is : what method is better to assess the significance of the change in a signal (the signal can be DNA binding, for instance) given the background and 2 conditions. <. condition1 (eg no treatment) : background = 1;
2008 Oct 21
2
Inserting a new row in a matrix
Hi guys, I need to insert a row to a matrix in a for loop. I have matrix named "Avg" which is a 5x4 matrix of zeros. I have a file named "A"(4 rows,14 columns) which I make a sample of it 5 times. each time I get the mean for each column and put the result in the "Avg" matrix. this is my code: Avg=matrix(0,5,4) > > for(i in 1:5){ + res=(A[sample(nrow(A),
2020 Jan 07
4
[Bug 1396] New: When rule with 3 concat elements are added, nft list shows only 2
https://bugzilla.netfilter.org/show_bug.cgi?id=1396 Bug ID: 1396 Summary: When rule with 3 concat elements are added, nft list shows only 2 Product: nftables Version: unspecified Hardware: All OS: All Status: NEW Severity: critical Priority: P5 Component: nft
2018 Aug 19
2
Missing folders inside huge folders catalog.
Hi, I get into the problem with samba ( Version 4.8.3-Debian ). Don't know how to troubleshoot it. The test scenario #1: Creating 5000 folders inside Linux server: #for i in {001..5000}; do mkdir $i; done; All catalogs are showing in Windows OS. All catalogs are showing in Linux OS. The test scenario #2: Creating 10000 folders inside Linux server: #for i in {001..10000}; do mkdir $i;
2001 Mar 28
2
arc4randomstir() in OpenSSH
I'm trying to understand the rational behind the arc4random() and arc4random_stir() functions in the OpenSSH source tree. On a system that has a good random number generator, say an in kernel /dev/random what extra functionality is this stuff providing ? Would it be acceptable to replace the calls to arc4random() with reading from /dev/random and drop the arc4random_stir() all together ?
2018 Aug 20
1
Missing folders inside huge folders catalog.
> On Sun, Aug 19, 2018 at 06:25:56PM +0300, Nmz via samba wrote: >> Hi, >> >> I get into the problem with samba ( Version 4.8.3-Debian ). Don't know how to troubleshoot it. >> >> The test scenario #1: >> >> Creating 5000 folders inside Linux server: #for i in {001..5000}; do mkdir $i; done; >> >> All catalogs are showing in Windows
2011 May 19
2
[PATCH] arch/tile: add /proc/tile, /proc/sys/tile, and a sysfs cpu attribute
(adding virtualization mailing list) On Thursday 19 May 2011, Chris Metcalf wrote: > On 5/19/2011 9:41 AM, Arnd Bergmann wrote: > >> /proc/tile/hvconfig > >> Detailed configuration description of the hypervisor config > > I'm concerned about moving this one out of /proc, since it's just (copious) > free text. An "hvconfig" (hypervisor config)
2011 May 19
2
[PATCH] arch/tile: add /proc/tile, /proc/sys/tile, and a sysfs cpu attribute
(adding virtualization mailing list) On Thursday 19 May 2011, Chris Metcalf wrote: > On 5/19/2011 9:41 AM, Arnd Bergmann wrote: > >> /proc/tile/hvconfig > >> Detailed configuration description of the hypervisor config > > I'm concerned about moving this one out of /proc, since it's just (copious) > free text. An "hvconfig" (hypervisor config)
2003 Feb 06
4
Lost writes upon disk power failure
Hi, I'm encountering a strange situation. I'm writing to an ext3 filesystem mounted like this: /dev/scsi/host2/bus0/target0/lun0/part3 on /tmp/volumes/md0 type ext3 (rw,noatime,data=ordered) with the physical device being a FC-connected RAID (IBM DF4000) no software raid personality is used I'm using 2.4.18-19.7 My test program writes files in a loop, with the essential system
2004 May 24
0
IAX problems using CVS HEAD, but not CVS STABLE
Hi All, Sorry if this has been covered in the past; I've tried searching the archives, but haven't had any luck finding a similar problem. Basically I have problems when using IAX2 (which I now understand is just IAX). I have three IAX connections setup - VoicePulse, IAXtel, and an Asterisk IAX<->PSTN termination provider here in Sydney (ATP) If I try to use the CVS STABLE version
2011 May 24
2
Data Frame housekeeping
Hello, I have a large data frame that is organized by date in a peculiar way. I am seeking advice on how to transform the data into a format that is of more use to me. The data is organized as follows: STN_ID YEAR MM ELEM X1 X2 X3 X4 X5 X6 X7 1 2402594 1997 9 1 *-00233* *-00204* *-00119* -00190 -00251 -00243 -00249 2 2402594
2009 Jul 06
2
[LLVMdev] Help on DAG pattern matching string
Hi Bill, Yes, there are other patterns. I tried commenting out all the other instructions definitions and I still get this error. After debugging TblGen I found that the second pattern is being generated as a variant of the first. I think the reason is that the PADD instruction is inheriting the commutative property from ADD defined inTargetSelectionDAG.td. The variant ends up being the same
2009 Jul 06
0
[LLVMdev] Help on DAG pattern matching string
That's kind of strange. It might be some type of "default". However, you probably don't want to turn off the "commutative" property, unless it really isn't commutative. I know it's painful, but it might be best just to slog through the TableGen code in a debugger, and see why it is that your stuff inherits properties from the ADD in
2009 Jul 04
0
[LLVMdev] Help on DAG pattern matching string
Are there any other patterns in your TD file? If so, then one of the ones before this pattern will match everything, and this pattern will never be matched. -bw On Jul 3, 2009, at 8:27 PM, Javier Martinez wrote: > Hello, > > I'm new to LLVM and I'm using it to translate from LLVM to another > language rather than emitting actual machine code. The target language > has
2009 Jul 04
2
[LLVMdev] Help on DAG pattern matching string
Hello, I'm new to LLVM and I'm using it to translate from LLVM to another language rather than emitting actual machine code. The target language has instructions that operate on pointers which aren't naturally exposed in LLVM. Here's what I've done to add pointer support for an instruction called PADD that takes a pointers and an offset and returns the new pointer value: