If I understand the question correctly, both Jim Holtman's and John
Fox's answers are correct solutions. However, they are not optimal ones
(that was not the question -optimize my code, please-, but one can talk
about it a little bit).
- Jim proposes (I rework a little bit his code):
G'day Taka,
TM == Taka Matzmoto [EMAIL PROTECTED] writes:
TM and then assign the character vector to the numeric vector by
TM names-first.10
TM first.10 = numeric.vector
TM combined.one - cbind(names,first.10)
TM container - diag(10)
TM for (i in 1:(10*10))
I don't
Hello,
I would like to plot a wireframe of a function which is defined on the
unit square using the lattice library (for trellis-like plots). The plot
contains z-values of about 100 (only in the neighborhood of zero) although
most of the z-values are in the range of -let's say- 0 to 10. If I
BAT == Berwin A Turlach [EMAIL PROTECTED] writes:
TM == Taka Matzmoto [EMAIL PROTECTED] writes:
TM and then assign the character vector to the numeric vector by
TM names-first.10
TM first.10 = numeric.vector
TM combined.one - cbind(names,first.10)
TM container - diag(10)
Hi,
Last week my class conducted an experiment by putting out clay
caterpillars to look at the effects of urbanization, color, and location
on caterpillar predation. There were two sites (urban, rural), three
colors (green, yellow, red) and two locations at each site (edge,
interior). The
Hi,
Thank you very much for your prompt help.
1)
I downloaded 'rgl' package from CRAN and its version is 0.65.
This seems to be the lasted.
2)
I added those two lines and now Color.cpp is compiled OK.
However, I have a different error as following:
CC -xtarget=generic64
Its not clear to me what format you want to put the data in but this
will read it into a list, one list element per lower triangular matrix.
Modify to suit.
DF - read.table(myfile.dat, fill = TRUE)
id - cumsum(is.na(DF[,2]))
result - by(DF, id, as.matrix)
# if the input is in the second format
On 2/5/2006 10:25 AM, Dongseok Choi wrote:
Hi,
Thank you very much for your prompt help.
1)
I downloaded 'rgl' package from CRAN and its version is 0.65.
This seems to be the lasted.
That's the latest on CRAN, but not the latest available. See my message
below. I have put Brian's
Hello,
I'm trying some cluster analysis, using the hclust command. I am looking for
some help in selecting the 'best' number of clusters. Some software reports
pseudo-F and pseudo-T^2 statistics, for each cluster merge. Is there any way
to generate such statistics simply in R?
Thanks,
Le 05.02.2006 17:50, John Janmaat a écrit :
Hello,
I'm trying some cluster analysis, using the hclust command. I am looking for
some help in selecting the 'best' number of clusters. Some software reports
pseudo-F and pseudo-T^2 statistics, for each cluster merge. Is there any way
to
Hello, I tried to code a R socket server but I did not succeed.
The problem is that once the R socket server is created,
I call the readLines function and then R gets blocked.
The client seems to work fine since I tested it with a PERL server.
I tried many combination of params in the
See package svSocket in the SciViews bundle. It uses a socket server
written in tcltk and it is not blocking the command line.
Philippe Grosjean
pau carre wrote:
Hello, I tried to code a R socket server but I did not succeed.
The problem is that once the R socket server is created,
I call
Hello, thank you for your help but I need to use the standard R
packages as I am developing an academic project and I the use of
external R packages is not allowed.
Pau.
2006/2/5, Philippe Grosjean [EMAIL PROTECTED]:
See package svSocket in the SciViews bundle. It uses a socket server
written
Dead R useRs,
I wrote function, which plot dotchart from given matrix, compute mean
from diagonal elements and plot it with abline. In addition, if
particular element of matrix is greater then mean value (i.e.
mead.diagonal), it should be plot in red, otherwise in green color.
graph -
Dear R Wizards: To bore everyone to death, below is an improved and
hopefully final version of my native.slope() function. (Thanks, Jim.)
In case you are not asleep yet reading yet another post of mine, may
I ask the experts some programming questions?
[I just saw yesterday's threat---I
You've found a region of infinite extent over which the likelihood
function is for all practical purposes flat. This means that the
maximum likelihood estimates (MLEs) are not unique. To see this
consider the following properties of your datiINDa:
with(datiINDa, table(statusINDa,
I'll respond to one of your multitude of queries below. Suggest that you
confine your postings to a single issue so that the subject heading is more
meaningful.
Cheers, Pierre
ivo welch offered the following remark on 02/05/06 11:28...
[...]
* is there a way to print all my user defined
On 2/5/2006 4:28 PM, ivo welch wrote:
Dear R Wizards: To bore everyone to death, below is an improved and
hopefully final version of my native.slope() function. (Thanks, Jim.)
In case you are not asleep yet reading yet another post of mine, may
I ask the experts some programming questions?
PBR == Prof Brian Ripley [EMAIL PROTECTED] writes:
commenting that subset was new to him, though he did say list of
functions in R. I'd searched through everything _else_ in the help
system looking for such a glossary; I hadn't thought to look under
*Packages*, as those are, of course,
BO == Benjamin Otto [EMAIL PROTECTED] writes:
BO Dear community,
BO I'm trying to install R-2.2.1 on an IRIX 6.2 (Unix System V Release 4)
BO system without root access. Unfortunately readline is not installed in
BO default, so I installed it locally in my home directory, more precisely in:
BO
MHHS == Martin Henry H Stevens [EMAIL PROTECTED] writes:
MHHS Start R help, and select the Search Engine Keywords link. This
MHHS will take you to a page where keywords (including functions) are
MHHS arranged by topic. It includes base and recommended
MHHS packages. Also not that on the CRAN
Is this what you want? You can use 'scan' to read in and 'fill' out data in
a row.
x - scan('/temp/document1.txt', what=list(0, 0, 0, 0, 0), fill=T,
multi.line=F)
Read 15 records
x - do.call('rbind', x) # create a matrix
x
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9]
without root access.
Benjamin,
In a normal Unix environment non root users can't install software. This is
one of the reasons why Unix systems are more secure.
When you compile readline by ./configure; make; make install some system
files must be created: headers must be installed to
Dear Colleague,
I would like to set a few AR coefficients (not order) to zero in the
multivariate AR function (mAr.est; mAr library); however, the manual for
this function does not provide this information. I would appreciate any
suggestions along this line.
Thankfully yours,
Daniel C Medina
Dear R wizards: First, thank you for all the responses to my earlier
queries. Will keep me busy tomorrow morning. Can I add one graphics
question to my ever changing set of bothering questions, please?
plot( c(0,1), c(0,1) );
crop.to.plot.off(); # what I want; does not exist
text( -0.3, 0.1,
Dear R People:
In the function decompose, the object has the class of decomposed.ts.
(from package stats)
I would like to see the class definition and the method for the plotting.
However, when I use
isClass(decomposed.ts)
I get FALSE.
When I check getMethods(plot)
there is no method for
Try:
getAnywhere(plot.decomposed.ts)
getAnywhere(print.decomposed.ts) # not found; its using print.default
Also note this gives an S3 generic's methods:
methods(plot)
On 2/5/06, Erin Hodgess [EMAIL PROTECTED] wrote:
Dear R People:
In the function decompose, the object has the class of
Check xpd= in ?par
On 2/5/06, ivo welch [EMAIL PROTECTED] wrote:
Dear R wizards: First, thank you for all the responses to my earlier
queries. Will keep me busy tomorrow morning. Can I add one graphics
question to my ever changing set of bothering questions, please?
plot( c(0,1), c(0,1)
On 2/5/06, Marius Hofert [EMAIL PROTECTED] wrote:
Hello,
I would like to plot a wireframe of a function which is defined on the
unit square using the lattice library (for trellis-like plots). The plot
contains z-values of about 100 (only in the neighborhood of zero) although
most of the
Dear R-users,
First of all, I'm sorry if this is a simple question. I want a daily
date series which will be a sequence. E.g. starting from 07/03/1962 to
12/03/1997. Thanks in advance. I want to paste this date series with the
data series I have.
Thanks Regards,
Sumanta Basak.
Try
?seq.Date
On 2/6/06, Sumanta Basak [EMAIL PROTECTED] wrote:
Dear R-users,
First of all, I'm sorry if this is a simple question. I want a daily
date series which will be a sequence. E.g. starting from 07/03/1962 to
12/03/1997. Thanks in advance. I want to paste this date series with
On Sun, 5 Feb 2006, Pierre Kleiber wrote:
I'll respond to one of your multitude of queries below. Suggest that you
confine your postings to a single issue so that the subject heading is more
meaningful.
Cheers, Pierre
ivo welch offered the following remark on 02/05/06 11:28...
[...]
*
On Sun, 5 Feb 2006, ivo welch wrote:
Dear R wizards: First, thank you for all the responses to my earlier
queries. Will keep me busy tomorrow morning. Can I add one graphics
question to my ever changing set of bothering questions, please?
plot( c(0,1), c(0,1) );
crop.to.plot.off(); #
This is an S3 class, not an S4 class. (Package stats does not use S4
classes: only package stats4 in the R tarball does.)
On Sun, 5 Feb 2006, Erin Hodgess wrote:
Dear R People:
In the function decompose, the object has the class of decomposed.ts.
(from package stats)
I would like to see
On Sun, 5 Feb 2006, Duncan Murdoch wrote:
On 2/5/2006 4:28 PM, ivo welch wrote:
Dear R Wizards: To bore everyone to death, below is an improved and
hopefully final version of my native.slope() function. (Thanks, Jim.)
In case you are not asleep yet reading yet another post of mine, may
I
Duncan Murdoch [EMAIL PROTECTED] writes:
On 2/5/2006 4:28 PM, ivo welch wrote:
* has it now become possible to embed sample data sets in R code? (I
asked this a while back, but there were nly kludges, no standard
pretty solutions.)
I don't understand the question. dump() produces R
36 matches
Mail list logo