Displaying 20 results from an estimated 900 matches similar to: "hclust"
2011 Mar 18
1
[Patch suggestion] Adding 3rd arg to tempfile() to set extension
The other day I was working on an example which used tempfile() to create
file for use by the graphics device. And while I love tempfile()---as it is
portable and clever and the files get cleaned by R and all that---I noticed
one missing feature I would like to see: beside a starting name pattern, and
an optional directory, an 'file extension' argument would be nice to have.
As e.g. in
2006 Jan 17
1
how can i locate the source code of a module quickly?
I have dowloaded the Source Code of R,and I want to know the process of
chi-sqared test,but how can I found it?
[[alternative HTML version deleted]]
2000 Jan 17
1
lwd patches for "contour"
I found it useful to have contour be able to do line widths ... hope
that the guts haven't changed an enormous amount in the current
development version ... the patches are relatively trivial, mostly going
by analogy with lty and col (although in my ignorance it took me a while
to figure out what UNPROTECT(2) was and why it should be changed to
UNPROTECT(3) ... hope this is useful.
Ben
2003 Oct 22
1
Windows RConsole Focus
Hi,
I was looking for a Windows-specific R function to focus the
console window and couldn't find one. The motivation is that
after loading the tcltk package, the "main" Tk window "." is
presumably focused but then immediately withdrawn (hidden) so
the RConsole loses its focus and you have to click on it to
continue typing.
Would there be any interest in including a
2003 May 06
1
S's plclust and R's hclust
Hello everyone,
Does anyone know how to implement the argument "unit" in R's plclust
function ? I used to use Splus where this argument exists but it has not
been implemented in R's plclust. The reason why I switched from Splus to
R is that Ward's method is not implemented for S's hclust whereas it is
implemented for R's hclust. What I would need is S's plclust
2003 Dec 23
7
Sweave question
Using Sweave in the tools library (R version 1.8.0: sorry i havent
upgraded), it seems i cant use if statements in R chunks that make graphs.
i have this:
<<fig=TRUE,echo=F>>=
par(mfrow=c(1,1))
if(exists("x"))
plot(x,x)
else{
plot(1,1,type="n")
text(1,1,"data not available.\n")
}
@
and I get this error:
Error: chunk 6
Error in parse(file, n,
2003 Dec 31
2
Calling primitive functions from C code
Does anyone have an example of calling primitive or internal functions from
C code that they would share with me?
I am having trouble trying to figure out how to construct the proper
arguments to pass to "do_subset_dflt"
Here is the prototype:
SEXP do_subset_dflt(SEXP call, SEXP op, SEXP args, SEXP rho);
The R_FunTab from "names.c" gives some additional information on the
2003 Dec 31
2
Calling primitive functions from C code
Does anyone have an example of calling primitive or internal functions from
C code that they would share with me?
I am having trouble trying to figure out how to construct the proper
arguments to pass to "do_subset_dflt"
Here is the prototype:
SEXP do_subset_dflt(SEXP call, SEXP op, SEXP args, SEXP rho);
The R_FunTab from "names.c" gives some additional information on the
2011 Sep 12
1
hclust and cutree: identifying branches as classes
Good afternoon,
After cuting a hierarchical tree using cutree(), how to check correspondances between classes and branches?
This is what we do:
srndpchc <- hclust(dist(srndpc$x[1:1000,1:3]),method="ward") #creation of hierarchical tree
plclust(srndpchc,hmin=20000) #visualisation
srndpchc20000 = cutree(srndpchc,h=20000) #returns 4 classes
table(srndpchc20000 )
srndclass20000 =
2006 Dec 12
2
R_Code
Hello!
I need the Code of the functions runif and rexp. Where can I get them? Can You help me?
I thank you for an answer!
bye Ilka
--
2010 Aug 16
2
Random Number Generators and Sample
I am trying to get documentation about the random number generator used in
"sample". The help for sample does not mention it. Can anyone point me in
the right direction.
Thanks
[[alternative HTML version deleted]]
2008 Nov 19
1
How to look within .Internal ?
In the optim() function there is a syntax :
res <- .Internal(optim(par, fn1, gr1, method, con, lower,
Here how can I see the inside-codes of ".Internal" function ?
Regards,
--
View this message in context: http://www.nabble.com/How-to-look-within-.Internal---tp20581897p20581897.html
Sent from the R help mailing list archive at Nabble.com.
2005 Apr 20
2
how to get code of a .Internal() function?
Hello,
I'm working with the function optim() from stats
package,
and inside this function is called the function
.Internal(optim(....)) and I want to get the code of
this function which would help me to understand why
the Nelder-Mead algorithm doesn't converge with my
data.
I'm working under Windows XP.
Could you reply to this adress because I don't belong
to the mailing list
2010 May 24
1
Functioning and source code location of .Primitive()
Hi all.
I began examining the R source code in the last few days, for a better understanding of its structure. I read the manuals and digged deeply (maybe not enough?) into the source code, but I couldn't totally understand how .Primitive() works. Its effects, if I understand well, are quite clear to me (calling the C compiled counterpart of a "primitive" function), but where is its
2003 Jul 09
2
.Internal(optim)
> hi all,
> I am using optim. I am getting the following error message:
>
> Error in optim(par = start.vals[, h], fn = post.func.pois, gr = post.grad.
> pois, :
> L-BFGS-B needs finite values of fn
>
> If I look at optim typing '> optim' it seems that the error comes from
> inside .Internal(optim), so I wonder how can I see the code for .Internal(
2003 Aug 26
4
Viewing function source
I know I should probably RTFM for this question, but could someone tell me
if R supports the idea of "viewing source" on any particular function you
want to use?
If I want to "view source" on the rpois() function, for example, can I do
somethink like:
source(rpois)
To see how the function is implemented?
Regards,
Paul Meagher
Datavore Productions
50 Wood Grove Drive
2003 Sep 17
1
plot.hclust: dendrogram too large for window (PR#4197)
plot.hclust:
Setting up a window for a dendrogram assumes the first link is
the shortest and the last is the longest. This is not always the
case when the clustering was done with hclust, method="median"
or method="centroid", and the dendrogram sometimes doesn't fit
within the window.
I propose the fix listed below.
src/main/
--- plot.c Wed Sep 17 01:03:39 2003
+++
2005 May 28
1
Forcing ticks in plot for hclust object outside the limits
Hello!
I have the following problem.
I would like to plot the hclust object "hcd" (bellow, at the end of the
mail) with ticks at seq(0.05,0.25,by=0.05). I tried using the code
plot(hcd)
and
plot(hcd,axes=FALSE)
axis(2,seq(0.05,0.25,by=0.05))
In both cases, the resoult is the same, ticks at 0.05 and 0.25 are not
printed. I tried changing the ylim argumet in plot, however I got a
2002 Jun 20
4
small ps
Ive created a postscript files that looks just like I want it to look
except instead of being 6'' x 6'' i want it to be 2''x 2''. i used the
postscipt() function (R 1.5.1 on redhat). if i use width and
height in par to change the scale the figure looks terrible cause
cex,mar,etc.. dont appear to change.
before i start tinkering with the cex's and mar... is
2003 Sep 10
1
sweave problem
hi!
using:
Version 1.8.0 Under development (unstable) (2003-09-02)
using the Sweave function of the tools package i get this error when
latexing with texi2dvi --pdf
! LaTeX Error: File `upquote.sty' not found.
if i change the line
\usepackage{/users/faculty/ririzarr/R-1.8.0/lib/R/share/texmf/Sweave}
to
\usepackage{/users/faculty/ririzarr/R-1.7.1/lib/R/share/texmf/Sweave}
in the tex file,