[R] adjacency matrix?

2007-02-22 Thread Jeff D. Hamann
. Since the names of the nodes are the values in the elements, is there are easier way to accomplish this? Thanks, Jeff. -- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon 97339-1421 phone 541-754-1428 [EMAIL PROTECTED] www.forestinformatics.com

[R] comments in Sweave

2007-01-13 Thread Jeff D. Hamann
Has anyone been able to include R comments in Sweave docs so that the comments aren't deleted? -- Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon 97339-1421 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] comments in Sweave

2007-01-13 Thread Jeff D. Hamann
Sa-weeet! Does next spring mean in a couple of months? -- Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon 97339-1421 On 1/13/2007 3:16 PM, Jeff D. Hamann wrote: Has anyone been able to include R comments in Sweave docs so that the comments aren't deleted? This has been fixed in R

[R] EM algorithm for truncated multivariate mixture of normals

2006-11-27 Thread Jeff D. Hamann
I couldn't find a direct answer in CRAN to this question, so I'm asking with some trepidation. I have a multivariate dataset (data.frame) with columns that can be expressed as a set of mixed normals (at least I think) and need to impute values that have constraints (truncated mixture of normals

[R] clustering package with constraints (advice)?

2006-11-07 Thread Jeff D. Hamann
R-gurus, I'm looking for (a) clustering method(s) (package(s)) that allow users to add constraints. I would like to be able to use a currently existing package and to include constraints that can be passed as functions of the data. If that's not possible, can someone recommend a package that

[R] rotated figures within Sweave?

2006-11-02 Thread Jeff D. Hamann
I can't recall (or find an example of) how to rotate figures in Sweave: fig=TRUE, echo=false, width=9, landscape=TRUE= ??? fig=TRUE, echo=false, width=9, rotate=true= ??? fig=TRUE, echo=false, width=9, sideways=TRUE= ??? fig=TRUE, echo=false, width=9, par=(something)= ??? Does anyone know how to

Re: [R] rotated figures within Sweave?

2006-11-02 Thread Jeff D. Hamann
I use the sidewaysfigure environment all the time, I should have known... my bad. Jeff. -- Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon 97339-1421 On Thu, 2006-11-02 at 11:03 -0800, Jeff D. Hamann wrote: I can't recall (or find an example of) how to rotate figures in Sweave: fig

[R] help went away from top emacs window :-(

2006-11-01 Thread Jeff D. Hamann
I've recently updated to R 2.4 and have noticed that when I type ?help.on.something in ESS from within emacs, the old text help doesn't show up in the other (other being the horizontally split windows) window. Instead the windows chm help file pops up. Is there any way to get R to revert back to

[R] help with pasting + expressions?

2006-08-23 Thread Jeff D. Hamann
I can't believe I'm having such a hard time with this and I haven't been able to find out how to solve this... lab - expression( paste( hat(v), as.character(round(y.hat,2)), ,, hat(sigma)^2, as.character(sigma.hat)) ) text( x=pt$x+2, y=pt$y,labels=lab ) ## the text should be \hat{y} =

[R] removing for-loop question

2006-08-21 Thread Jeff D. Hamann
R-loop-killers: I'm looking for a hint to remove the loops from this little piece of code. Since most of the of computing I deal with is very loop-centric, it's often difficult for me to translate index-based code into loop-free code. Does anyone have any hints for speeding this up? The actuals

[R] variable '%s' was fitted with class... in predict.nls()

2006-03-08 Thread Jeff D. Hamann
to be able to simply pass a new data.frame that contains the independent variables without having to build a list of names. Is that possible? Thanks, Jeff. -- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon 97339-1421 phone 541-754-1428 jeff.hamann[at]forestinformatics.com

[R] getting strata/cluster level values with survey package?

2006-02-07 Thread Jeff D. Hamann
First, I appoligise for the rooky question, but... I'm trying to obtain standard errors, confidence intervals, etc. from a sample design and have been trouble getting the results for anything other than the basic total or mean for the overall survey from the survey package. For example, using

[R] getting strata/cluster level values with survey package?

2006-02-07 Thread Jeff D. Hamann
First, I appoligise for the rookie question, but... I'm trying to obtain standard errors, confidence intervals, etc. from a sample design and have been trouble getting the results for anything other than the basic total or mean for the overall survey from the survey package. For example, using

[R] broken package?

2005-12-13 Thread Jeff D. Hamann
installation '%d' to '%s'), : use format %s for character objects I'm running R-2.1.0 Is this updated in 2.2? --- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon USA 97339-1421 541-754-1428 [EMAIL PROTECTED] www.forestinformatics.com

[R] directional correlograms?

2005-11-19 Thread Jeff D. Hamann
(if required) or how I can arrange/filter the data to be able to compute directional correlograms so that I may use the spatial::correlogram(). I've used the spatmast package in S+ (but need to be able to do this in R). Thanks, Jeff. -- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis

[R] transparent backgound in lattice plots

2005-09-09 Thread Jeff D. Hamann
in the lattice levelplot call to set the background to transparent. I'm sure it's obvious Help? Jeff. --- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon USA 97339-1421 541-754-1428 [EMAIL PROTECTED] www.forestinformatics.com __ R-help

[R] don't want xtab sorting numeric factors...

2005-06-06 Thread Jeff D. Hamann
be greatly appreciated. Thanks, Jeff. -- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon 97339-1421 phone 541-754-1428 fax 541-752-0288 [EMAIL PROTECTED] www.forestinformatics.com __ R-help@stat.math.ethz.ch mailing list https

[R] colors and palettes and things...

2005-05-23 Thread Jeff D. Hamann
into functions instead of having to predefine a bunch of colors myself or use the predefined colors like terrain.colors(n)? Are there groups of colors in the colors() that I can group together to make some nice palettes for drawing barplots, etc? Thanks, Jeff. -- Jeff D. Hamann Forest Informatics

[R] aggregate question...

2005-03-31 Thread Jeff D. Hamann
command to do this? -- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon 97339-1421 phone 541-754-1428 fax 541-752-0288 [EMAIL PROTECTED] http://www.forestinformatics.com __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

[R] help with plotting a grid on levelplot

2005-03-29 Thread Jeff D. Hamann
from modifying the panel.XX args when I use lattice, and now I need help. Thanks, Jeff. --- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon USA 97339-1421 541-754-1428 [EMAIL PROTECTED] www.forestinformatics.com __ R-help

[R] home and search buttons in help files?

2005-03-25 Thread Jeff D. Hamann
My thumb grows tired of having to back arrow so much in the help files :-( Would it be possible to add to the wish list that a link to the help index page (since the up button at the top of the package index never seems to work for me) and another link to the search page? Jeff. --- Jeff D

[R] summing values as image

2005-03-23 Thread Jeff D. Hamann
() and fields::image.count() to get what I need or if I should simply write my own. suggestions? -- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon 97339-1421 phone 541-754-1428 fax 541-752-0288 [EMAIL PROTECTED] http://www.forestinformatics.com

[R] coplot =? gannt chart + bargraph

2004-11-24 Thread Jeff D. Hamann
4,7,2,1048.494508,1.00 4,8,2,1048.494508,1.00 and generate charts over unit and week (both as factors?) and think I should be using aggregate, but wanted to find out if there's a better method. Thanks, Jeff. -- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon 97339

[R] route generation capabilites?

2004-11-23 Thread Jeff D. Hamann
,AllShortestPaths, and extractPath from e1701) or using some other method from within R. Thanks, Jeff. -- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon 97339-1421 phone 541-754-1428 fax 541-752-0288 [EMAIL PROTECTED] http://www.forestinformatics.com

[R] constrained optimization using nlm/optim?

2004-10-12 Thread Jeff D. Hamann
value if( constraint1 something ) { obj.func - x(p) } else { obj.func - some super huge number } } p - c(0.1,2.4, 5) nlm( obj.func, p, and a bunch of other arguments ) Any suggestions would be very helpful... Jeff. -- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421

