[R] print (names and) values of parameters of function

2016-10-08 Thread Christian Hoffmann
= ", y, "... = " , ... Combinations of eval, substitute, formals, etc. should be able to do the job, but I didn't find help online. Anyone lend a helping hand? TIA Christian -- Christian W. Hoffmann CH - 8915 Hausen am Albis, Schweiz Rigiblickstrasse 15 b, Tel.+4

[R] Sweave vs. R CMD Rd2pdf --no-clean --force

2016-07-04 Thread Christian Hoffmann
tached base packages: [1] tools stats4splines parallel datasets [6] compiler graphics grDevices stats grid [11] utils methods base other attached packages: [1] survival_2.38-3spatial_7.3-11 .. Any ideas ? C. -- Christian W. Hoffmann CH - 8915 Hausen am Albis, Schw

[R] object 'add.expr' not found

2016-06-27 Thread Christian Hoffmann
ir, enclos) : object 'add.expr' not found Can anyone give me a pointer to where I should investigate my problem further? C. -- Christian W. Hoffmann CH - 8915 Hausen am Albis, Schweiz Rigiblickstrasse 15 b, Tel.+41-44-7640853 mailto: christ...@echoffmann.ch hom

[R] value of variable in ls()

2015-10-18 Thread Christian Hoffmann
This may seem trivial: ls() gives me names of variables as a character vector. How can I print the values 'behind' those character values: ls() > "a" > a [1] 5 How can I do e.g. print("unknown"(ls())) and get the variable values in my current enviro

[R] ERROR: unable to collate and parse R files

2015-07-19 Thread Christian Hoffmann
I tried in vain to execute R CMD install /Users/hoffmann/R/cwhmisc ('cwhmisc' is the package name) * installing to library ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library’ * installing *source* package ‘cwhmisc’ ... ** R Error : '\&' ist eine unbekann

[R] R CMD wants (unnecessary) packages ?

2015-03-01 Thread Christian Hoffmann
r recently uninstalled packages). Any help ? TIA -- Christian W. Hoffmann CH - 8915 Hausen am Albis, Schweiz Rigiblickstrasse 15 b, Tel.+41-44-7640853 mailto: christ...@echoffmann.ch home: www.echoffmann.ch __ R-help@r-project.org mailing list -- To U

[R] infix paste and package

2014-06-19 Thread Christian Hoffmann
sage{ a \%&\% b } will fail in R CMD check --as-cran saying "I am" %&% + " hungry" # [1] "I am hungry" Error: could not find function "%&%" Execution halted. What is wrong in my .Rd file? PS: The placement of the closing } and the esca

[R] was: 127.0.0.1:22381/doc/html/index.html hep.start won't start

2014-04-15 Thread Christian Hoffmann
Dear All, I narrowed down my problem to library(tcltk) in .First() which causes the freezing of R and Aquamacs running it. What could make tcltk behave in this way? Christian I am using Aquamacs 3.0a (GNU Emacs 24.3.50.2)with R3.0.3, newly installed: sessionInfo() --- R version 3.0

[R] 127.0.0.1:22381/doc/html/index.html hep.start won't start

2014-04-02 Thread Christian Hoffmann
Dear All, Sorry to bother you. I narrowed my problem to the function help.start() which causes the freezing of R by mill endlessly after M-x R waiting for 127.0.0.1:22381/doc/html/index.html to load. I am using Aquamacs 3.0a (GNU Emacs 24.3.50.2)with R3.0.3, newly installed: sessionInfo()

[R] 127.0.0.1:22381/doc/html/index.html won't start 2.

2014-04-01 Thread Christian Hoffmann
Dear All, Sorry to bother you. I am using Aquamacs 3.0a (GNU Emacs 24.3.50.2), newly installed, on Mac OSX 10.7.5 . Somehow, on my mac even the newly installed R3.0.3 will mill endlessly after M-x R waiting for 127.0.0.1:22381/doc/html/index.html to load. How can I find out, what is wrong

[R] 127.0.0.1:22381/doc/html/index.html won't start

