Displaying 20 results from an estimated 10000 matches similar to: "How do I add a variable to a text file?"
2009 Apr 17
2
Manipulate single line in textfile
Hello all,
Is it possible to modify a single line in a textfile?
I know it is possible to load the whole text file, do the change, and
save this as a new file. However, this is not practical in my case,
because the document is huge and cannot be fully loaded in R.
Any idea?
Best,
Guillaume
2016 Jun 09
2
[RFC] LLVM Coroutines
On Thu, Jun 9, 2016 at 1:49 PM, Eli Friedman <eli.friedman at gmail.com> wrote:
>> Right... but that doesn't mean the call to the suspend intrinsic has to be
>> the last non-terminator instruction in the basic block before you run
>> CoroSplit. You can split the basic block in CoroSplit so any instructions
>> after the suspend call are part of a different basic
2008 Oct 16
2
Matrix starting at [0,0] instead of [1,1]?
Hello all,
When I create a matrix, is there a way to make it start at [0,0],
instead of [1,1]?
That way, a 2x2 matrix would go from [0,0] to [1,1], instead of [1,1]
to [2,2].
Best,
Guillaume
2009 Feb 23
1
Interleave or not
Lets say you had 4 servers and you wanted to setup replicate and
distribute. What methoid would be better:
server sdb1
xen0 brick0
xen1 mirror0
xen2 brick1
xen3 mirror1
replicate block0 - brick0 mirror0
replicate block1 - brick1 mirror1
distribute unify - block0 block1
or
server sdb1 sdb2
xen0 brick0 mirror3
xen1 brick1 mirror0
xen2 brick2 mirror1
xen3 brick3 mirror2
replicate block0 -
2009 Mar 24
1
How to separate huge dataset into chunks
Hello all,
I?m trying to take a huge dataset (1.5 GB) and separate it into smaller
chunks with R.
So far I had nothing but problems.
I cannot load the whole dataset in R due to memory problems. So, I
instead try to load a few (100000) lines at a time (with read.table).
However, R kept crashing (with no error message) at about the 6800000
line. This is extremely frustrating.
To try to fix
2013 Jul 25
0
[LLVMdev] Steps to addDestination
Hi Rasha,
> for(rit=Result.begin();rit!=Result.end();++rit)
> {
> Value* Address= BlockAddress::get (*rit);
>
> IndirectBrInst *IBI = IndirectBrInst::Create(Address, Result.size(),i->getTerminator() );
> IBI->addDestination((*rit));
> }
This would be creating a block looking something like:
[ Do stuff ]
indirectbr i8*
2009 Jul 29
2
Xen - Backend or Frontend or Both?
I have 6 boxes with a client config (see below) across 6 boxes. I am using
distribute across 3 replicate pairs. Since I am running xen I need to
disable-direct-io and that slows things down quite a bit. My thought was
to move the replicate / distribute to the backend server config so that
self heal can happen on faster backend rather then frontend client with
disable-direct-io.
Does this
2017 Jul 07
3
Uncovering non-determinism in LLVM - The Next Steps
>
>
>>>
>>> One of our definitions of non-determinism is simply "output from command
>>> line tools should always be bit identical given identical inputs", which is
>>> suitable for content-based caching build systems like Bazel.
>>>
>> Just to point out: These systems already often have to ignore whitespace
>> differences,
2016 Jun 10
2
[RFC] LLVM Coroutines
Hi Eli:
>> semantics of the fork intrinsic... thinking about it a bit more, I think
>> you're going to run into problems with trying to keep around a return block
>> through optimizations:
How about this? Make all control flow explicit (duh).
declare i8 coro.suspend([...])
returns:
0 - resume
1 - cleanup
anything else - suspend
Now we can get
2013 Jul 24
2
[LLVMdev] Steps to addDestination
Hi
1-
for(rit=Result.begin();rit!=Result.end();++rit)
{
Value* Address= BlockAddress::get (*rit);
IndirectBrInst *IBI = IndirectBrInst::Create(Address,
Result.size(),i->getTerminator() );
IBI->addDestination((*rit));
}
I tried this code , but the needed destination wasn't added.
2- About LLVM backend
$ llc -march=cpp example_file.ll -o
I think it
2010 Apr 21
1
How to obtain the coefficients from a summary of aov ?
Dear Madame, Dear Sir,
I am able to obtain the coefficients from a 'summary' of 'lm', but NOT from a 'summary' of 'aov'.
The following example shows my steps.
## Initialize
rm(list = ls()) # remove (almost) everything in the working environment
utils::data(npk, package="MASS") # get data
model <- yield ~ block + N*P*K
## Using lm
npk.lm <-
2006 Oct 15
1
how can i compute the average of three blocks for each column ?
Dear all,
I want to compute the average of the three blocks for each x-variable which is equal slide in the code below. How can I do that ?
block x1 x2 x3 x4 x5
1 23 22 23 24 23
1 21 25 26 21 39
1 23 24 22 23 23
2 20 21 23 24 28
2 32 23 34 24 26
2 19
2016 Jun 11
4
[RFC] LLVM Coroutines
On Fri, Jun 10, 2016 at 5:25 PM, Gor Nishanov <gornishanov at gmail.com> wrote:
> Hi Eli:
>
> >> Naively, you would expect that it would be legal to hoist the store...
> >> but that breaks your coroutine semantics because the global could be
> mutated
> >> between the first return and the resume.
>
> Hmmm... I don't see the problem. I think
2002 Aug 06
2
AOV in MASS not the same??
I would appreciate it if someone could explain the results of the
example from the aov() help file. The output given below is different
from book
Venables and Ripley - MASS
The results In R1.5.1 (Under windows) is as follows:
> N <- c(0,1,0,1,1,1,0,0,0,1,1,0,1,1,0,0,1,0,1,0,1,1,0,0)
> P <- c(1,1,0,0,0,1,0,1,1,1,0,0,0,1,0,1,1,0,0,1,0,1,1,0)
> K <-
2000 Apr 05
2
My first R-program
Sorry, I pasted the wrong file in earlier... this is the correct one:
pValCalculator(b, n=20, m=20)
{
ind <- 1:min(c(n,m))
prob <- (1-pnorm(b,sd=std*sqrt(ind)))
prob1 <- sum((n-ind+1)*(m-ind+1)*prob)
prob1
}
inputData <-
scan("/users/lvssso/projects/LAMA/output/pValLamaScore.tmp", list(block1
= "",block2 = "",width1 = 0,width2 = 0,alignment = 0,score
2011 Mar 20
2
Convert Sweave document to a function
I like Sweave, which I consider to be a great contribution. I have just
written a .Rnw document that comes to about 6 pages of mixed code and
mathematical explanation. Now I want to turn the R code into a function. My
R code currently contains statements like N<-1000 and theta<- pi/10. In the
next version of the document, I want N and theta to be parameters of a
function, so that they can be
2017 Jul 06
3
Uncovering non-determinism in LLVM - The Next Steps
On Thu, Jul 6, 2017 at 12:34 PM, Sean Silva <chisophugis at gmail.com> wrote:
>
>
> On Thu, Jul 6, 2017 at 10:20 AM, Daniel Berlin via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>>
>>
>> On Thu, Jul 6, 2017 at 8:02 AM, Robinson, Paul via llvm-dev <
>> llvm-dev at lists.llvm.org> wrote:
>>
>>>
>>>
>>>
2012 Aug 21
1
Error: ReadItem: unknown type 98, perhaps written by later version of R
Hi,
I am running a large number of jobs (thousands) in parallel (linux OS
64bit), R version 2.14.1 (2011-12-22), Platform: x86_64-redhat-linux-gnu
(64-bit). Up to yesterday everything ran fine with jobs in several
blocks (block1, block2 etc) of submission. They are sent to an LSF
platform to handle the parallel submission. Today I see that only one of
the blocks (the 19) has not finished
2013 Jun 17
0
[PATCH] Btrfs: optimize reada_for_balance
This patch does two things. First we no longer explicitly read in the blocks
we''re trying to readahead. For things like balance_level we may never actually
use the blocks so this just adds uneeded latency, and balance_level and
split_node will both read in the blocks they care about explicitly so if the
blocks need to be waited on it will be done there. Secondly we no longer drop
the
2017 Jun 19
7
DRS stopped working after upgrade from debian Jessie to Stretch
Hello Samba team !
I'am in a very delicate situation. After an upgrade to debian Stretch
my DRS stopped working.
I have three DCs (fichdc, fichds01, fichds02), all Debian Stretch, all
with the same problem. Everything seems to be fine except DRS.
-> File shares works
-> DNS (with bind9 DLZ) works
-> "kinit administrator" works
-> "kinit -k FICHDC$" works
->