, 2006 1:06 PM
To: Joshua Tokle
Cc: r-help@stat.math.ethz.ch
Subject: Re: [R] R newbie: logical subsets
Try this, using the built in anscombe data set:
anscombe[!rowSums(abs(scale(anscombe)) 2),]
On 7/11/06, Joshua Tokle [EMAIL PROTECTED] wrote:
Hello! I'm a newcomer to R hoping to replace
Hello! I'm a newcomer to R hoping to replace some convoluted database
code with an R script. Unfortunately, I haven't been able to figure out
how to implement the following logic.
Essentially, we have a database of transactions that are coded with a
geographic locale and a type. These are
Try this, using the built in anscombe data set:
anscombe[!rowSums(abs(scale(anscombe)) 2),]
On 7/11/06, Joshua Tokle [EMAIL PROTECTED] wrote:
Hello! I'm a newcomer to R hoping to replace some convoluted database
code with an R script. Unfortunately, I haven't been able to figure out
how
Hello,
I am new to R and still feeling my way thru it.
I am trying to plot the values from this file below on the X-axis of a plot. I
have attached the graph to the email...the one i am trying to recreate.
Exonstart end
5'UTR 2254006022540121
1 22540122
Does this do what you want:
x - Exonstart end
5'UTR 2254006022540121
1 2254012222540140
2 2254030322540493
3 2254155222541565
4 2254237322542519
5 2254426522544432
3'UTR 2254443322544856
y -
Hi,
I just started using R and am having trouble with the below error:
I type:
df - read.csv(/home/rex/Desktop/mytable.csv)
which gives me what I want:
...
639 2006-05-26 16:46:54 4 16
640 2006-05-26 17:05:36 5 17
641 2006-05-26 17:30:48 6 17
But now I try:
Rex Eastbourne wrote:
Hi,
I just started using R and am having trouble with the below error:
I type:
df - read.csv(/home/rex/Desktop/mytable.csv)
which gives me what I want:
...
639 2006-05-26 16:46:54 4 16
640 2006-05-26 17:05:36 5 17
641 2006-05-26 17:30:48 6
Hi,
I'm trying to fit a fixed effect (LSDV) panelmodel with R. I have a dataset
with y as dependent, x1x2 as indeps, t as time index and i as an
id-variable for each individual. There are three observations for each
individual (t=1, t=2, t=3).
I want to try a simple regression, but with
This is one function I wrote.
http://sociology.yculblog.com/post.794856.html
2006/2/12, Thomas Wilde [EMAIL PROTECTED]:
Hi,
I'm trying to fit a fixed effect (LSDV) panelmodel with R. I have a dataset
with y as dependent, x1x2 as indeps, t as time index and i as an
id-variable for each
Ted.Harding at nessie.mcc.ac.uk writes:
[...]
The solution I finally opted for, and still use,
is based (in a Linux environment) on including
the following code in your .Rprofile file:
.xthelp - function() {
tdir - tempdir()
pgr - paste(tdir, /pgr, sep=)
con - file(pgr, w)
On Friday 13 January 2006 17:45, Ted Harding wrote:
On 13-Jan-06 Michael Friendly wrote:
Ted:
Your .xthelp is extremely useful, help on Linux being otherwise
quite awkward to use since a pager in the same window make it hard
to cut/paste examples --- where 'more' or 'less' really means
Ted:
Your .xthelp is extremely useful, help on Linux being otherwise
quite awkward to use since a pager in the same window make it hard
to cut/paste examples --- where 'more' or 'less' really means
'instead of' :-)
Suggestion: include -title
cat(cat $HLPFIL\nxterm -title 'R-help' -e less
On 13-Jan-06 Michael Friendly wrote:
Ted:
Your .xthelp is extremely useful, help on Linux being otherwise
quite awkward to use since a pager in the same window make it hard
to cut/paste examples --- where 'more' or 'less' really means
'instead of' :-)
Glad you found it useful. I find it
On 09-Jan-06 Mark Leeds wrote:
Sometimes I print out a package
and read about it and there
are sometimes nice examples
that I would like to run myself.
Is there a way to bring them
into R from the package or
are they only meant to be typed
in manually ? If manual is the
only way,
On 10-Jan-06 Ted Harding wrote:
On 09-Jan-06 Mark Leeds wrote:
Sometimes I print out a package
and read about it and there
are sometimes nice examples
that I would like to run myself.
Is there a way to bring them
into R from the package or
are they only meant to be typed
in manually
On 09-Jan-06 Mark Leeds wrote:
Sometimes I print out a package
and read about it and there
are sometimes nice examples
that I would like to run myself.
Is there a way to bring them
into R from the package or
are they only meant to be typed
in manually ? If manual is the
only way,
]
Sent: Monday, January 09, 2006 1:20 PM
To: R-Stat Help
Subject: [R] R newbie example code question
Sometimes I print out a package
and read about it and there
are sometimes nice examples
that I would like to run myself.
Is there a way to bring them
into R from the package or
are they only meant
, 2006 1:20 PM
To: R-Stat Help
Subject: [R] R newbie example code question
Sometimes I print out a package
and read about it and there
are sometimes nice examples
that I would like to run myself.
Is there a way to bring them
into R from the package
You can also get access to the code chunks in vignettes
as shown here:
http://tolstoy.newcastle.edu.au/~rking/R/help/05/12/17822.html
On 1/9/06, Uwe Ligges [EMAIL PROTECTED] wrote:
Mark Leeds wrote:
Sometimes I print out a package
and read about it and there
are sometimes nice
Sometimes I print out a package
and read about it and there
are sometimes nice examples
that I would like to run myself.
Is there a way to bring them
into R from the package or
are they only meant to be typed
in manually ? If manual is the
only way, that's fine. I was
just checking whether there
Mark Leeds wrote:
Sometimes I print out a package
and read about it and there
are sometimes nice examples
that I would like to run myself.
Is there a way to bring them
into R from the package or
are they only meant to be typed
in manually ? If manual is the
only way, that's fine. I
: [R] R newbie example code question
Mark Leeds wrote:
Sometimes I print out a package
and read about it and there
are sometimes nice examples
that I would like to run myself.
Is there a way to bring them
into R from the package or
are they only meant to be typed
in manually ? If manual
Mark,
I am not user where you find your reading material, but if it is online,
perhaps you can copy and paste it into an R session.
John
John Sorkin M.D., Ph.D.
Chief, Biostatistics and Informatics
Baltimore VA Medical Center GRECC and
University of Maryland School of Medicine Claude Pepper OAIC
I think I did enough reading on my
Own about startup ( part of the morning
And most of this afternoon )
to not feel uncomfortable asking
for confirmation of my understanding of this startup stuff.
Obviously, the startup process is more complicated
Than below but, for my R newbie purposes,
It
@stat.math.ethz.ch
Subject:[R] R newbie configuration
I think I did enough reading on my
Own about startup ( part of the morning
And most of this afternoon )
to not feel uncomfortable asking
for confirmation of my understanding of this startup stuff.
Obviously, the startup process
Thank you for all your answers...
I solved my problem thanks to you all !
david
2005/12/6, paul sorenson [EMAIL PROTECTED]:
Return something that can hold more than one value, eg:
calculate - function(x, y) {
list(a=x+y, b=x-y)
}
David Hajage wrote:
Thank you for your answer.
Hello,
I'm a new user...
I have a function :
calculate - function(x,y)
{
z - x + y
}
I would like to use the result (z) with another function :
recalculate - function(...)
{
a - z^2
}
But R says that z does not exist...
How can I use z in an another function ?
Thank you
First of all, you might try reading the manual.
Second, you might try something like this:
calculate - function(x,y)
{
z - x + yz
}
recalculate(z)
{
a - z^2
a
}
z - calculate(x, y)
recalculate(z)
You need to return some value from your functions,
and you need to assign that
Thank you for your answer.
And what if my first function gives 2 results :
calculate - function(x,y)
{
a - x + y
b - x - y
}
How can I use both a and b in a new function ?
2005/12/6, Sarah Goslee [EMAIL PROTECTED]:
First of all, you might try reading the manual.
Second, you
Her you just make the functions.
R calculate - function(x,y){z - x + y}
R recalculate - function(z){a - z^2}
You should run the functions, by take z as output for the first function
ans z as input for the next function:
R calculate - function(x,y){z - x + y}
R recalculate - function(z){a - z^2}
calculate - function(x,y)
{
a - x + yb - x - y
list(a=a, b=b)
}
myresult - calculate(x, y)
myresult$a
myresult$b
Please at least read the Introduction to R at
http://www.r-project.org/
It covers all of this very basic material.
Sarah
--
Sarah Goslee
http://www.stringpage.com
David Hajage wrote:
Hello,
I'm a new user...
I have a function :
calculate - function(x,y)
{
z - x + y
# insert:
z
}
I would like to use the result (z) with another function :
recalculate - function(...)
{
a - z^2
# insert:
a
}
Type:
On 06-Dec-05 David Hajage wrote:
Hello,
I'm a new user...
I have a function :
calculate - function(x,y)
{
z - x + y
}
I would like to use the result (z) with another function :
recalculate - function(...)
{
a - z^2
}
But R says that z does not exist...
Return something that can hold more than one value, eg:
calculate - function(x, y) {
list(a=x+y, b=x-y)
}
David Hajage wrote:
Thank you for your answer.
And what if my first function gives 2 results :
calculate - function(x,y)
{
a - x + y
b - x - y
}
How can I use
Hi all
I have just started using R (1.8.1) on Mac OS X am very excited about the
potential of such a flexible system with such good graphics potential so
many useful packages available. Congratulations to all the developers I
hope to be contributing some packages myself in the near future,
35 matches
Mail list logo