2014-04-01 Thread Christian Hoffmann
Dear All, Sorry to bother you. I am using Aquamacs 3.0a (GNU Emacs 24.3.50.2), newly installed. Somehow, on my mac even the newly installed R3.0.3 will mill endlessly after M-x R waiting for 127.0.0.1:22381/doc/html/index.html to load. How can I find out, what is wrong with my configuration

[R] history ?? 2 no readline ?

2013-12-16 Thread Christian Hoffmann
Hi, What could the cause of history() Error in savehistory(file) : no history available to save savehistory(file="myhist") Error in savehistory(file) : no history available to save save.image() be? I have the information in the attached gif Cheers Christian -- Christian W

[R] help.start hangs

2013-11-06 Thread hoffmann
ot_1.3-9 Matrix_1.0-14 [13] MASS_7.3-29KernSmooth_2.23-10 cwhmisc_4.2 lattice_0.20-23 Who is willing to give me advice? TIA -- Christian -- Christian W. Hoffmann, CH - 8915 Hausen am Albis, Switzerland Rigiblickstrasse 15 b, Tel.+41-44-7640853 christ...@echoffmann.ch, www.echoffm

[R] there is no package called 'boot'

2013-10-14 Thread Christian Hoffmann
Hi, R CMD mypackage /Users/hoffmann/R/cwhmisc check --as-cran gives me * checking Rd cross-references ... WARNING Error in find.package(package, lib.loc) : there is no package called 'boot' although there is no textual reference to 'boot' in my /R and /man within /

[R] (lme4) p-values for single terms in mixed models involved in sig interactions

2013-07-06 Thread sarah hoffmann
I am using lme4 to fit a mixed effects model to my data. I have a significant interaction between two variables. My question is what is the correct way to get p-values for single terms involved in that interaction. I have been using stepwise backwards deletion and model comparisons to get p-val

[R] chooseCRANmirror

2013-05-31 Thread Christian Hoffmann
Obviously, chooseCRANmirror() is run at every start. Can I permanently store my choice with q() and 'yes' ? Cheers Christian -- Christian W. Hoffmann, CH - 8915 Hausen am Albis, Switzerland Rigiblickstrasse 15 b, Tel.+41-44-7640853 c-w.hoffm...@sunrise.ch, christ...@ech

[R] Aquamacs Preferences not showing, windows inaccessible, Scrolling not possible !!!

2013-01-12 Thread Christian Hoffmann
. Menu 'windows' shows several windows, but clicking on them will not open their buffers. Also, reinstallation of Aquamacs-2.4 (the newest version) did not help. What can I do? Christian -- Christian W. Hoffmann, CH - 8915 Hausen am Albis, Switzerland Rigiblickstrasse 15 b, Tel.+41-44

[R] R --no-readline ?, was: history and readline, Mac OSX

2012-12-06 Thread Christian Hoffmann
-14 spatial_7.3-5 rpart_3.1-55 nnet_7.3-5 [5] nlme_3.1-105 mgcv_1.7-22 foreign_0.8-51 codetools_0.2-8 [9] cluster_1.14.3class_7.3-5 boot_1.3-7 Matrix_1.0-9 [13] MASS_7.3-22 KernSmooth_2.23-8 cwhmisc_4.0 lattice_0.20-10 > -- Christian W. Hoffmann, CH - 8915 Hau

[R] .Rd vs. .R, matrix multiplication

2012-12-03 Thread Christian Hoffmann
execute this execution. What can be done here? TIA Christian -- Christian W. Hoffmann, CH - 8915 Hausen am Albis, Switzerland Rigiblickstrasse 15 b, Tel.+41-44-7640853 c-w.hoffm...@sunrise.ch, christ...@echoffmann.ch, www.echoffmann.ch __ R-help@r

[R] install own package ?

2012-11-14 Thread Christian Hoffmann
what happens here: > install.packages("/Users/hoffmann/R/cwhmisc_4.0.tar.gz",repos = NULL) Error: file '/Users/hoffmann/R/cwhmisc_4.0.tar.gz' is not an OS X binary package > sessionInfo() R version 2.15.1 (2012-06-22) Platform: x86_64-apple-darwin9.8.0/x86_