[R] constrained opt with lagrange multiplier example?

2004-10-08 Thread Jeff D. Hamann
examples and thought I should ask here before I plunged into writing a few miles of R code. Thanks, Jeff. -- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon 97339-1421 office 541-753-4218 fax 541-752-0288 home 541-754-1428 [EMAIL PROTECTED] http://www.forestinformatics.com

Re: [R] xtable without rownames

2004-05-14 Thread Jeff D. Hamann
fine. -Original Message- From: Jeff D. Hamann [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 5:40 PM To: [EMAIL PROTECTED] Subject: [R] xtable without rownames When I tried to read all the entries (after searching the FAQ) for row names xtable, I get

[R] summary table newbie question

2004-05-12 Thread Jeff D. Hamann
allow me to plot the results graphically in addition to simply printing out the table using xtable. Jeff. --- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon USA 97339-1421 541-754-1428 [EMAIL PROTECTED] www.forestinformatics.com

[R] xtable without rownames

2004-05-12 Thread Jeff D. Hamann
90 64.42 \\ ...blah, blah, blah... 8 150 53.32 \\ 9 170 0.69 \\ \hline \end{tabular} \end{center} \end{table} with the rownames. How do I get them out? I'm stuck. Help. Jeff. --- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon USA 97339-1421 541-754-1428 [EMAIL

[R] multicolumn sort on dataframe?

2004-03-26 Thread Jeff D. Hamann
: newframe - sort( data=frame, list=c(plot,plant,sp) ) Or am I just barking up the wrong tree? Jeff. --- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon USA 97339-1421 541-754-1428 [EMAIL PROTECTED] www.forestinformatics.com

[R] why is rcmd shlib including files not in the list?

2004-03-02 Thread Jeff D. Hamann
or is there something I'm not doing correctly? Jeff. --- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon USA 97339-1421 (office) 541-754-1428 (cell) 541-740-5988 [EMAIL PROTECTED] www.forestinformatics.com __ [EMAIL PROTECTED

[R] Sweave not found from MikTeX?

2004-02-19 Thread Jeff D. Hamann
correctly when using MikTeX on Windows XP? Do I need to move/copy the Sweave.sty file to the c:/textmf/?/?/? directory? Jeff. --- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon USA 97339-1421 (office) 541-754-1428 (cell) 541-740-5988 [EMAIL PROTECTED] www.forestinformatics.com

[R] return a list of vectors from C?

2004-02-18 Thread Jeff D. Hamann
package would be a good example of how to do this? Jeff. --- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon USA 97339-1421 (office) 541-754-1428 (cell) 541-740-5988 [EMAIL PROTECTED] www.forestinformatics.com __ [EMAIL PROTECTED

[R] hyperlink in the R logo to a/the R homepage?

2004-01-15 Thread Jeff D. Hamann
Would it be smart to add a hyperlink for the R logo (in the help files) that would go the, or a, R homepage? --- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon USA 97339-1421 (office) 541-754-1428 (cell) 541-740-5988 [EMAIL PROTECTED] www.forestinformatics.com

[R] plotting predicted values (lines) over data?

2004-01-15 Thread Jeff D. Hamann
to write one? Thanks, Jeff. --- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon USA 97339-1421 (office) 541-754-1428 (cell) 541-740-5988 [EMAIL PROTECTED] www.forestinformatics.com __ [EMAIL PROTECTED] mailing list https

[R] extensive grid docs?

2003-12-10 Thread Jeff D. Hamann
way to proceed is to create the plot, clip it using a polygon, then manually add the annotation. Is that correct? I couldn't find much on the FAQ regarding creating really goofy plots with grid and any hints would be greatly appreciated. Thanks, Jeff. --- Jeff D. Hamann Forest Informatics, Inc. PO

[R] names of parameters from nonlinear model?

2003-12-02 Thread Jeff D. Hamann
... Jeff. --- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon USA 97339-1421 (office) 541-754-1428 (cell) 541-740-5988 [EMAIL PROTECTED] www.forestinformatics.com __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman

[R] check WARNING...

2003-12-01 Thread Jeff D. Hamann
found in technology (logs, trees, plots, points, etc) and would like to know if the nomenclature will cause a problem. Thanks, Jeff. --- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon USA 97339-1421 (office) 541-754-1428 (cell) 541-740-5988 [EMAIL PROTECTED

[R] data.frame subset?

2003-11-18 Thread Jeff D. Hamann
182 7852.22 1285.42 143 157 DF 1 28 142 1146.77 207.67 159 179 DF 1 12 88 99.13 25.43 177 197 DF 1 37 162 2309.06 391.48 attributes( mtrs$sp ) $class [1] factor $levels [1] BM DF WF WH --- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon USA 97339

[R] Re: prevent conversion to factors in aggregate?

2003-11-16 Thread Jeff D. Hamann
Ah ha! That's perfect. It would have taken me forever to get that. And I'm back in business Thanks, Jeff. - Original Message - From: Dieter Menne [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; R-Help [EMAIL PROTECTED] Sent: Sunday, November 16, 2003 10:23 AM Subject:

[R] prevent conversion to factors in aggregate?

2003-11-15 Thread Jeff D. Hamann
the dbh factor into an integer in the data.frame? Thanks, Jeff. --- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon USA 97339-1421 (office) 541-754-1428 (cell) 541-740-5988 [EMAIL PROTECTED] www.forestinformatics.com __ [EMAIL

[R] created data doesn't remain when split...

2003-11-06 Thread Jeff D. Hamann
14 0 DF 33 148NA 5 15 0 DF 43 182NA when the value of ct for all the records in all the data.frames should be 1, not NA. Why is that? Am I missing a step here? I'm running R 1.7.1 on Win2k. Jeff. --- Jeff D. Hamann Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon

[R] nlm, hessian, and derivatives in obj function?

2003-10-17 Thread Jeff D. Hamann
. --- Jeff D. Hamann Hamann, Donald and Associates, Inc. PO Box 1421 Corvallis, Oregon USA 97339-1421 (office) 541-754-1428 (cell) 541-740-5988 [EMAIL PROTECTED] www.hamanndonald.com __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo

[R] colnames from submatrix?

2003-10-13 Thread Jeff D. Hamann
Hi R-Wizards: I've looking through the R docs and have yet to find what I'm looking for and have tried a few intermediate steps to now avail yet and rather than spend another few hours looking for the solution, I figured I would post a message. I have a matrix (actually a set of them) that I

[R] can't get names from vector in nlm calls

2003-09-29 Thread Jeff D. Hamann
=system2, data=kmenta, fitmethod=OLS ) My question is why can't I simply call names on the vector (sv2) that is passed into the nlm function to get the parameters? Thanks, Jeff. --- Jeff D. Hamann Hamann, Donald and Associates, Inc. PO Box 1421 Corvallis, Oregon USA 97339-1421 (office) 541-754

[R] ack! my package is broken in win32

2003-01-07 Thread Jeff D. Hamann
I was trying to talk someone through downloading R and running my package and they kept getting the following error message: ## perform OLS on each of the equations in the system fit1sls - ols.systemfit( system, inst, labels, kmenta ) Error in model.frame(formula, rownames, variables,

[R] even stranger...

2003-01-07 Thread Jeff D. Hamann
I just wrote a note about finding some strange things in R 1.6.1 and thought my package was broken. I ran the package examples in FreeBSD, from emacs in Win32 and rterm in Win32 and the package run just fine. When I ran the package from the RGUI, I got lots of problems. Is this common and is there

[R] newbie and bivariate distributions

2002-12-31 Thread Jeff D. Hamann
I have a data set I would like to fit truncated bivariate distributions to. Are there any packages suited to this task? Jeff. __ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help