Displaying 20 results from an estimated 80 matches similar to: "Nested For Loop"
2012 Jun 28
1
Mystery!!!
I am executing the following loops in R 15.1.0 and the first one works and
produces results. However, the second one is not with initiating the object
as x[i]. Further, I was able to get the second loop work in R 15.0. Am I
missing something here?
for(i in 1:length(b))
{y[i]<-paste(a,b[i],c,sep="")
print(y[i])
print(fromJSON(file=y[i],method="C"))
}
for(i in 1:length(b))
2012 Jun 06
1
Proxy Setting
Hi,
I am trying to download data off of this web site http://www.eia.gov/oil_gas/petroleum/data_publications/wrgp/mogas_history.html
I used to set the proxy following code to set the proxy
Sys.setenv(wget="http://username:password@"proxy server":port")
I used the following code to download the data
2012 Jul 12
2
How to get all list item to one string variable
Hi,
How to get all list item to one string variable.
example
a[1]="abc"
b[1]="def"
output="abc def"
Thanks
B.Purushothaman
--
View this message in context: http://r.789695.n4.nabble.com/How-to-get-all-list-item-to-one-string-variable-tp4636283.html
Sent from the R help mailing list archive at Nabble.com.
2005 Mar 12
2
problems with migration to Maildir
I'm attempting to use Maildir and mbox together until I can finish
migrating all mailboxes and figure out issues I'm having with a couple
other mailboxes. But, I want to officially start using Maildir as the
primary msg. store. Now...when I configure Dovecot as follows, it
creates new folders in the ~/mail folder, which is where my mboxes reside:
#default_mail_env =
2006 Nov 03
2
Strangeness with OggFlac files
Josh et al,
I've been tracking down a problem with generating OggFlac files.
While investigatint this issue I hacked one of the test files from
the test_libFLAC directory of the flac-1.1.3-beta2. The result of
this hacking is this standalone C file:
http://www.mega-nerd.com/tmp/erikd_test.c
Directions for compiling this is in the comments at the top of
the file.
When the program is
2004 Aug 22
2
[LLVMdev] How to handle nested procedures?
How would following Pascal code be translated to LLVM?
procedure outer(a: integer): integer;
procedure inner(b: integer): integer;
begin
return a + b
end;
begin
return inner(a)
end;
If outer(10) is called, it returns 20.
The problem here is that inner has access to the locals and formal
arguments of outer. I do not see any direct support for this. It could
be
2007 Jul 19
5
ridiculous slow gigabit transfer, faster with VNC
Hi,
I have a problem with file transfers between a windows systems and unix systems.
I have one win32 desktop (intel e6400 2Gb Ram), one win32 laptop (p-m 2Ghz).
Also one linux laptop (p-m 1.4GHz) and one opensolaris desktop (intel
e4400 1GB Ram).
The two laptops have built-in 100Mbit ethernet and desktops have 1Gbit
ethernet on the motherboard. Both desktops use a Marvell Yukon.
The file
2004 Jun 07
1
filled.contour - color palette so z=0 ONLY is blue
I am trying to create a topographic map of an island - the filled.contour
function works fine except i am experiencing difficulty trying to
represent the sea properly. Basically I want the default colour blue for
any instance where z=0, if I simply use the default topo.color I get
shades of blue for z values up to 220 metres. Is there a way in which I
can specify terrain.color for all values of
2006 Oct 24
1
[ggplot] trouble with ggabline and log-log-plots
Hello,
I'm trying to generate a log-log plot with ggplot. Within this plot, I
would like to draw a straight line with the help of ggabline which does
not work. The code is
pl1 <- qplot(correlFunc, correlFunc.ref, data=all, log=c("xy"))
pl1 <- ggabline(pl1, slope=1, intercept=0)
print(pl1) ## no line in plot :(
I can produce plots as I want, if I transform all values before
2004 Aug 22
1
[LLVMdev] How to handle nested procedures?
On Sat, 21 Aug 2004 20:35:35 -0500
"Patrick Meredith" <pmeredit at uiuc.edu> wrote:
>
> ----- Original Message -----
> From: "Jeff Cohen" <jeffc at jolt-lang.org>
> To: <LLVMdev at cs.uiuc.edu>
> Sent: Saturday, August 21, 2004 7:35 PM
> Subject: [LLVMdev] How to handle nested procedures?
>
>
> > How would following Pascal
2010 Jun 15
1
MANOVA proportion of variance explained
Hello everybody
After doing a MANOVA on a bunch of data, I want to be able to make some comment on the amount of variation in the data that is explained by the factor of interest. I want to say this in the following way: XX% of the data is explained by A.
I can acheive something like what I want by doing the following:
X <- structure(c(9, 6, 9, 3, 2, 7), .Dim = as.integer(c(3,
2004 Aug 22
0
[LLVMdev] How to handle nested procedures?
----- Original Message -----
From: "Jeff Cohen" <jeffc at jolt-lang.org>
To: <LLVMdev at cs.uiuc.edu>
Sent: Saturday, August 21, 2004 7:35 PM
Subject: [LLVMdev] How to handle nested procedures?
> How would following Pascal code be translated to LLVM?
>
> procedure outer(a: integer): integer;
> procedure inner(b: integer): integer;
> begin
>
2007 Oct 03
6
Best config for 12 FXO system?
I have a client who wants a Meetme box with 12 FXO ports, to connect
to Analogue lines coming from an Ericsson PBX.
It looks like I could do this with four different hardware configurations:
a) three TDM04B cards (based on TDM400P)
b) one TDM04B and one TDM808B
c) one TDM804B (or TDM854B?) and one TDP808B
d) one TDM2403B (half filled TDM2400P)
Apart from considerations of cost and PCI slot
2005 Feb 28
3
Digium Card Problems
Hi all
i need urgent help our entire switchboard is down only 5 days after it came
up.
this is the second time this has happened and i am thinking that asterisk is
not worth the trouble it gives.
mostly it runs without hassle. but around 2 weeks ago during the test phase
we rebooted the machine and
did the normal modprobes and this error popped up.
coming back to work after the weekend the
2009 Mar 27
1
Images and Alt Tags Acheiving Better Search Engine Ranking
Many years ago, my sister asked me to look at the Google <a
href="http://images.google.com/">Images search</a>
. When I first saw the page, I thought Google was offering a place for
freebie photos before I realized that it was probably searching for and
finding the "alt tag" text written in the HTML for website images. "Alt
tags" or "alt text"
2005 Dec 19
0
has_one mapping with arbitrary right and left hand side keys
I have two tables:
table_1:
tab1_id,
other_id
table_2:
id,
tab2_id,
something_else
I would like to specify a has_one mapping from table_1 to table_2 but
specifying that the join is based on (table_2.tab2_id =
table_1.other_id).
I am half way there with:
class Table1 < ActiveRecord::Base
set_table_name "table_1"
set_primary_key "tab1_id"
has_one :Table2, :class_name
2011 Oct 11
0
[LLVMdev] Speculative paralellisation!!
Please cc llvm-dev in replies to llvm-dev emails.
On 11 October 2011 10:31, Muthu Raj <sameer.muthu9 at gmail.com> wrote:
>
> Hi Nick,
> Thanks for your reply.Now i need some help about how can i
> proceed to start writing a patch for acheiving paralellisation in llvm.
>
Great!
I am new to open source and llvm. So please dont mind if my questions are
>
2006 Nov 03
0
[PATCH] Re: Strangeness with OggFlac files
Erik de Castro Lopo wrote:
> Josh et al,
>
> I've been tracking down a problem with generating OggFlac files.
<snip>
> I have looked into this and suspect that the FLAC__stream_encoder_finish()
> function needs to finish off the stream using a call to ogg_stream_flush()
> instead of the standard function ogg_stream_pageout().
I bashed on this a bit further and came
2006 Nov 06
3
[PATCH] Re: Strangeness with OggFlac files
--- Erik de Castro Lopo <erikd-flac@mega-nerd.com> wrote:
> Erik de Castro Lopo wrote:
>
> > Josh et al,
> >
> > I've been tracking down a problem with generating OggFlac files.
>
> <snip>
>
> > I have looked into this and suspect that the
> FLAC__stream_encoder_finish()
> > function needs to finish off the stream using a call to
2007 Oct 19
2
string.prototype.isNumeric
Hey all,
Just had a need for this, wondering if it is a candidate for inclusion as it
is only a single line and I can''t seem to spot any other way of acheiving
the same functionality in less code.
String.prototype.isNumeric = function() { return (this.match(/^\d+$/) !=
null); }
I used it in the context of:
Event.observe(el,''keypress'',function (e) { if