Displaying 20 results from an estimated 20000 matches similar to: "for loop problem"
2003 Jan 21
2
key in margin area
Hi
Is there any way to position a key (legend) outside the plot area? i.e. in
the margin between plot area and page margin. I realise I could achieve the
same effect by creating a larger plot but not printing the axes and then
draw the smaller axes independantly leaving room for the key. However, that
wont work very well in my particular case.
Thanks in advance
Jeremy
2003 Mar 04
2
log axis assignment
Hi again,
another problem:
This (below) isn't working and as far as I can see it damn well should. What
I'm trying to acomplish is to run several data sets through the same
graphing procedure, but for the pH data use a log y axis. using this code
all graphs are drawn with a linear axis. Surely I should be able to set the
ylog option to T using another object (logaxis).
for (n in
2003 Mar 07
1
column name changes based on substrings
Hi peoples,
I'm trying to work out a function which will allow me to relace column names
on the basis of substrings within the existing names. e.g.
I'd like:
blah.Na blah2.Na blah3.Mg blah4.Mg blah5.K blah6.K
R1 x x x x x x
R2 x x x x x x
...
to become:
Na (%) Na (%) Mg (%) Mg
2003 Mar 15
1
quote supression
To creat a series of plots I've constructed the following, however this
doesn't work because the colnames being feed into n are embraced by quotes
which is stuffing up the plotting function. Is there a way to suppress to
quotes? coercion in to a different format??
for (n in colnames(tt[7:36]))
{
par(ask=T)
attach(tt)
plot(july~n)
...
}
2009 Dec 28
3
apply loop - using/providing a data frame to loop over
Hi,
I want to extract individual names from a single string that contains all
names. My problem is not the extraction itself, but the looping over the
extraction start and end points, which I try to realize with apply.
#Say, I have a string with names.
authors=c("Schleyer T, Spallek H, Butler BS, Subramanian S, Weiss D,
Poythress ML, Rattanathikun P, Mueller G")
#Since I only want the
2003 Jan 17
2
barplot plotting problem
Hi,
Is there any equivalent of type="n" when constructing barplots which will
still construct the axes (plot=F, as it says doesn' plot anything at all).
Alternatively I tried setting col="white" and border="white" but the border
command does not seem to be operational. True??
Any other ideas? What I'm actually trying to do is construct vertical
abline()'s
2013 Jul 02
2
Recoding variables based on reference values in data frame
I'm new to R (previously used SAS primarily) and I have a genetics data
frame consisting of genotypes for each of 300+ subjects (ID1, ID2, ID3,
...) at 3000+ genetic locations (SNP1, SNP2, SNP3...). A small subset of
the data is shown below:
SNP_ID SNP1 SNP2 SNP3 SNP4 Maj_Allele C G C A Min_Allele T A T G ID1
CC GG CT AA ID2 CC GG CC AA ID3 CC GG
nc
AA
2011 Jun 18
1
[LLVMdev] loop only executes once
Hello,
I'm trying to get to grips with the c interface of llvm
intending to eventually develop a front end for Purebasic
Though I've hit the wall already writing an iterative Fibonacci
function.
While I think the module dump looks ok it doesn't work
for any input > 2 the function returns 2, the loop only executes once
Hopefully someone can see what the problem is from the
2008 Jun 02
4
NOT-SO-SIMPLE function!
I am trying to set up a function which processes my data according to the
following rules:
1. if (x[i]==0) NA
2. if (x[i]>0) log(x[i]/(number of consecutive zeros immediately preceding
it +1))
The data this will apply to include a variety of whole numbers not limited
to 1 & 0, a number of which may appear consecutively and not separated by
zeros. Below is an example with a detailed
2014 Jan 16
3
[LLVMdev] Loop unrolling opportunity in SPEC's libquantum with profile info
On Thu, Jan 16, 2014 at 9:26 AM, Nadav Rotem <nrotem at apple.com> wrote:
> Hi Diego,
>
> It looks like the problem is with the code in the vectorizer that tries to estimate the most profitable vectorization factor:
>
>> LV: Found an estimated cost of 6 for VF 2 For instruction: %3 = load
>> i64* %state, align 8, !dbg !58, !tbaa !61
>
>
> It looks like a
2006 Jul 20
3
AOP in Prototype / JS
Hey folks
I am just investigating using Aspects for logging my main Javascript
"interfaces". I don''t believe Prototype has any built in capabilities
for this but I just thought I''d check and see how people had tackled
this before.
I am still getting to grips with core JS so apologies if this is easy
or obvious..
I am Googling as we speak also..
Cheers
Matt
2007 Jan 18
4
How to optimize this loop ?
Dear R Users,
I request your help to optimize a loop.
Given a series of observations, I want to know how many consecutive past
observations are below the last one.
e.g :
my_series <- c(3, 4, 10,14,8,3,4,6,9)
As the last number (9) is higher than the four preceding numbers (6, 4, 3, 8),
this function should return 4.
my_series <- c(3, 4, 10,14,8,3,4,11,9)
Here, it should return 0, as 9
2006 Feb 20
3
Boxplot Help for Neophyte
R helpers
I am getting to grips with R but came across a small problem today that I
could not fix by myself.
I have 3 text files, each with a single column of data. I read them in
using:
myData1<-scan("C:/Program Files/R/myData1.txt")
myData2<-scan("C:/Program Files/R/myData2.txt")
myData3<-scan("C:/Program Files/R/myData3.txt")
I wanted to produce a
2008 Jun 20
2
how do I manage a Dell PE 860 server via IPMI?
Hi all
I'm trying to get to grips with this one, but just can't figure it out.
I recently acquired some 2nd hand Dell Poweredge 860 servers, and
noticed that they have built in remote management interfaces. So, I have
setup one, and assigned an IP address to it, but have no idea on how to
access it remotely. Google'ing for an answer didn't bring me more than
general product
2010 Dec 30
2
Analysing Character Strings for subsequent frequency analysis
Hi
I'm trying to get to grips with R and establish R as a teaching medium
in my secondary school. I would like to use R to analyse text so I can
produce frequency analysis of the text for subsequent examination of
ciphers. I can produce code in VBA but I am struggling when writing in R
to examine each character. There must be a clear method using the
vectorised format of R. Furthermore,
2007 Jul 18
1
nested for loop
Hi,
I am new to programming and R. I am reading the manual and R books by Dalgaard and Veranzo to help answer my questions but I am unable to figure out the following:
I have a data file that contains 1080 data points. Here's a snippet of the file:
[241] 0.3603704000 0.1640741000 0.2912963000 NA 0.0159259300 0.0474074100
I would like to break the file up into 30
2010 Oct 05
2
how to upgrade (update) the dovecot
Dear All,
Is there any easy way to upgrade Dovecot like yum command? Or I have to delete the current and install the new version then change the setting?>
I will appreciate if you can tell me the steps please?
Best Regards
Arif
--- On Fri, 1/10/10, dovecot-request at dovecot.org <dovecot-request at dovecot.org> wrote:
From: dovecot-request at dovecot.org <dovecot-request at
2008 Jun 02
7
Pretty HTML reporting for stories
Hi all,
I''m just getting to grips with rspec, and I''m trying to put together a
showy demo. We''re trying to use the (plain text) stories feature, rather
than the specs. I''d like to show off a fancy HTML report of the results
if possible.
So it seems I can do this from the spec command line tool, but I can''t
make it work for a story.
I''ve got
2004 Aug 18
3
downloading the R program
I am trying to download the R program, but am having trouble. I have
read through the instructions, but do not seem to be able to do it
properly. Can you tell me the step-by-step instructions?
Joanne L. Butler, Post-doctoral Fellow
Equity and Technology Research Project
c/o Department of Sociology
Acadia University
Wolfville, N.S. B4P 2R6
phone (902) 585-1535
fax (902) 585-1769
2006 Apr 16
4
[LLVMdev] Use of LLVM in a Machine Simulator.
Hi,
I'm slowly getting to grips with what makes up LLVM. I intend to use it
in a machine simulator, e.g. processor, clock, RAM, UART, and other
devices, where the processor will be one of several. It would take a
block of target instructions, e.g. ARM, and produce LLVM to simulate
those on the target machine state, and then JIT them to host
instructions and then execute.
The peripheral