On 11/21/2009 11:32 PM, Stefan Evert wrote:
My hunch is that Python and R run at about the same speed, and both
use C libraries for speedups (Python primarily via the numpy package).
That's not necessarily true. There can be enormous differences between
interpreted languages, and R appears
I have created a function to do something:
i - factor(sample(c(A, B, C, NA), 793, rep=T, prob=c(8, 7, 5,
1)))
k - factor(sample(c(X, Y, Z, NA), 793, rep=T, prob=c(12, 7, 9,
1)))
mytable - function(x){
xtb - x
btx - x
# do more with x, not relevant here
cat(The table has been
hi,
Try making your last line
invisible( list(table=xtb, elbat=btx) )
HTH,
baptiste
2009/11/22 Soeren.Vogel soeren.vo...@eawag.ch:
I have created a function to do something:
i - factor(sample(c(A, B, C, NA), 793, rep=T, prob=c(8, 7, 5, 1)))
k - factor(sample(c(X, Y, Z, NA), 793, rep=T,
Sure, badly written R code does not perform as well as well written
python code or C code. On the other hand badly written python code
does not perform as well as well written R code.
What happens when you try one of these :
sum - sum( 1:N )
R runs out of memory and crashes. :-) I didn't
On Sat, Nov 21, 2009 at 02:01:07PM -0800, frenchcr wrote:
i just found the following list, i wondered if anybody could add to this as i
have to characterize a large data set and am new to R...the list below was
so helpfulcan you add to this???
Just to forestall confusion amongst those
Thank you Gabor, Romain and Stefan.
Gabor this looks like really interesting for speeding up loops. I just have
to install it and add jit(1) before a loop ! Is the result faster than
Python ?
I have seen the name of L. Tierney among the contributors. I guess it is
good for MCMC :-)
Best,
Jean
On 22/11/2009 1:07 AM, Marc Chiarini (Tufts) wrote:
Dear R Community:
Recently, I have managed to plot some really useful graphs of my
research data using persp(). I have even figured out how to overplot
rectangular regions (corresponding to submatrices) with a different
color. This is
Here is one more function for the list:
whatis
from the package:
YaleToolkit
See:
http://cran.r-project.org/web/packages/YaleToolkit/
I also like using:
ls()
ls.str()
And sometimes (for just one variable):
stem (which can be viewd as an ascii histogram)
Wonderful question and list, I hope for
A few more came to mind:
VIM package (for exploring missing data):
http://cran.r-project.org/web/packages/VIM/index.html
http://bm2.genes.nig.ac.jp/RGM2/index.php?scope=namequery=VIM
And the basic commands:
* edit (for seeing the dataframe as in a spreadsheet)
And the commands:
* head (and)
On Nov 22, 2009, at 6:26 AM, soeren.vo...@eawag.ch wrote:
I have created a function to do something:
i - factor(sample(c(A, B, C, NA), 793, rep=T, prob=c(8, 7, 5,
1)))
k - factor(sample(c(X, Y, Z, NA), 793, rep=T, prob=c(12, 7,
9, 1)))
mytable - function(x){
xtb - x
btx - x
# do more
On 11/21/09, frenchcr frenc...@btinternet.com wrote:
are there any more packages that help decribe and explore data sets
See numSummary() in Rcmdr.
Liviu
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
On Nov 22, 2009, at 7:07 AM, Duncan Murdoch wrote:
On 22/11/2009 1:07 AM, Marc Chiarini (Tufts) wrote:
Dear R Community:
Recently, I have managed to plot some really useful graphs of my
research data using persp(). I have even figured out how to
overplot rectangular regions
On Nov 22, 2009, at 9:18 AM, David Winsemius wrote:
On Nov 22, 2009, at 7:07 AM, Duncan Murdoch wrote:
On 22/11/2009 1:07 AM, Marc Chiarini (Tufts) wrote:
Dear R Community:
Recently, I have managed to plot some really useful graphs of my
research data using persp(). I have even figured
I use the following code to generate a matrix of factors. I'm
wondering if there is a way to make it more general so that I can have
any number of factors (not necessarily 5).
a=3
b=4
c=5
d=6
e=7
A=1:a
B=1:b
C=1:c
D=1:d
E=1:e
X=matrix(nr=a*b*c*d*e,nc=5)
for(i_a in 1:a-1) {
for(i_b in 1:b-1)
Hi,
I have a experiment with block, plots, sub-plots, and sub-sub-plots
with repeated measures and 3 factors (factorial design) when we have
been observed diameter (mm), high (cm) and leaves number (count).
However, we don't have one treatment in one factor, so, my design is
unbalanced.
On a
Erin Hodgess wrote:
Dear R People:
I just installed R-2.10.0 on Karmic Koala Ubuntu, via the sudo apt-get
install r-base, etc.
However, when I try to install an Rcmdr Plugin package, I get the following:
install.packages(RcmdrPlugin.qual,depen=TRUE)
Warning in
I know that R is a dynamic programming language. But I'm wondering if
there is a way to make the assignment in a for-loop not affect
variables outside the loop.
n=10
for(i in 1:n){
+ n=3
+ print(n)
+ }
[1] 3
[1] 3
[1] 3
[1] 3
[1] 3
[1] 3
[1] 3
[1] 3
[1] 3
[1] 3
print(n)
[1] 3
Hi,
Try this,
do.call(expand.grid, lapply(7:3, seq, from=1))
HTH,
baptiste
2009/11/22 Peng Yu pengyu...@gmail.com:
I use the following code to generate a matrix of factors. I'm
wondering if there is a way to make it more general so that I can have
any number of factors (not necessarily
Ishwar Bridgelal wrote:
Hello,
We are looking to adjust the font size of the axis annotation on the graph
that results from use of the metaplot() function. Metaplot seems to respond
to cex and cex.lab to change those graphical parameters, but it doesn't
respond to cex.axis. Is there a way to
Either use local as in:
n=10
local(for(i in 1:n){
n=3
print(n)
})
print(n)
or write a function that is evaluated in its own environment:
n=10
MyLoopFoo - function(){
for(i in 1:n){
n - 3
print(n)
}
}
MyLoopFoo()
print(n)
Uwe Ligges
Peng Yu wrote:
I have the following code. I'm wondering why summary() doesn't show F
value and Pr?
Rscript multi_factor.R
a=3
b=4
c=5
d=6
e=7
A=1:a
B=1:b
C=1:c
D=1:d
E=1:e
X=matrix(nr=a*b*c*d*e,nc=5)
colnames(X)=LETTERS[1:5]
for(i_a in 1:a-1) {
+ for(i_b in 1:b-1) {
+ for(i_c in 1:c-1) {
+
masterinex wrote:
Hi guys ,
Im trying to do principal component analysis in R . There is 2 ways of doing
it , I believe.
One is doing principal component analysis right away the other way is
standardizing the matrix first using s = scale(m)and then apply principal
component analysis.
Please help me persuade IT to install R on my computer!
All suggestions welcome.
Our IT department run scared when you mention software that they have no
working experience of.
I need to know the pros and cons of having R on corporate desktops.
Please no funny stuff, this is quite a serious
Hi Torsten,
It would be useful to warn the users that the multivariate normal probability
calculated by pmvnorm using the GenzBretz algorithm is random, i.e. the
result can vary between repeated executions of the function. This would
prevent inappropriate use of pmvnorm such as computing
Many thanks to Dimitris, William and David for very helpful answers which
solved my problem. Being a relatve newb, I am confused by something in the
solutions by Dimitris and David.
#Create a matrix A as follows:
A - matrix(sample(50, 21), 7, 3)
A[sample(21, 5)] - NA;A
[,1] [,2] [,3]
It's hard to read your code, so I won't comment on your specific
example. So when all else fails read the documentation for
?summary.aov:
They have columns ‘Df’, ‘Sum Sq’, ‘Mean
Sq’, as well as ‘F value’ and ‘Pr(F)’ if there are non-zero
residual degrees of freedom.
So if you do
Hi,
If I have 2D data set say (x,y) and I can do scatter plot by using plot(x,y)
command.
How can I add in this scatter plot the equations curve say
2X2 + 3Y2 6X 7Y + 9 = 0.
Regards
Rofizah
[[alternative HTML version deleted]]
__
Stefan Evert wrote:
Sure, badly written R code does not perform as well as well written
python code or C code. On the other hand badly written python code
does not perform as well as well written R code.
What happens when you try one of these :
sum - sum( 1:N )
R runs out of memory and
On 22/11/2009 11:27 AM, Rofizah Mohammad wrote:
Hi,
If I have 2D data set say (x,y) and I can do scatter plot by using plot(x,y)
command.
How can I add in this scatter plot the equations curve say
2X2 + 3Y2 – 6X – 7Y + 9 = 0.
You could do it using contour(), but you should use an equation
On Nov 22, 2009, at 11:11 AM, Jim Bouldin wrote:
Many thanks to Dimitris, William and David for very helpful answers
which
solved my problem. Being a relatve newb, I am confused by something
in the
solutions by Dimitris and David.
#Create a matrix A as follows:
A - matrix(sample(50,
On Nov 22, 2009, at 11:27 AM, Rofizah Mohammad wrote:
Hi,
If I have 2D data set say (x,y) and I can do scatter plot by using
plot(x,y)
command.
How can I add in this scatter plot the equations curve say
2X2 + 3Y2 6X 7Y + 9 = 0.
No executable example... so if you are too lazy to
Hello all,
When using R for some time, one comes across more and more useful functions.
But naturally we can't remember all of them, so I imagine some of you save
these snippets of code.
My question to you is how do you manage that code?
Do you use special software, or archiving system?
Any
Anyway I think it was just a toy example.
Any additionnal information is welcome.
Best,
Jean
2009/11/22 Peter Ehlers ehl...@ucalgary.ca
Stefan Evert wrote:
Sure, badly written R code does not perform as well as well written python
code or C code. On the other hand badly written python
On Nov 22, 2009, at 5:14 AM, frenchcr wrote:
Please help me persuade IT to install R on my computer!
All suggestions welcome.
Our IT department run scared when you mention software that they
have no
working experience of.
I need to know the pros and cons of having R on corporate
Greetings, All!
I want to draw contour lines in red, using contour(), but also
have the contour labels (for the level-values) in black so that
they will stand out against a coloured background already generated
using filled.contour() (the background shades from green at low
levels of risk to red
On Nov 22, 2009, at 10:53 AM, Tal Galili wrote:
Hello all,
When using R for some time, one comes across more and more useful
functions.
But naturally we can't remember all of them, so I imagine some of
you save
these snippets of code.
My question to you is how do you manage that code?
Do
frenchcr frenchcr at btinternet.com writes:
Please help me persuade IT to install R on my computer!
All suggestions welcome.
Our IT department run scared when you mention software that they have no
working experience of.
I need to know the pros and cons of having R on corporate
Many thanks Duncan. I got the plot even I don't really understand the whole
command..
I will study that later..
:-)
Regards
On Sun, Nov 22, 2009 at 4:44 PM, Duncan Murdoch murd...@stats.uwo.cawrote:
On 22/11/2009 11:27 AM, Rofizah Mohammad wrote:
Hi,
If I have 2D data set say (x,y) and
Dear Dr Hiemstra
Thank you for taking the time to reply to my request. You are a very big
help.
regards and many thanks
Sylvestre
On Sat, Nov 21, 2009 at 10:57 AM, Paul Hiemstra p.hiems...@geo.uu.nlwrote:
Hi Anonymous, (Maybe next time include your name)
There are data objects in R that
Hello Marc and Jeff,
Thank you for replying.
I am using winXP, and any recommendation for GUI based system will be
welcomed.
However, my initial question was not how to maintain code that I write
and develop, but rather how to keep a filing system for other peoples code
that I find useful.
Here
On Sun, Nov 22, 2009 at 5:45 PM, Tal Galili tal.gal...@gmail.com wrote:
Hello Marc and Jeff,
Thank you for replying.
I am using winXP, and any recommendation for GUI based system will be
welcomed.
However, my initial question was not how to maintain code that I write
and develop, but
Tal,
I would still use Subversion.
Think of Subversion as as an electronic filing system. You can
organize code into project trees, with sub-folders and so forth.
As you come across code snippets that you want to save, copy them to a
file and commit the file to a project tree or sub-folder,
Marc and Barry, many thanks for your detailed answers.
Marc -
I thank you for the links and ideas. Thanks to your advice I will look more
into SVN in the future, although it sounds on the surface to require some
learning curve, so It could take me some time to start using it.
Barry -
I am
About 2 years ago, Tobias Verbeke asked:
I am looking for a way to capture the binary string that in normal use of
graphics devices will bewritten to (most commonly) a file connection... Is
there a way of capturing the binary `jpeg string'
[generated by jpeg()]?
one approach is the following:
B - cbind(c(1:6, NA), c(1:3, NA,NA,NA, 4), c(1:3, NA,NA, 4,5))
matrix(B[order(col(B), B)], nrow(B), ncol(B))
I hope it helps.
Best,
Dimitris
Jim Bouldin wrote:
And think about the fact that row(A) and apply(is.na(A), 2, cumsum)
will be identical in the case
Marc -
I thank you for the links and ideas. Thanks to your advice I will look more
into SVN in the future, although it sounds on the surface to require some
learning curve, so It could take me some time to start using it.
If you consider investing time to learn a version control system, I
I'm now making some trials with sadmvn which provides results similar
to pmvnorm for optimization but I know compute my OPG estimator of the
covariance matrix with sadmvn (by the way Ravi, when I was refering to
exist in theory I was refering to the theory not to the computation
- would an
Hi all,
any chance that someone got through the installation problem of
mprobit on mac os X?
Stephane
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
I accidentally sent this directly to the author and didn't reply to the
whole list, I am sorry, I need to remember to hit reply all instead of reply
to the R help list, heres my message:
I keep a separate R file of code I commonly use but more generic. So if I am
making contingency tables I say:
Hello,
I do keep a blog with R and non R related snippets of code.
Besides that, something like Alfresco, Plone or other document
management systems could be useful. Maybe the solution is too complex
for a single user, but you can keep tags and other kind of metadata
attached to your code
Stephane -
The check log indicated that malloc.h couldn't be found.
Since that header file is located in /usr/include/sys on Macs,
you could do the following:
1. Download mprobit_0.9-2.tar.gz from your local CRAN mirror.
2. At a terminal, type
PKG_CFLAGS=-I/usr/include/sys R CMD
so under which cases is it better to standardize the data matrix first ?
also is PCA generally used to predict the response variable , should I
keep that variable in my data matrix ?
Uwe Ligges-3 wrote:
masterinex wrote:
Hi guys ,
Im trying to do principal component analysis in
Thank you Dimitris, that solves it exactly! I continue to be amazed at how
a single line of code can be so powerful in R, containing so much
information. Hard as hell to interpret though (for me).
Jim
one approach is the following:
B - cbind(c(1:6, NA), c(1:3, NA,NA,NA, 4), c(1:3, NA,NA,
I have tried your command but without success. Any idea? Here is my log:
Macbook:$ PKG_CFLAGS=-I/usr/include/sys R CMD INSTALL mprobit_0.9-2.tar.gz
* Installing to library ‘/Users/stephaneluchini/Library/R/2.9/library’
* Installing *source* package ‘mprobit’ ...
** libs
** arch - i386
sh: make:
I thought that the last two statements in the following code should
give me the same results (what I want are the factor level means for
factor 'A'). But they don't.
I think that the last statement should give me the correct factor
level means for 'A'. Could somebody let me know what the problems
I 've used tiddlywiki a personal notebook for other things but not for
R. It may be useful to write a css that separates out code from
description.
http://www.tiddlywiki.com/
On 22 Nov 2009, at 11:53AM, Tal Galili wrote:
Hello all,
When using R for some time, one comes across more and
The help page of aov() mentions lme(). Does it refer to lme() in package nlme?
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide
On 22/11/2009 3:38 PM, Peng Yu wrote:
The help page of aov() mentions lme(). Does it refer to lme() in package nlme?
Yes, that's where the link takes you.
Duncan Murdoch
__
R-help@r-project.org mailing list
There were quite a few implicit declaration warning messages when I
followed Phil's advice, but I do seem to get a complete build on a Mac
10.5.8 running 64 bit R 2.10.0.
Have you installed the Xcode package? The gcc-4.2?
--
David.
On Nov 22, 2009, at 3:15 PM, SL wrote:
I have tried your
On Sun, Nov 22, 2009 at 2:42 PM, Duncan Murdoch murd...@stats.uwo.ca wrote:
On 22/11/2009 3:38 PM, Peng Yu wrote:
The help page of aov() mentions lme(). Does it refer to lme() in package
nlme?
Yes, that's where the link takes you.
Should this information be mentioned in aov() help page?
On 21/11/2009, at 12:01 AM, rudi1...@gmx.de wrote:
Hello,
could please somebody help me. I want to apply the mark correlation
function but for radii up to 75 meters (in 75 individual 1m steps).
Unfortunately, There is a sensible default for the values of the
argument r at which the mark
Thanks.
I have 10.5.8 with R 2.10.0 now (i still had 2.9 in my previous
messages). I also have gcc-4.2 installed but no Xcode package.
It still fails to install - can it be the Xcode package? Where can I
find it - I don't have my install CDs with me and will not get them
soon?
Stephane
On 22/11/2009 3:44 PM, Peng Yu wrote:
On Sun, Nov 22, 2009 at 2:42 PM, Duncan Murdoch murd...@stats.uwo.ca wrote:
On 22/11/2009 3:38 PM, Peng Yu wrote:
The help page of aov() mentions lme(). Does it refer to lme() in package
nlme?
Yes, that's where the link takes you.
Should this
for example, i want to sum all the row entries if column 1 takes the value
boy. anyone knows ?
--
View this message in context:
http://old.nabble.com/any-equivalent-SUM-IF-statement-in-R-tp26467889p26467889.html
Sent from the R help mailing list archive at Nabble.com.
On Nov 22, 2009, at 4:00 PM, stephane Luchini wrote:
Thanks.
I have 10.5.8 with R 2.10.0 now (i still had 2.9 in my previous
messages). I also have gcc-4.2 installed but no Xcode package.
It still fails to install - can it be the Xcode package? Where can I
find it - I don't have my install
On 22/11/2009 3:44 PM, ychu066 wrote:
for example, i want to sum all the row entries if column 1 takes the value
boy. anyone knows ?
Subset then sum:
sum(M[M[,1] == boy, ])
Duncan Murdoch
__
R-help@r-project.org mailing list
Presumably you want all the columns _except_ column 1, right?
Perhaps (no code, no test) :
sum( dta[ dta[,1]==boy , -1 ] )
--
David.
On Nov 22, 2009, at 3:44 PM, ychu066 wrote:
for example, i want to sum all the row entries if column 1 takes the
value
boy. anyone knows ?
--
View this
Hi Ted,
This won't solve your problem, but a small improvement might
be to place the labels over the lines rather than the other
way around. It will definitely avoid putting red lines over
black ones:
x - -6:16
z - outer(x,x)
contour(z, labels=, col=2)
contour(z, lty=0, labcex=1, add=TRUE)
Please also look at the R document
http://www.r-project.org/doc/R-FDA.pdf
and ask your IT department to read this document
Rich
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
You've asked the same question on stackoverflow.com and received the
same answer. This is rude because it duplicates effort. If you
urgently need a response to a question, perhaps you should consider
paying for it.
Hadley
On Sun, Nov 22, 2009 at 12:04 PM, masterinex xevilgan...@hotmail.com
On Nov 22, 2009, at 4:57 PM, Peter Ehlers wrote:
Hi Ted,
This won't solve your problem, but a small improvement might
be to place the labels over the lines rather than the other
way around. It will definitely avoid putting red lines over
black ones:
x - -6:16
z - outer(x,x)
contour(z,
Good afternoon,
I have a question on generating simple randomization data. Thanks for any
suggestions.
Two normal distribution N(0,1) and N(1,1)
A: I want to generate 20 data, 10 from N(0,1) and 10 from (1,1). each
observation's indicator (either is from N(0,1) or N(1,1) ) is randomized. I
Xcode is available for download here:
http://developer.apple.com/technology/xcode.html
As David noted, you do need to register, but it is free. Note also
that it is a 750 Mb download.
HTH,
Marc Schwartz
On Nov 22, 2009, at 3:11 PM, David Winsemius wrote:
On Nov 22, 2009, at 4:00 PM,
Thanks to all, that was it! Xcode needed to be installed. For those
who did not update to snow Leopard, things could be a bit tricky
because apple did delete links to previous versions in search engines.
On their site, one has to search through their download section.
For snow leopard: version
On Sun, Nov 22, 2009 at 11:14 AM, frenchcr frenc...@btinternet.com wrote:
Please help me persuade IT to install R on my computer!
All suggestions welcome.
Our IT department run scared when you mention software that they have no
working experience of.
I need to know the pros and cons of
On 22/11/2009 5:21 PM, David Winsemius wrote:
On Nov 22, 2009, at 4:57 PM, Peter Ehlers wrote:
Hi Ted,
This won't solve your problem, but a small improvement might
be to place the labels over the lines rather than the other
way around. It will definitely avoid putting red lines over
black
On 22/11/2009 5:35 PM, Duncan Murdoch wrote:
On 22/11/2009 5:21 PM, David Winsemius wrote:
On Nov 22, 2009, at 4:57 PM, Peter Ehlers wrote:
Hi Ted,
This won't solve your problem, but a small improvement might
be to place the labels over the lines rather than the other
way around. It will
On Nov 22, 2009, at 5:35 PM, Duncan Murdoch wrote:
On 22/11/2009 5:21 PM, David Winsemius wrote:
On Nov 22, 2009, at 4:57 PM, Peter Ehlers wrote:
Hi Ted,
This won't solve your problem, but a small improvement might
be to place the labels over the lines rather than the other
way around. It
Hi,
Can anyone please tell me is there a way to view the annealing schedule when
using SANN is optim. I have tried setting report=1 in the control list, but
cannot seem to get it to work?
Ant help or suggestions would be appreciated!
Thanks
__
Hi all,
I get an error message when trying to replace *+* or *?* signs (with empty
space) from a string.
x - asdf+,jkl?
gsub(?, , x)
Error message:
Error in
gsub(?, , x) :
invalid regular expression '?'
In addition: Warning message:
In gsub(?, , x) :
regcomp error: 'Invalid
Hi, I have a project where unsupervised learning failed to produce rules
using Weka. I wanted to know if there are any tools in R that can be used to
assess how well timestamps of event, task, load, and hardware logs for
completeness or missing and incomplete data to be able to know whether it
Wow! (Top-posting for once, since there's no natural other place ...)
Thanks Peter, David and Duuncan for the suggestions. I'll look at the
later ones from David Duncan later (it's getting late here).
However, as something to work on if you want to, here is a toy
example, based on the same
On Nov 22, 2009, at 4:45 PM, stephen's mailinglist account wrote:
On Sun, Nov 22, 2009 at 11:14 AM, frenchcr frenc...@btinternet.com
wrote:
Please help me persuade IT to install R on my computer!
All suggestions welcome.
Our IT department run scared when you mention software that they
'?' is a metacharacter in a regular expression. You have to escape it:
x - asdf+,jkl?
gsub(?, , x)
Error in gsub(?, , x) : invalid regular expression '?'
In addition: Warning message:
In gsub(?, , x) :
regcomp error: 'Invalid preceding regular expression'
# escape it
gsub(\\?, , x)
Try this:
gsub([?], , x)
On Mon, Nov 23, 2009 at 7:01 AM, Steven Kang stochastick...@gmail.com wrote:
Hi all,
I get an error message when trying to replace *+* or *?* signs (with empty
space) from a string.
x - asdf+,jkl?
gsub(?, , x)
Error message:
Error in
gsub(?, , x) :
Dear Steven,
You were almost there:
x - asdf+,jkl?
gsub(\\?, , x)
[1] asdf+,jkl
gsub(\\+, , x)
[1] asdf,jkl?
Take a look at the Basic Regular Expressions section in ?regex for more
details.
HTH,
Jorge
On Sun, Nov 22, 2009 at 6:01 PM, Steven Kang wrote:
Hi all,
I get an error
On 23/11/2009, at 12:01 PM, Steven Kang wrote:
Hi all,
I get an error message when trying to replace *+* or *?* signs
(with empty
space) from a string.
x - asdf+,jkl?
gsub(?, , x)
Error message:
Error in
gsub(?, , x) :
invalid regular expression '?'
In addition: Warning message:
And if you want to replace both + and ?, here is a suggestion:
x - asdf+,jkl?
gsub([?]|[+], , x)
# [1] asdf,jkl
HTH,
Jorge
On Sun, Nov 22, 2009 at 6:46 PM, Jorge Ivan Velez wrote:
Dear Steven,
You were almost there:
x - asdf+,jkl?
gsub(\\?, , x)
[1] asdf+,jkl
gsub(\\+, , x)
[1]
On Nov 22, 2009, at 6:01 PM, Steven Kang wrote:
Hi all,
I get an error message when trying to replace *+* or *?* signs (with
empty
space) from a string.
x - asdf+,jkl?
gsub(?, , x)
Since both ? and + are special regex characters, to do both the
substitutions at once you need to use
I don't see an option to tune linewdith in heatmap.2(). Could somebody
let me know how to tune the dendrogram line width?
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
?panel.barchart
use the argument
origin=0
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained,
On 22/11/2009 6:28 PM, (Ted Harding) wrote:
Wow! (Top-posting for once, since there's no natural other place ...)
Thanks Peter, David and Duuncan for the suggestions. I'll look at the
later ones from David Duncan later (it's getting late here).
However, as something to work on if you want to,
Â
Hello people!! I'm trying to make a statistical analysis of stability
through to package 'Agricolae', and procedure 'stability.par', but I don't
get conclude the analysis. The problem is in my data set, that have missing
value, and I didn't manage interpret the 'NA' used to
On Nov 22, 2009, at 8:01 PM, Duncan Murdoch wrote:
On 22/11/2009 6:28 PM, (Ted Harding) wrote:
Wow! (Top-posting for once, since there's no natural other place ...)
Thanks Peter, David and Duuncan for the suggestions. I'll look at the
later ones from David Duncan later (it's getting late
Hi Hadley ,
I really apreciate the suggestions you gave, It was helpful , but I still
didnt quite get it all. and I really want to do a good job , so any
comments would sure come helpful, please understand me .
hadley wrote:
You've asked the same question on stackoverflow.com and
Thank you, Dennis.
It really helps. That is what I want, for the first 10 obs in A, it is not
necessary balanced. for the first 10 obs in B, it is balanced.
But there is one thing I need maybe I didn't say it clear. I generate 20
observations first, I want permutation in these 20 then select
NICE!!! thanks
Deepayan Sarkar wrote:
On Thu, Nov 19, 2009 at 6:03 AM, ychu066 ychu...@aucklanduni.ac.nz
wrote:
http://old.nabble.com/file/p26418382/hist1.png hist1.png i want three
plots
along on the side , how to i do that ?
and I also want to change the colour of the bars for
anyone know how to add some text on the panel ??? for example 2.5, 50 and
1000 are mearsured in Litre, and i want to put the units beside the
measurements. How could i do that?
ychu066 wrote:
NICE!!! thanks
Deepayan Sarkar wrote:
On Thu, Nov 19, 2009 at 6:03 AM, ychu066
On Nov 22, 2009, at 8:19 PM, lugobueno wrote:
Â
Hello people!! I'm trying to make a statistical analysis of
stability
through to package 'Agricolae', and procedure 'stability.par', but
I don't
get conclude the analysis. The problem is in my data set, that
have missing
value,
Hello, can one use predict, as you can with other model objects like lm,
with dynlm to predict a new data set that is identical in field names,
just a different time period.
Be nice if you could, I don't really want to create a new data set with
all the lags, hoping it would generate
1 - 100 of 109 matches
Mail list logo