Displaying 13 results from an estimated 13 matches for "dnbnor".
Did you mean:
dnbinom
2008 Aug 06
2
matching problem
I have a matching problem that I cant solve.
mystring = "xxx{XX}yy{YYY}zzz{Z}" where "x","X","y","Y","z","Z" basiclly can
be anything, letters, digits etc. I'm only interested in the content within
each "{}".
I am close but not really there yet.
library(gsubfn)
strapply(mystring,"\\{[^\\}]+",, perl=F)
2008 Feb 12
6
Matching Problem
Hi
I have this vector of strings.
MyData <- c("Test1","Test2","I(Test1^2)","I(Test2^3)","I(Test1.Test2^2)")
where I want to extract only the text after "I(" and before "^" so that the
string returned only contain c("Test1","Test2","Test1.Test2")
I am not very skilled in the use of matching
2007 Jul 26
1
Create Strings of Column Id's
Does anyone know how this is don?
I have a large matrix where I extract specific columns into txt files for
further use. To be able to keep track of which txt files contain which
columns I want to name the filenames with the column Id's.
The most basic example would be to use an for() loop together with paste(),
but the result is blank. Not even NULL.
this is the concept of thecode i use:
2007 Jun 08
3
Barplots: Editing the frequency x-axis names
Hi
I have a timeSeries object (X) with monthly returns. I want to display the
returns with a barplot, which I can fix easily. But my problem is labaling
the x-axis, if I use the positions from the timeseries It gets very messy. I
have tried rotating and changing the font size but it doesn't do the trick.
I think the optimal solution for my purpose is too only display every second
or third
2007 Nov 19
2
Extracting only one part of an string
Hi
I wonder if there's a smarter way to do this procedure.
I have a vector of filenames wher I only am interested in the first part of
the filename.
I would use the following method of extracting the first part. But is there
a more simple way of doing this?
Names <-
2007 Aug 02
4
Finding multiple characters in the same string
Hi
I have this problem where I need to find if there is any numbers in a
string, this is no problem if theres only one number per string. I would
then simply use the regexpr() funtion togheter with the substring function
to extract the number. But regexpr only picks one number per string either
from the beginning or the end, but not multiple. Can this be done? And how
for example
My string <-
2007 Aug 11
0
DOE and interaction plot general question
...-------------------------
>
> Message: 10
> Date: Fri, 10 Aug 2007 07:36:11 -0400
> From: "Gabor Grothendieck" <ggrothendieck@gmail.com>
> Subject: Re: [R] ordering a data.frame by average rank of multiple
> columns
> To: "Tom.O" <tom.olsson@dnbnor.com>
> Cc: r-help@stat.math.ethz.ch
> Message-ID:
> <971536df0708100436p3efc4d19me89f4a83ffd546d6@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Try this:
>
> positions <- order(ranks)
>
> On 8/10/07, Tom.O <tom.olsson@dnbnor....
2007 Oct 29
2
Adding pagebreaks on files???
Hi
Does anyone know if its possible to add pagebreaks to an pdf through an R
command? I'm running a loop where each session exports an pdf graph. Each
image becomes a separate file, but I would like to have them in the same
document but on separate pages.
Does anyone know a solution or workaround?
Regards, Tom
--
View this message in context:
2007 Nov 01
1
Need help on an error, when looding library(uroot)
Hi
When I'm looding the library "uroot" something happens with the basic R code
that handles numeric classes. Its looks like a bug but I cant isolate the
problem. So hopfully one of you smart guys out there can give me some help.
This is how the problem looks. Take for example the vector
TEST <- c("1","2") which I want to transform it to a numeric vector. I
2008 Jul 30
0
R GUI help
Hi R gurus
Im currently doing some GUI coding with the rpanel package. I have come
across a very interesting problem, how do I close a panel that I have
created. This sounds silly for I can always click the X up in the right
corner but how do I do it by code?
for example; when I create a control I know the objects name.
test = rp.control()
and test will have this format
2007 Aug 07
1
Naming Lists
Hi
Im pretty new to R and I have run in to a problem. How do I name all the
levels in this list.
Lev1 <- c("A1","A2")
Lev2 <- c("B1","B2")
Lev3 <- c("C1","C2")
MyList <- lapply(Lev1,function(x){
lapply(Lev2,function(y){
lapply(Lev3,function(z){
paste(unlist(x),unlist(y),unlist(z))
})})})
I would like to name the different
2007 May 17
1
Is it possible to control R with S+?
I am currently using S+, which is my company standard econometric package,
but unfortunately in some areas R has a lot more to offer in nice
functions/libraries. Libraries I would like to use in S+. So I would like to
use the R functions by calling on R from S+. For example export the data to
be used in the R calculation in a temporary txt-file, and then S+ calls on R
to start and read the txt
2008 Oct 22
3
Help finding the proper function
This might not be the correct forum for this question for there might be some
flaws in my logic so the R function I'm looking for might not be the
correct, but I know there?s a lot of smart people in this forum so please
correct me if I'm wrong. I have been googling and searching in this forum
for something useful but so far I'm out of luck.
This is the background to my problem. I