[R] division giving spurious NA

2012-11-05 Thread Christian Hoffmann
935 NA NANA [2,] 0.4795913 0.253541 NA 0.9782823 where do the two Nas in columns 2 and 4 come from? TIA Christian -- Christian W. Hoffmann, CH - 8915 Hausen am Albis, Switzerland Rigiblickstrasse 15 b, Tel.+41-44-7640853 c-w.hoffm...@sunrise.ch, christ...@echoffmann

[R] boot: how is t0 calculated?

2012-10-22 Thread Thomas Hoffmann
Dear all, I am doing log-transformed bootstrap regression using: x=c(0.038,0.054,1.030,1.250,10.240,52.000,228.100,240.000,758.000,1502.600,0.140,9.170,280.000,1.000,0.150,0.388,20) y=c(3961.5,25987.5,526557,321094.5,642,23592715.5,4050, 228853521.1,320980392,42900,58435.5,13525240.5

[R] quartz.save of the FAQ (Mac)

2012-10-22 Thread Christian Hoffmann
() dev.off(dev.copy(device = pdf, file = file, ...)) dev.set(current.device) print(paste(file, "generated.")) } -- Christian W. Hoffmann, CH - 8915 Hausen am Albis, Switzerland Rigiblickstrasse 15 b, Tel.+41-44-7640853 c-w.hoffm...@sunrise.ch, christ...@e

[R] help stored permanently

2012-10-22 Thread Christian Hoffmann
to enter M-x R . TIA --Christian -- Christian W. Hoffmann, CH - 8915 Hausen am Albis, Switzerland Rigiblickstrasse 15 b, Tel.+41-44-7640853 c-w.hoffm...@sunrise.ch, christ...@echoffmann.ch, www.echoffmann.ch __ R-help@r-project.org mailing list ht

[R] history and readline, Mac OSX

2012-10-17 Thread Christian Hoffmann
-50 codetools_0.2-8 [9] cluster_1.14.2class_7.3-3 boot_1.3-4 Matrix_1.0-6 [13] MASS_7.3-18 KernSmooth_2.23-7 cwhmisc_3.0 lattice_0.20-6 > Who is willing to give me advice? TIA -- Christian -- Christian W. Hoffmann, CH - 8915 Hausen am Albis, Switzerland Rigiblickstrasse 15 b, Tel.

[R] calculate RMSE using bootstrap

2012-10-15 Thread Thomas Hoffmann
Dear all, I need to calculate confidence intervals of a and b and root mean square error (RMSE) of a power law given by Y = a X^b I calculate the confidence intervals by: reg.ln = function(tab.xy, indices){ tab.xy = storage[indices,] res.lm = lm(log(y)~log(x), data=tab.x

[R] history() does not work? 2

2012-10-10 Thread Christian Hoffmann
readline enabled: How can I do that on mac osx? I work with R version 2.15.1 (2012-06-22) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) TIA --Christian -- Christian W. Hoffmann, CH - 8915 Hausen am Albis, Switzerland Rigiblickstrasse 15 b, Tel.+41-44-7640853 c-w.hoffm...@sunrise.ch, christ

[R] Contacting Delphi ??

2012-10-10 Thread Christian Hoffmann
What does the sudden appearance of "Contacting Delphi ..the oracle is unavailable. We apologize for any inconvenience." mean? A bug? It appears at plotting. Thanks Christian -- Christian W. Hoffmann, CH - 8915 Hausen am Albis, Switzerland Rigiblickstrasse 15 b, Tel.+41-44

[R] history() does not work?

2012-10-10 Thread Christian Hoffmann
up anything useful. TIA --Christian -- Christian W. Hoffmann, CH - 8915 Hausen am Albis, Switzerland Rigiblickstrasse 15 b, Tel.+41-44-7640853 c-w.hoffm...@sunrise.ch, christ...@echoffmann.ch, www.echoffmann.ch __ R-help@r-project.org mailing list ht

[R] device error pdf

2012-10-08 Thread Christian Hoffmann
)) : '...' used in an incorrect context I searched the Web, but found no hint how to avoid this error. So the culprit could be device = pdf On the other hand executing pdf() generates the file Rplotlpr.ps but this very small and causes the Adobe Reader to say This f

