similar to: recursively divide a value to get a sequence

Displaying 20 results from an estimated 1000 matches similar to: "recursively divide a value to get a sequence"

2008 Jul 02
2
position legend below x-axis title
Dear helpers, I'm using a R script on several different datasets, which makes that axis scales may vary quite a lot from dataset to dataset. So what I'm looking for now, is how to automagically find out how to position the legend (horizontal) in the space below the x-axis title, and how to make sure that the legend is within the limits of the lower inner or outer margin? I'm aware of
2008 Jul 15
1
tryCatch - return from function to main script
Dear helpers, I've got a main script, which calls 4 times a function on 4 different datasets respectively. This function runs "nls" and is located in another R script which is sourced into my main script. What I would like to have is this: If, e.g. in the 3rd call of the function, nls fails, because it can't converge, I would like it to return an error (value or message), and
2008 May 21
4
Sweave / Latex per-chapter output
Dear R-help, I am using Sweave and pdflatex to generate a large report from data contained in my database (Postgres via RODBC). Currently, I work with a single R/Sweave file, containing several "chapter" indications for the Latex engine. My master tex file sets the document class, and includes the introduction, the main Sweave file, and a conclusions and reference file. I use a makefile
2009 Sep 21
1
Pattern Matching within Vector?
Dear mailing list, I'm stuck with a tricky problem here - at least it seems tricky to me, being not really talented in pattern matching and regex matters. I'm analysing amino acid mutations by position and type of mutation. E.g. (fictitious example) in position 92, I can find L92V, L92MV, L92I... L is in this example the wild-type amino-acid, and everything behind the position number is
2001 Feb 01
1
constructing a vector from a dataframe and another vector
Hi All, I have a dataframe, divs, that looks like this: > divs date ticker dividend 263 20010322 ADBE 0.025 264 20010628 ADBE 0.025 265 20010927 ADBE 0.025 4308 20010212 ED 0.550 4309 20010514 ED 0.410 5416 20010330 GE 0.137 5417 20010629 GE 0.137 5418 20010928
2014 Oct 17
3
[LLVMdev] oprofile support?
I've been trying to get oprofile results for jitted code without success. I built an 3.5.0 llvm with oprofile enabled, and tested it with lli on a small test case. I built the latest oprofile from the git repository. Debugging I can see that lli is registering the listener and making the oprofile calls to the libopagent api to specify the names and address ranges of jit'd routines, and
2014 Nov 29
2
[LLVMdev] oprofile support?
Mi Maurice, A follow up to Andy's comments: MCJIT can find line numbers for ELF files, at least in limited circumstances. I know because I broke the regression test for it while doing some cleanup recently. ;) Looking at lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp, I see the line: // TODO: support line number info (similar to IntelJITEventListener.cpp) >From a glance at
2012 Dec 07
2
Assigning cases to groupings based on the values of several variables
Dear R-ers, my task is to simple: to assign cases to desired groupings based on the combined values on 2 variables. I can think of 3 methods of doing it. Method 1 seems to me pretty r-like, but it requires a lot of lines of code - onerous. Method 2 is a loop, so not very good - as it loops through all rows of mydata. Method 3 is a loop but loops through fewer lines, so it seems to me more
2007 Nov 30
3
Do While loop
Hi, Is there a way to have a Do-While sort of loop, as opposed to a simple While? I have a condition that the loop depends on even for the first iteration, as it often happens in life. Regards, Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071130/2ceb78a2/attachment.htm
2005 Mar 27
2
Mountpoint related..
2007 Apr 04
2
Newbie: Simple loops: complex troubles
I am used to java (well, i dont remember it really well, but anyway) I have having a really difficult time making simple loops to work. I got the following to work: ## ##Creates objects Ux1, Ux2, Ux2 etc. that all contain n numbers in a random distribution ## m<-c(m1,m2,m3,m4,m5,m6,m7,m8,m9,m10)#these are defined as numbers (means) v<-c(v1,v2,v3,v4,v5,v6,v7,v8,v9,v10)#these
2005 Sep 11
6
Patch to wxNotebook.rbw
Patch to the notebook example to remove the call to the deprecated NotebookSizer. It appears to work just fine without the sizer. Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2009 Aug 09
2
two-passes in thusnelda
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all: I'm testing thusnelda and I'm trying to use the two-pass feature, but when I try it with /usr/bin/ffmpeg2thusnelda /home/raster/Escritorio/devede/holidays\ at\ galicia.mpg -o /home/raster/output.ogv -v 10 -a 10 --optimize - --first-pass /home/raster/output.ogv.firstpass_data I receive the error Could not set up the first
2009 Aug 09
2
two-passes in thusnelda
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all: I'm testing thusnelda and I'm trying to use the two-pass feature, but when I try it with /usr/bin/ffmpeg2thusnelda /home/raster/Escritorio/devede/holidays\ at\ galicia.mpg -o /home/raster/output.ogv -v 10 -a 10 --optimize - --first-pass /home/raster/output.ogv.firstpass_data I receive the error Could not set up the first
2012 Jan 23
2
model non-nested random effects in nlme library
Hello all, In lme4 if you want to model two non-nested random effects you code it like this: mod1 <- lmer(y~x + (1|randomvar1) + (1|randomvar2)) How would you go about to model something similar in nlme? In my database I have two variables for which I have repeated measures, lets call them "individual" and "year". But none of the "individuals" were measured in
2011 Dec 29
3
Array element is function of its position in the array
I want to create a new array which selects values from an original array based on a function of the indices. That is: I want to create a new matrix Vnew[i,j,k]=Vold[i,j,ks] where ks is a function of the index elements i,j,k. I want to do this WITHOUT a loop. Call the function "ksfunction", and the array dimensions nis,njs,nks. I can do this using a loop as follows: # Loop version:
2006 Apr 29
4
Wild SQL -- public/500.html -- postgres-pr
Every page of my DEPOT on Postgresql rails app now gets an error from postgres-pr about some wild left-join SQL that has nothing to do with my tables: SQL (0.000000) NameError: undefined local variable or method `errors'' for #<PostgresPR::Connection:0x3b200c0>: SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull FROM pg_attribute a LEFT JOIN
2004 Dec 22
1
Slow Print Dialogue Box
I have a Question I am running Samba 3.10 on Debian with OpenLdap Backend as a Print Server to XP Client Machines without SP2. When printing from Microsoft Word it takes 10 -15 sec. for the Dialogue box to come up. However, in troubleshooting this problem i found that if i edit the smb.conf and add my user account to the admin user under the [Global] Section. The problem goes away. Does
2010 Mar 08
2
[LLVMdev] findNearestCommonDominator
On 03/07/2010 10:33 PM, Jochen Wilhelmy wrote: > Hi! Hi Jochen, > I have seen that findNearestCommonDominator has been added > to class PostDominatorTree, maybe on my request. > > Now there is the following problem: > in class DominatorTreeBase there is an assert in findNearestCommonDominator > that asserts if the tree is not a PostDominator tree: > > assert
2023 Aug 06
1
Stacking matrix columns
I wish to stack columns of a matrix into one column. The following matrix command does it. Any other ways? Thanks. > x<-matrix(1:20,5,4) > x ???? [,1] [,2] [,3] [,4] [1,]??? 1??? 6?? 11?? 16 [2,]??? 2??? 7?? 12?? 17 [3,]??? 3??? 8?? 13?? 18 [4,]??? 4??? 9?? 14?? 19 [5,]??? 5?? 10?? 15?? 20 > matrix(x,ncol=1) ????? [,1] ?[1,]??? 1 ?[2,]??? 2 ?[3,]??? 3 ?[4,]??? 4 ?[5,]??? 5