On Thu, 22 Apr 2010, arnhol...@appstate.edu wrote:
I am trying to build a windows 32 bit version of R 2.11.0 from source on a
machine running
windows 7 - 64 bit while running as the machine's administrator.
I am able to run make all recommended...However, once I attempt to build the
bitmap
On Fri, 23 Apr 2010, Worik R wrote:
I am sorry if this is documented in apply's dcumentation or completely
obvious, I could not find or work it out.
Well, try
?apply
and focus on the 'Value:' section, first para.
To me, that behavior seems consistent with other functions in
the
Something like this?
# Remove everything after ; to give the status
status- sub(';.*$', '', data$cancer.problems)
# Remove everything before the last ; to give tissue
# In case a no ; in the string this goes wrong; correct
tissue- sub('^.*;[ \n]*', '', data$cancer.problems)
tissue[!
Hi Paul,
Paul Miller wrote:
Hello Everyone,
My company purchased S-Plus before it was bought out by Tibco. My understanding is that we own version 7.0 outright.
So far, I've been learning in R but thought I might also try working in S-Plus. My understanding is that S-Plus has some useful
When you just want to calculate the probability of belong to class A
or B of a new observation xi and do not have to do any new model
estimations or other analyses, the easiest way is probably to write
the estimated coefficients to a text write and read them in in your
java/c/whatever program and
On Thu, Apr 22, 2010 at 7:20 PM, mhalsham mhals...@bradford.ac.uk wrote:
Ok sorry for bad explanation from my side
What I want. I have a txt file name is (table3.txt) this file contains 1293
rows and some of these row will have 1 column and some of them will have up
to may be 40 column. For
When I try it, I do not get a crash but an error message:
1 0.5Error in `coef-.corSpatial`(`*tmp*`, value = c(0, 0, 0)) :
Cannot change the length of the parameter after initialization
Even trying several times I always get the error and cannot reproduce
any crash.
Best wishes,
Uwe
On
On 22/04/2010 2:03 PM, arnhol...@appstate.edu wrote:
I am trying to build a windows 32 bit version of R 2.11.0 from source on a
machine running
windows 7 - 64 bit while running as the machine's administrator.
I am able to run make all recommended...However, once I attempt to build the
bitmap
We can use strapply in the gsubfn package. It extracts
fields matching regular expressions.
strapply extracts the parenthesized part of the regular
expression (or the entire regular expression if nothing
parenthesized), applies the function to it and returns
the result. See
Increase the margins (see argument mar in ?par) and plot the legend
outside after allowing to do so by changing the clipping region by
par(xpd=TRUE).
Uwe Ligges
On 22.04.2010 22:35, Nilza BARROS wrote:
Dear R users,
I have been plotting several graphics in only one page. I intend to plot
Right, unfortunately package gtools does not pass the checks under
R-2.11.0 and hence is not distributed as a binary via CRAN.
Either convince the maintainer (CCing Greg) to fix the bug or try to
install the package yourself from sources (and fix the bug yourself, if
it matters for you).
Hi All!
I know that very primitive question, but that to grant it, that the drawing
on the screen divided up onto which part draw
for example:
layout(matrix(1:4,ncol=2, byrow=T))
plot(x, y, ...) --- 1. screen
plot(y, z, ...) --- 2. screen
etc...
Thank you!
[[alternative HTML
Hi
Yes I have managed to read the file (Table2.txt)
The command I have used
a- read.table(table3.txt, fill=TRUE, header=FALSE)
If I read the first row the result output will be like that.
a[1,]
Result would be
V1 V2 V3V4V5 V6 V7 V8V9 V10 V11 V12
1
Hi there,
is it possible in r to use the Initial partition established by using the
HAC partition with the kmean clustering?
E.g. perform the HCA, write the cluster affiliation in a seperate column
DF$hclus.label - assignCluster(model.matrix(~-1 + A15 + B12 + C70 + E14 +
+ H61 + N56 + P48
Hi David,
you could use a mix of plyr and reshape:
# Example datasets
# Input
propsum - data.frame(coverClass=c(C, G, L, O, S),
R209120812=c(NA, 0.49, 0.38, 0.04, 0.09),
R209122212=c(0.05, 0.35, 0.41, 0.09, 0.10))
library(plyr)
xpropsum -
Hi
r-help-boun...@r-project.org napsal dne 23.04.2010 04:05:00:
Hi all,
I have a dataset similar to the following
Name Date Value
A 1/01/2000 4
A 2/01/2000 4
A 3/01/2000 5
A 4/01/2000 4
A 5/01/2000 1
B 6/01/2000 2
B 7/01/2000 1
B 8/01/2000 1
On Fri, Apr 23, 2010 at 11:14 AM, mhalsham mhals...@bradford.ac.uk wrote:
Hi
Yes I have managed to read the file (Table2.txt)
The command I have used
a- read.table(table3.txt, fill=TRUE, header=FALSE)
If I read the first row the result output will be like that.
a[1,]
Result would be
Thanks so much for that elegant solution... it works extremely well.
I'm now trying to add lines, points and polygons to show transects,
locations of the original data points and the bounding polygon of the study
area. Presumably I can use panel.polygonsplot, panel.pointsplot for this?
--
On Fri, Apr 23, 2010 at 4:05 AM, chrisli1223
chri...@austwaterenv.com.au wrote:
Hi all,
I have a dataset similar to the following
Name Date Value
A 1/01/2000 4
A 2/01/2000 4
A 3/01/2000 5
A 4/01/2000 4
A 5/01/2000 1
B
Just in case anyone else hits this. I just installed R 11.0 alongside R
10.1.0 (off my D: drive in D:\R\... but I think that's irrelevent) and
all went well, I selected my nearest CRAN mirror (Bristol is the one I
like) and getting the selection list seemed to take ages though it did
come
Hi Gustaf
Thank you for the help, but I have over 1000 records, I can’t write it all
in the code I didn’t get the code I’m sorry.
Regards
Mohamad Al-shammari
--
View this message in context:
http://r.789695.n4.nabble.com/R-loop-tp1979620p2051726.html
Sent from the R help mailing list archive
Hi there,
is it possible in r to use the Initial partition established by using the
HAC partition with the kmean clustering?
E.g. perform the HCA, write the cluster affiliation in a seperate column
DF$hclus.label - assignCluster(model.matrix(~-1 + A15 + B12 + C70 + E14 +
+ H61 + N56 + P48 +
Due to the new R 2.11 release, I want to implement Dirk's suggestion
herehttp://stackoverflow.com/questions/1401904/painless-way-to-install-a-new-version-of-r
.
So for that I am asking - How can I (permanently) change R's library path?
(The best solution would be one that can be run from within
Try this:
DF[!duplicated(DF[-2]),]
On Thu, Apr 22, 2010 at 10:05 PM, chrisli1223
chri...@austwaterenv.com.au wrote:
Hi all,
I have a dataset similar to the following
Name Date Value
A 1/01/2000 4
A 2/01/2000 4
A 3/01/2000 5
A 4/01/2000
h... mine crashes even if I place:
debug(getS3method(coef-,corSpatial))
before the model run. Below is what R spits out after the seg fault. It's
never the same twice. I hope someone else out there will try the code
because I really do think this is more than an error.
mymodel - lme(fixed
Hi all,
Inside:
help(Startup)
There is an example suggesting:
## Example .Renviron on Windows
R_LIBS=C:/R/library
If I update the file:
Rprofile.site
in etc
When I start R I get:
Error: 16:10: unexpected '/'
16: R_LIBS=C:/
^
Of course, if I put it in quotes it works, But I
Dear group,
Here is my df, trades1 :
trades1 -
structure(list(Instrument.Long.Name = c(CORN, CORN, CORN,
CORN, CORN, SOYBEANS, SOYBEANS, SOYBEANS, SOYBEANS,
SOYBEANS, SOYBEANS, STANDARD LEAD USD, STANDARD LEAD USD,
SPCL HIGH GRADE ZINC USD, SPCL HIGH GRADE ZINC USD, SPCL HIGH GRADE
On Apr 22, 2010, at 2:58 PM, alex46015 wrote:
SAS can merge two data set A, B in different way, A or B, A and B,
A not B,
Can R merge function do the same way?
Yes.
Thanks
--
View this message in context:
Hello Michael,
I ran your code (from your email ~19 hours ago). I believe I had the
same result as Uwe. It certainly did not crash. Here is the output
from debug right before it reported the error:
debug: coef(object[[i]]) - value[parMap[, i]]
Browse[3]
Error in `coef-.corSpatial`(`*tmp*`,
On Fri, Apr 23, 2010 at 2:00 PM, arnaud Gaboury
arnaud.gabo...@gmail.com wrote:
Dear group,
2,421.5000, 2,448.5000, 1,380., 1,383., 1,383.,
1,386., 1,386., 1,388., 1,389., 1,389.
trades1=read.csv2(LSCTrades.csv,dec=.,sep=,,as.is=T,h=T,skip=1)
The csv
Thanks for your help, joshua and uwe!
object[[i]] should have class c(corSPT,corSpatial,corStruct). It looks
like when you and Uwe run this, coef hands it off to coef.corSpatial whereas
mine hands it off the coef.corSPT.
i am so confused...
On Fri, Apr 23, 2010 at 9:06 AM, Joshua Wiley
Hi guys of the R-Help-Team!br /br /First of all - you do a great job!br
/I've found a lot of your mails in the internet. So I thought it would be a
good idea to ask you a question about R.br /br /R is new to me, so sorry,
if the question is too simple :)br /br /I have a matrix.br /I can make a
2D
On Apr 23, 2010, at 8:00 AM, arnaud Gaboury wrote:
Dear group,
Here is my df, trades1 :
trades1 -
structure(list(Instrument.Long.Name = c(CORN, CORN, CORN,
CORN, CORN, SOYBEANS, SOYBEANS, SOYBEANS, SOYBEANS,
SOYBEANS, SOYBEANS, STANDARD LEAD USD, STANDARD LEAD USD,
SPCL
Hi all,
I'd want to plot a segment from a line specified by slope and intercept.
I want to plot this line between two limits, x1 and x2, without imposing
these limits to the hole plot as it is the case with
scale_x_continuous(limits=c(x1,x2)) or with xlim and ylim.
Any idea?
Arnaud Chozo
On Apr 23, 2010, at 8:22 AM, Tal Galili wrote:
Due to the new R 2.11 release, I want to implement Dirk's suggestion
herehttp://stackoverflow.com/questions/1401904/painless-way-to-install-a-new-version-of-r
.
So for that I am asking - How can I (permanently) change R's library
path?
Michael,
Good news (relatively speaking). I ran your code again, but this time
I actually looked at what I pasted in and noticed some errors. When I
actually pulled your code into a text editor, there was an issue with
one of the comments wrapping to the next line without a new #
(probably an
Am 23.04.2010 14:54, schrieb Tal Galili:
Hi all,
Inside:
help(Startup)
There is an example suggesting:
## Example .Renviron on Windows
R_LIBS=C:/R/library
If I update the file:
Rprofile.site
in etc
You probably meant to put it in Renviron.site rather than Rprofile.site ...
Uwe Ligges
Hi:
Does this work for you?
df - read.table(textConnection(
pool age age2 density body_length body_length2
11 7.4 11.3 25 0.887 1.322550
22 7.4 11.3 100 0.921 1.152000
33 7.4 11.3 250 0.896 1.136300
44 7.4 11.3 75 0.723
There is no perm.test function in base R, is this from a package? Which
package? What does the documentation for that function/package say?
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111
-Original Message-
From:
Look at the grconvertX and grconvertY functions.
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
project.org] On Behalf Of Nilza BARROS
Use geom_segment and calculate the end points yourself.
Hadley
On Fri, Apr 23, 2010 at 8:38 AM, arnaud chozo arnaud.ch...@gmail.com wrote:
Hi all,
I'd want to plot a segment from a line specified by slope and intercept.
I want to plot this line between two limits, x1 and x2, without imposing
On 23/04/2010 8:51 AM, Ariane C. Böhm wrote:
Hi guys of the R-Help-Team!br /br /First of all - you do a great job!br
/I've found a lot of your mails in the internet. So I thought it would be a
good idea to ask you a question about R.br /br /R is new to me, so sorry,
if the question is too simple
Dear All,
I have a fraction of 60./(220.*6.), which equals 1./22.
My question is how to cancel the fraction so I actually get 1/22 (actually I
just need the factor 22) using R. I tried it with prime factor decomposition
from the package schoolmath:
require(schoolmath)
Loading required package:
Dear R list,
I have an event history data set that is structured like this:
Legislative act Discussion Agreement Time Event
Act12006-05-30 2006-06-19 201
Act22004-03-01 2004-06-14 105 1
.
.
.
I have
If you are talking about changing from a wide format to long take a look at
?reshape
---
Josh
On Fri, Apr 23, 2010 at 7:09 AM, Thomas Jensen
thomas.jen...@eup.gess.ethz.ch wrote:
Dear R list,
I have an event history data set that is structured like this:
Legislative act Discussion
OK, now it sounds like the behavior is exactly the same for both of us. I
think Gmail sometimes gobbles up newline characters, and that must have
messed up the code I sent out before.
Someone pointed out to me that a similar problem was identified before:
On Tue, Apr 20, 2010 at 9:03 AM, Rajarshi Guha rajarshi.g...@gmail.com wrote:
Hi, I've been struggling with a lattice visualiation. I have a
data.frame with 4 columns. What I'd like to have is a set of 3 panels.
Ecah panel will have the first column plotted against serial number
and then will
On Wed, Apr 21, 2010 at 8:55 PM, David Winsemius dwinsem...@comcast.net wrote:
On Apr 21, 2010, at 9:51 PM, zhenjiang xu wrote:
I tried that. It seems the bar width is already maximized, although there
is a lot of space between groups of bars. Thank you anyway.
I apologize. It was
Peter, thanks, but that doesn't work. Did I missed something?
library(lattice)
mylist - list(c(0,30), c(40,80), )
barchart(yield ~ variety | site,data=barley, groups = year, layout =
c(1,6),auto.key = list(points = FALSE, rectangles = TRUE, space =
right),ylab = Barley Yield
Dear R users,
I have a simple question (probably) but i couldnt how to find a solution for
that.
i am using 2 digit industry codes and 3 digit industry codes for my model, and
i need to create dummies for the industries. The case is simple for the 2-digit
industries since there are not that
probably yes. I plotted each row individually instead. Thanks
On Fri, Apr 23, 2010 at 11:14 AM, Deepayan Sarkar deepayan.sar...@gmail.com
wrote:
On Wed, Apr 21, 2010 at 8:55 PM, David Winsemius dwinsem...@comcast.net
wrote:
On Apr 21, 2010, at 9:51 PM, zhenjiang xu wrote:
I tried
On Wed, Apr 21, 2010 at 4:02 PM, David Winsemius dwinsem...@comcast.net wrote:
On Apr 21, 2010, at 6:58 PM, David Winsemius wrote:
Sarkar offers a worked example of taking user input regarding location for
locating a grid viewport outside the plot area.
On Apr 23, 2010, at 11:26 AM, serdal ozusaglam wrote:
Dear R users,
I have a simple question (probably) but i couldnt how to find a
solution for that.
i am using 2 digit industry codes and 3 digit industry codes for my
model, and i need to create dummies for the industries. The case is
I'm sorry, I do not think I understand exactly what your data is and
what your end goal is. Are all your meeting dates together (i.e.,
they need to be split apart into separate cells)?
On Fri, Apr 23, 2010 at 8:18 AM, Thomas Jensen
thomas.jen...@eup.gess.ethz.ch wrote:
Thanks Josh,
But I am
On Thu, Apr 22, 2010 at 3:16 PM, Giles gilescr...@verizon.net wrote:
Thank you Burt Gunter and David Winsemius,
I confirmed David's comment.
One must use type=c(p,g)
in order to get both the grid and points.
So, to use densityplot well,
we must be quite aware of the options
for
Here is a different approach that may work for you, or give you a starting
place:
library(MASS)
fractions(60/(220*6))
[1] 1/22
Hope this helps,
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111
-Original Message-
Hi,
I have a data.frame object:
a.df
Methods Score
1 Northern 1.3544227
2 Northern 0.8302436
3 RT-PCR 1.0011360
4 RT-PCR 1.1149423
If I write it out with write.table,
write.table(a.df, file = 'data.txt', quote = FALSE, sep = '\t', row.names
= FALSE)
the data.txt is looks like:
Dear Dr. Sarkar,
When I try to run the codes, I found the following problem:
h- sample(1:14, 319, rep=T)
c- sample(1:14, 608, rep=T)
n- sample(1:14, 1140, rep=T)
vt-c(h, c, n)
ta-rep(c(h, c, n), c(319, 608, 1140))
to-data.frame(vt,ta)
library(lattice)
Attaching package: 'lattice'
Works for me. Did you replace the '' in mylist()
with appropriate c(,) code? For example:
mylist - list(c(0,30), c(40,80), c(0,50),
c(0,50), c(0,50), c(0,50))
-Peter Ehlers
On 2010-04-23 9:22, zhenjiang xu wrote:
Peter, thanks, but that doesn't work. Did I missed
On Apr 23, 2010, at 11:32 AM, Deepayan Sarkar wrote:
On Wed, Apr 21, 2010 at 4:02 PM, David Winsemius dwinsem...@comcast.net
wrote:
snipped earlier code
Furthermore when I try:
mtext(date(), side=3, line=4, adj=0)
I get a datetime stamp even though I am mixing graphic
hello,
krebs (1995) states MH as prob., but yes it's rather a ratio of probs.
at each site i had 4 blocks with 2 treatments (treat vs. control) - after
treating i looked for similarity between each of those pairs.
it is of interest if changes in similarity due to treatment differ between
Dear group,
Here is my df :
df -
structure(list(DESCRIPTION = c(PRM HGH GD ALUMINIUM USD 09/07/10 ,
PRM HGH GD ALUMINIUM USD 09/07/10 , PRIMARY NICKEL USD 04/06/10
), CREATED.DATE = structure(c(18361, 18361, 18325), class = Date),
QUANITY = c(-1L, 1L, 1L), CLOSING.PRICE =
with(df, substr(DESCRIPTION, start=1, stop=nchar(DESCRIPTION) - 10))
?nchar
On 4/23/2010 11:57 AM, arnaud Gaboury wrote:
Dear group,
Here is my df :
df -
structure(list(DESCRIPTION = c(PRM HGH GD ALUMINIUM USD 09/07/10 ,
PRM HGH GD ALUMINIUM USD 09/07/10 , PRIMARY NICKEL
Use regular expressions:
df$newDesc - sub((\\d+/\\d+/\\d file://d+///d+///d+), '',
df$DESCRIPTION)
df
DESCRIPTION CREATED.DATE QUANITY
CLOSING.PRICEnewDesc
1 PRM HGH GD ALUMINIUM USD 09/07/102020-04-09 -1 2,415.90 PRM
HGH GD ALUMINIUM
The perm.test function in exactRankTests makes reference to the StatXact
manual, so presumably that would have the exact details. The details section
of the help file refers to converting real values to integers, so I expect that
it is not doing what many of us think of as a permutation test,
Hi List,
I have a question about uninstalling and installing R on linux, which
I am new to.
sessionInfo()
R version 2.10.1 (2009-12-14)
x86_64-unknown-linux-gnu
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=C
Hi,
On Fri, Apr 23, 2010 at 11:57 AM, arnaud Gaboury
arnaud.gabo...@gmail.com wrote:
Dear group,
Here is my df :
df -
structure(list(DESCRIPTION = c(PRM HGH GD ALUMINIUM USD 09/07/10 ,
PRM HGH GD ALUMINIUM USD 09/07/10 , PRIMARY NICKEL USD 04/06/10
), CREATED.DATE = structure(c(18361,
Greg has provided a solution. Just to answer the question of
why set_complement() is not doing what you think it should:
You need to change your *vectors* nom and denom to *sets*
with as.set().
-Peter Ehlers
On 2010-04-23 9:42, Greg Snow wrote:
Here is a different approach that may work for
On Fri, 23 Apr 2010, Greg Snow wrote:
The perm.test function in exactRankTests makes reference to the StatXact
manual, so presumably that would have the exact details. The details
section of the help file refers to converting real values to integers,
so I expect that it is not doing what
TY Steve, using regular expression does the job nicely. I need now to fully
understand your code and learn more about what a regular expression is. Any
good ref is welcome.
-Original Message-
From: Steve Lianoglou [mailto:mailinglist.honey...@gmail.com]
Sent: Friday, April 23, 2010
Thanks a lot!
I had not heard about the fractions() function before, it is very useful!!
Cheers!
--
View this message in context:
http://r.789695.n4.nabble.com/cancelling-in-fraction-tp2062218p2062475.html
Sent from the R help mailing list archive at Nabble.com.
And even then I'm guessing the the set complement of {2,2,2, 3,5,11}
with {2,2, 11} should not be {2, 3, 3} if R's versions of sets
works the way I was taught in high school, anyway.
x -set(2,2,2, 3,5,11) ; y -set(2,2, 11)
x
{2, 3, 5, 11} # because {2,2} == {2} in set theory
y
Thanks Uwe.
Indeed - it now worked.
Contact
Details:---
Contact me: tal.gal...@gmail.com | 972-52-7275845
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
www.r-statistics.com (English)
On 23.04.2010 18:10, Juliet Hannah wrote:
Hi List,
I have a question about uninstalling and installing R on linux, which
I am new to.
sessionInfo()
R version 2.10.1 (2009-12-14)
x86_64-unknown-linux-gnu
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8
Hi All!
I have 2 plain questions:
1.)
I know that very primitive question, but that to grant it, that the drawing
on the screen divided up onto which part draw
for example:
layout(matrix(1:4,ncol=2, byrow=T))
plot(x, y, ...) --- 1. screen
plot(y, z, ...) --- 2. screen
etc...
2.)
How I
Yes. I put the real ranges instead of '...'. But I tried the following code
and it works. This is great! Thank you. Previously I thought you said ylim
was put inside the scales().
library(lattice)
barchart(yield ~ variety | site,data=barley, groups = year, layout =
c(1,6),auto.key = list(points =
On Fri, Apr 23, 2010 at 12:28 PM, arnaud Gaboury
arnaud.gabo...@gmail.com wrote:
TY Steve, using regular expression does the job nicely. I need now to fully
understand your code and learn more about what a regular expression is. Any
good ref is welcome.
Skimming through the help pages for
This has not worked for me, meaning I can still use R, so instead I
removed the directory
rm -fR R-2.10.1
Is one method preferable to another. And what am I doing incorrectly
with make uninstall?
Don't know, probably not many are using it and it may be fairly untested.
If not many are
Does anyone know of a method that I can get the intersection where the red and
blue curves meet i.e. the value on the x-axis?
x - 1:10
y - 10:1
plot(x,y)
abline(lm(y~x),col=blue)
abline(h=2.5,col=red)
Muhammad
__
R-help@r-project.org mailing list
Thanks everyone for the replies, that sure cleared up some things for me.
On Fri, Apr 23, 2010 at 9:11 AM, Jan van der Laan
djvanderl...@gmail.com wrote:
When you just want to calculate the probability of belong to class A
or B of a new observation xi and do not have to do any new model
On 23.04.2010 19:02, Juliet Hannah wrote:
This has not worked for me, meaning I can still use R, so instead I
removed the directory
rm -fR R-2.10.1
Is one method preferable to another. And what am I doing incorrectly
with make uninstall?
Don't know, probably not many are using it and it
On Apr 23, 2010, at 1:06 PM, Muhammad Rahiz wrote:
Does anyone know of a method that I can get the intersection where
the red and blue curves meet i.e. the value on the x-axis?
x - 1:10
y - 10:1
plot(x,y)
abline(lm(y~x),col=blue)
abline(h=2.5,col=red)
Two ways :
xy - lm(y~x)
xyf -
Dear R-helpers,
I need two simple functions, I guess they exist in R, but I am unable
to find them.
The first function should cyclically rotate elements in a vector.
(guyrot in the package wavethresh should do it, but there's some
problem with its loading)
The second function should rotate points
Hi, Deepayan,
This is exactly what I want. However I couldn't find page argument or
default.args when I look up the documentation. I just want to learn a bit
more how to use these arguments. Thanks again.
Jun
On Fri, Apr 23, 2010 at 10:32 AM, Deepayan Sarkar deepayan.sar...@gmail.com
wrote:
On 2010-04-23 10:53, zhenjiang xu wrote:
Yes. I put the real ranges instead of '...'. But I tried the following code
and it works. This is great! Thank you. Previously I thought you said ylim
was put inside the scales().
I did say that and I was wrong. If you put it
inside scales() as I
Serdal,
I think what David is saying: just take those 2 variables you have and
specify them as factors. Assuming your data frame is called MyData:
MyData$Ind_1-as.factor(MyData$Ind_1)
MyData$Ind_2-as.factor(MyData$Ind_2)
This way R will know they are not numeric variables but categorical
On Apr 23, 2010, at 1:54 PM, Ondřej Mikula wrote:
Dear R-helpers,
I need two simple functions, I guess they exist in R, but I am unable
to find them.
The first function should cyclically rotate elements in a vector.
(guyrot in the package wavethresh should do it, but there's some
problem with
Your question is unclear.
On Fri, Apr 23, 2010 at 5:45 AM, Usman Munir
usman.muni...@googlemail.com wrote:
Hi
Suppose I have a matrix (cohort are rows and years are columns)
[2000] [2001] [2002] [2003]
[C1] 0.01 0.03 0.02 0.09
[C2] 0.06 0.05 0.07 0.11
On 2010-04-23 11:46, David Winsemius wrote:
On Apr 23, 2010, at 1:06 PM, Muhammad Rahiz wrote:
Does anyone know of a method that I can get the intersection where the
red and blue curves meet i.e. the value on the x-axis?
x - 1:10
y - 10:1
plot(x,y)
abline(lm(y~x),col=blue)
Hi List
I have the next code and the error. I have try with other codes and I have
the same problem.
reut21578 - system.file(texts, crude, package = tm)
(r - Corpus(DirSource(reut21578), readerControl = list(reader =
readReut21578XMLasPlain)))
A corpus with 20 text documents
(r -
Hello,
Could you help me to find the function which gives a vector that indicate
the element in a vector A that are not in a vector B.
Best Regards
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
Thanks Josh,
But I am not sure if the reshape function can create new rows based on
the meeting variable. For the second act there are three meetings, i.e.
one meeting between discussion and agreement, and this should be entered
as a separate row.
Best, Thomas
On Fri, 2010-04-23 at 07:45 -0700,
Thanks for all your reply. I am a biologist and only start to use R
recently. Yes, It is my fault. I assume that perm.test is a very popular
method. Thanks for Dennis to point out that it is in exactRankTests package.
I did not realize that there are so many R package. I guess I did not ask
the
Hi all,
Here is what I am trying to do. It doesn't seem like a complex command but I
am a beginner at R.
Lets say I have this variable:
test$v1 = rep(c(ACAM2343, ACAM3838, ACPP2598, ACPA8355, DEAM234,
DEPA38485), each = 10)
1. if test$v1 character string contains PP or PA set test$v2 value to
I have string as follows:v:\work\gene
however, i can not write this as character string in R
what i did is:
path- as.character(v:\work\gene)
but it seems that \ is eliminated:
Warning messages:
1: '\w' is an unrecognized escape in a character string
2: '\g' is an unrecognized escape in a
Hi!
Is there any easy/fast way to combine vectors with restrictions?
Example:
a=c(1,2,3), b=c(4,5,6), c=c(7,8,9)
I want all combinations of this 3 vectors with length=2.
Like this:
1,4
1,5
1,6
1,7
1,8
1,9
2,4
2,5
2,6
2,7
... and so on.
Thanks in advance.
[[alternative HTML version
attached is the data set which generates the rgui.exe cpu loop...
here are commands :
library(rpart)
train-read.csv(traindata.csv,header=T)
y-as.numeric(train[,18])
x-train[,1:3]
fit-rpart(y~.,x)
On Thu, Apr 22, 2010 at 9:25 AM, Terry Therneau thern...@mayo.edu wrote:
--- Begin included
Hello,
Within the development of a package, I would need to build a specific method
for the pmin function.
I first make pmin generic
pmin - function (..., na.rm = FALSE) UseMethod(pmin)
pmin.default - base::pmin
Now, within my new method, I would like to change the arguments in .
Please see the FAQ on R for Windows2.16 where the distinction between the
standard file
separator / and the usual Windows file separator \ is discussed.
On Fri, Apr 23, 2010 at 12:37 PM, weix1 weix1_2...@hotmail.com wrote:
I have string as follows:v:\work\gene
however, i can not write this
Hi Cláudio,
Try this:
require(gtools)
combinations(10, 2)
combinations(10, 2, repeats = TRUE)
HTH,
Jorge
2010/4/23 Cláudio Sá
Hi!
Is there any easy/fast way to combine vectors with restrictions?
Example:
a=c(1,2,3), b=c(4,5,6), c=c(7,8,9)
I want all combinations of this 3 vectors
1 - 100 of 144 matches
Mail list logo