[R] Pattern Matching within Vector?

2009-09-21 Thread Anne-Marie Ternes
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,

[R] tryCatch - return from function to main script

2008-07-15 Thread Anne-Marie Ternes
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,

[R] recursively divide a value to get a sequence

2008-07-09 Thread Anne-Marie Ternes
Hi, if given the value of, say, 15000, I would like to be able to divide that value recursively by, say, 5, and to get a vector of a determined length, say 9, the last value being (set to) zero- i.e. like this: 15000 3000 600 120 24 4.8 0.96 0.192 0 These are in fact concentration values from

Re: [R] recursively divide a value to get a sequence

2008-07-09 Thread Anne-Marie Ternes
+0200, Anne-Marie Ternes wrote: Hi, if given the value of, say, 15000, I would like to be able to divide that value recursively by, say, 5, and to get a vector of a determined length, say 9, the last value being (set to) zero- i.e. like this: 15000 3000 600 120 24 4.8 0.96 0.192 0

[R] position legend below x-axis title

2008-07-02 Thread Anne-Marie Ternes
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

Re: [R] Sweave / Latex per-chapter output

2008-07-02 Thread Anne-Marie Ternes
Hello to all who have helped me on this topic, first I need to apologize for apparently replying only now... In fact I use the Pan Newsreader to read the list, and I posted a reply to the thread a week after your suggestions through Pan, and I only now realised that the posting never arrived on

[R] genotype analysis

2008-03-26 Thread Anne-Marie Ternes
Dear mailing list, I'm still quite a newbie in the statistical analysis of genotype/allele data, resp. more generally in the analysis of categorical variables. Moreover, I'm currently totally confused by the many R packages available to do such analysis. Here is my case: I've got a list of