[R] R CMD check and browser

2012-09-15 Thread Christian Hoffmann
Hi, Every time I do system("R CMD check mypackckage" the process executes a help.start(). Why does this happen? Cheers Christian -- Christian W. Hoffmann, CH - 8915 Hausen am Albis, Switzerland Rigiblickstrasse 15 b, Tel.+41-44-7640853 c-w.hoffm...@sunrise.ch, christ...@ech

[R] history ??

2012-09-10 Thread Christian Hoffmann
Hi, What could the cause of > history() Error in savehistory(file) : no history available to save > savehistory(file="myhist") Error in savehistory(file) : no history available to save > save.image() be?. Cheers Christian -- Christian W. Hoffmann, CH - 8915 Hausen am

[R] Sweave Error: c("'...Rnw'", "'...Rnw'") is not ASCII and does not declare an encoding

2012-09-10 Thread Christian Hoffmann
Sorry to bother everyone. What has changed in Sweave since 2009? Sweave("Crs.Rnw") Error: c("'Crs.HdrFct.Rnw'", "'Crs.Rnw'") is not ASCII and does not declare an encoding No error in 2009 with the same files. heers Christian -- Christian W

[R] Package cwhmisc and problems

2012-08-28 Thread Christian Hoffmann
codetools_0.2-8 [9] cluster_1.14.2class_7.3-3 boot_1.3-4Matrix_1.0-6 [13] MASS_7.3-18 KernSmooth_2.23-7 cwhmisc_3.0 lattice_0.20-6 > system("R CMD check /Users/hoffmann/R/cwhmisc") * using log directory '/Users/hoffmann/Projects/LtoQ/Mathema

[R] fitting power growth

2012-07-10 Thread Thomas Hoffmann
Dear all I am using the x and y vectors as defined below and want do to a power law regression: y = a x^b using > lm(log(y)~log(x)) gives reasonable values (b=1.23) but is not very popular due to biases of back-transformation from log to non-log values. Using > nls(y~a*x^b,start=list(a=1

[R] help with expression

2012-03-14 Thread Thomas Hoffmann
Hi all, I still fail to plot an axis title with the following expression: plot(0,xlab=expression('(SOC [' * kgm^{-2} * '])' * ^{-2})) the xlab should look like: (SOC [kgm^2])^0.25 with an out bracket and a superscript. Thanks for your advice. Thomas [[alternative HTML version del

[R] start.help() and browser

2012-01-16 Thread Christian Hoffmann
Matrix_1.0-1 [13] MASS_7.3-16 KernSmooth_2.23-6 cwhmisc_3.0 lattice_0.20-0 Warning message: 'DESCRIPTION' file has 'Encoding' field and re-encoding is not possible IS THIS ESSENTIAL ?? I would appreciate help very much Christian -- Christian W. Hoffmann, Rigibli

[R] What does the function treeresponse from the praty package do exactly?

2010-08-16 Thread Verena Hoffmann
only two risk groups I used ctree on the probability for the event which I got from treeresponse to get the optimal cutpoint. Is this a good approach? Maybe someone can help? Thanks a lot, Verena Hoffmann __ R-help@r-project.org mailing list https:

[R] Aquamacs/emacs and color of echo in R console 2!

2009-11-24 Thread Christian Hoffmann
corner I can see no hint how to make a choice, let alone make it permanent. Or will I have to try "Appearance" > "Customize Aquamacs"? M-x color-theme-select opens an empty frame with nothing to select from (Hint given in http://www.emacswiki.org/emacs/AquamacsFAQ) What

[R] Aquamacs/emacs and color of echo in R console

2009-11-24 Thread Christian Hoffmann
t alone make it permanent. Or will I have to try "Appearance" > "Customize Aquamacs"? M-x color-theme-select opens an empty frame with nothing to select from (Hint given in http://www.emacswiki.org/emacs/AquamacsFAQ) What am I missing? Thanks for help. C.Hof

[R] get.gpar, grid.Call

2009-11-23 Thread Christian Hoffmann
ce code from another machine and source()-ed it. Any ideas. It seems to belong in the base package, but this is unavailable for install.packages or update.packages. Thanks for help. C.Hoffmann -- Dr. Christian W. Hoffmann, Swiss Federal Research Institute WSL Zuercherstrasse 111, CH-8903 Birm

[R] Simulation of linear lists

2009-01-31 Thread Christian Hoffmann
Christian -- -- Christian W. Hoffmann, Rigiblickstrasse 15 b, CH-8915Hausen am Albis, Switzerland, Tel +41-44-7640853, c-w.hoffm...@sunrise.ch __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide ht

[R] How to retrieve a method

2008-12-05 Thread Christian Hoffmann
. Is there a wayplot.default to learn which different versions of "plot" there are except trying plot.lm, ... best -c -- Dr. Christian W. Hoffmann, Swiss Federal Research Institute WSL Zuercherstrasse 111, CH-8903 Birmensdorf, Switzerland Tel +41-44-7392-277 (office), -111(exchange), -215

[R] gap.plot() and axes=F

2008-08-12 Thread Verena Hoffmann
,6,7,8,9,10,11) gap.plot(a,b,gap=c(10,49), gap.axis="x" ) axis(1, at=c(1,2,3,4,5,6,7,8,9,50,55,60,65,70)) axis.break(axis=1,9.5,style="slash", brw=0.03, breakcol="red") Thankful for advice, Verena Hoffmann __ R-help

[R] determing font type in expression

2008-07-22 Thread Thomas Hoffmann
Dear R-Maillist members, I would like to label the y-axis of a plot with a mathematical expression "sed.rate mm a-1", where the "-1" is printed subscript. I am using font.lab=15 for the x-axis. However, when plotting the y-axis with the expression-function it appears in a different font. Does

[R] creating expression with for-loop

2008-04-09 Thread Thomas Hoffmann
Dear listmembers I would like to create an expression that looks like labl = expression(10^1,10^2,10^3,10^4,10^5) using a for-loop. However for (i in 1:5){ labl[i]=expression(10^i) } does not do the right thing. Does anybody knows help? Thanks Thomas

[R] filled.contour with log axis

2008-02-16 Thread Thomas Hoffmann
Dear all, I would like to generate a filled.contour plot with log x and y axis, however using: filled.contour(as.line,log="xy") results in a warning message. Does anybody knos what to do? Thanks Thomas __ R-help@r-project.org mailing list https://

Re: [R] axis names in triangle.plot

2007-12-18 Thread Thomas Hoffmann
ed row.names? > Please return the results of class(grain) and names(grain) > > Cheers, > PS: If you have questions related to ade4, you can use the adelist > (http://listes.univ-lyon1.fr/wws/info/adelist) > > > Thomas Hoffmann wrote: >> Hi folks, >> >> I am using

[R] axis names in triangle.plot

2007-12-18 Thread Thomas Hoffmann
Hi folks, I am using a data.frame with sediment grain sizes: > grain sand silt clay OAT 10.03 56.77 18.25 OAT 10.40 57.40 17.94 WG1 50.03 20.68 12.57 WG1 43.20 25.69 13.41 WG1 33.89 31.10 14.48 WG2 2.84 62.81 20.79 WG2 2.79 60.46 19.16 WG2 16.27 33.04 6.48 WG2 1.39 57.90 9.13 WG3 4.

[R] fit to power law with inknown zero

2007-10-18 Thread Thomas Hoffmann
Dear R-helpers I would like to do a fit of the form: y = a (x+c)**b, where a, b and c are unknown. Does anybody know how to do it? Thanks Thomas __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the post

[R] power law fit with unknown zero

2007-10-17 Thread Thomas Hoffmann
Dear R-helpers I would like to do a fit of the form: y = a (x+c)**b, where a, b and c are unknown. Does anybody know how to do it? Thanks Thomas __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the post