Displaying 20 results from an estimated 8000 matches similar to: "Block comments in R?"
2008 May 10
2
Random number generation
Colleagues,
I have encountered behavior of random number generation that eludes me.
I generate a random integer in a particular range using the following
code:
sample(1000:9999, size=1)
This code exists within a script that starts with the command:
remove(list=ls())
Each time that I run the script, it yields the same random number:
6420.
I thought that the problem might result from
2008 Apr 29
0
[LLVMdev] Lost in the documentation
On 2008-04-29, at 08:41, Hendrik Boom wrote:
> On Mon, 28 Apr 2008 17:54:31 -0400, Gordon Henriksen wrote:
>
>> On Apr 28, 2008, at 17:32, Hendrik Boom wrote:
>>
>>> In http://llvm.org/docs/FAQ.html, when taking about writing a
>>> compiler
>>> that uses LLVM (at least I think that's what the FAQ question is
>>> asking),
>>> the
2008 Apr 29
2
[LLVMdev] Lost in the documentation
On Mon, 28 Apr 2008 17:54:31 -0400, Gordon Henriksen wrote:
> On Apr 28, 2008, at 17:32, Hendrik Boom wrote:
>
>> In http://llvm.org/docs/FAQ.html, when taking about writing a compiler
>> that uses LLVM (at least I think that's what the FAQ question is
>> asking),
>> the FAQ recommends
>>
>>> # Call into the LLVM libraries code using your
2016 Apr 27
1
Bourne shell deprecated?
On Wed, Apr 27, 2016 at 03:32:49PM -0453, William A. Mahaffey III wrote:
>
> From NetBSD 6.1.5:
>
>
> 4256EE1 # man sh
...
> SH(1)
>
> NAME
> sh -- command interpreter (shell)
...
>
> HISTORY
> A sh command appeared in Version 1 AT&T UNIX. It was, however,
> unmaintainable so we wrote this one.
>
The V1 shell was of course not
2001 Dec 26
3
Understanding the Examples
Hello everybody,
I am trying to understand the Advance routing and Traffic control. In
the examples section of the how to an example script is given. Section
15.8.2 (the ultimate setup for Your internet connection)
The example says download is 800 and upload is 220
###### uplink
# install root CBQ
tc qdisc add dev ppp0 root handle 1: cbq avpkt 1000 bandwidth 10mbit
Maybe I am
2010 Nov 30
5
Minor warning about seq
I spent more time than I should have debugging a script because I wanted
x<-seq(0,100)*0.1
but typed
x<-seq(O:100)*0.1
seq(0:100) yields 1 to 101,
Clearly my own brain to fingers fumble, but possibly one others may want to avoid it.
JN
2007 Jan 01
4
if ... problem with compound instructions
I am having problems with the 'if' syntax.
I have an n x 4 matrix, X say. The first two columns hold x, y values and
I am attempting to fill the second two columns with the quadrant in which
the datapoint (x, y) is and with the heading angle.
So I have two problems
1) how to do this elegantly (at which I've failed as I can't seem to
vectorize the problem) and
2) how to
2006 Nov 08
2
centos3.8 - outdated coreutils package
Hello,
I have a number centos3.8 installations. Recently I have figured out
that version of coreutils is :
[ivan at algol ivan]$ rpm -q coreutils
coreutils-4.5.3-28.1
while RedHat has released an bux fix errata to that package:
https://rhn.redhat.com/errata/RHBA-2006-0670.html
Actually I discovered that when I encounter bug that should be fixed by
this update:
2012 Feb 27
3
Principal Components for matrices with NA
Hello,
I have a matrix with 267 columns, all rows of which have at least one
column missing (NA).
All three methods i've tried (pcs, princomp, and prcomp) fail with either
"Error in svd(zsmall) : infinite or missing values in 'x'" (latter two)
or
"Error in cov.wt(z) : 'x' must contain finite values only"
The last one happens because of the check
if
2016 Apr 27
5
Bourne shell deprecated?
>>> >>last OS I can think of with an actual Bourne shell was Solaris.
>>> >>
>>> >>
>> >
>> >The various *BSD's have & use the actual Bourne shell ....
>> >
>> >
> Which one? All the BSDs I know of use the Almquist Shell except for
> OpenBSD which uses a patched version of the Public Domain Korn Shell
2008 May 07
4
[Bug 15857] New: Errors in Desktop Tower Defense (flash game)
http://bugs.freedesktop.org/show_bug.cgi?id=15857
Summary: Errors in Desktop Tower Defense (flash game)
Product: swfdec
Version: git
Platform: x86 (IA32)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: library
AssignedTo: swfdec at lists.freedesktop.org
2011 Dec 18
1
Saving nothing with save()
Scenario: Here I am working away in R. I've got results that prove
global warming is anthropogenic and also the solution for producing
limitless carbon-neutral energy from nuclear fusion. Its been a good
day.
So, I want to save my work. I don't want to overwrite my current
.RData, so I save it to another file:
save(file="prize.RData") # just need to email this to the Nobel
2008 Nov 17
4
functional (?) programming in r
the following is a trivialized version of some functional code i tried
to use in r:
(funcs = lapply(1:5, function(i) function() i))
# a list of no-parameter functions, each with its own closure environment,
# each supposed to return the corresponding index when applied to no
arguments
sapply(funcs, function(func) func())
# supposed to return c(1,2,3,4,5)
there is absolutely nothing unusual in
2013 Jul 24
1
Alpha channel in colorRamp() and colorRampPalette()
Hi all,
I had the need to create a colorbar considering the alpha channel of the colors, but colorRamp() and colorRampPalette() ignored the alpha argument in rgb(). So I performed some minor modifs. in their codes, as to support the interpolation using the alpha channel.
I guess that those simple modifications might be useful for other people, so perhaps it would be worth to add them to
2000 Apr 04
0
stochastic process transition probabilities estimation
Hi all,
I'm new with R (and S), and relatively new to statistics (I'm a
computer scientist), so I ask sorry in advance if my question is silly.
My problem is this: I have a (sample of a) discrete time stochastic
process {X_t} and I want to estimate
Pr{ X_t | X_{t-l_1}, X_{t-l_2}, ..., X_{t-l_k} }
where l_1, l_2, ..., l_k are some fixed time lags. It will be enough for
me to compute
2008 Feb 06
0
[LLVMdev] 2.2 garbage collector questions
thomas weidner wrote:
>>The reason why I ask is that I expressed an outrageous opinion at
>>Supercomputing back in November, to wit, that CL is probably the best
>>language suited for today's multicore problems... but I don't have the
>>time to hack one of the current implementations to proove the point.
>
>
> interesting, what makes lisp superior in this
2015 Jun 18
1
Improving string concatenation
Gabor Csardi writes:
> Btw. for some motivation, here is a (surely incomplete) list of
> languages with '+' as the string concatenation operator:
>
> ALGOL 68, BASIC, C++, C#, Cobra, Pascal, Object Pascal, Eiffel, Go,
> JavaScript, Java, Python, Turing, Ruby, Windows Powers hell,
> Objective-C, F#, Sc-ala, Ya.
The situation for R is rather different from that of a
2009 Nov 04
3
Cannot Change Function (PR#14041)
Full_Name: Michael Aaron Karsh
Version: 2.8.0
OS: Windows XP
Submission from: (NULL) (75.61.102.255)
Whenever I try changing a function, it keeps coming up with the same error
message.
I have the function
CN_state_log_sum=function(Tot_log_sum){ #estimate copy number state for the log
sum approach
if(((Im(Tot_log_sum))!=0)|Re(Tot_log_sum)<=log(1/4)/log(2)) {return(0)}
2009 Oct 20
8
¿Por qué comprar un programa estadístico si existe R?
Esta pregunta nos la hicimos muchos, alguien aproxima una respuesta a través
de esta publicación:
http://www.scielo.org.ar/pdf/ecoaus/v18n2/v18n2a07.pdf
Saludos cordiales
Teresa
--
Ing. Agr. M.Sc.Teresa Boca
Instituto de Clima y Agua INTA Castelar.
Las Cabañas y Los Reseros s/n°
1712 Castelar Pcia de Buenos Aires, Argentina
Cel: 01115-3572-9584
Tel: (54-11)-4621-0125/1684
Fax:(54-11)-4621-5663
1998 Nov 17
1
Failure to rename files that have active file handles
We have just installed Samba 1.9.18p10 on an Ultra Sparc, Solaris 2.5.1 .
So far we have been very impressed with the resilience and performance
of Samba in contrast to Hummingbird and Solstice NFS products while
doing large product builds on our NT4.0 sp4 machines.
However we have come across one little problem, which may be down to
configuration, that has left us "worried" about