[R] installing rimage
dear list while installing the package rimage, i get the error message checking jpeglib.h usability... no checking jpeglib.h presence... no checking for jpeglib.h... no configure: error: Sorry, can't find jpeglib header ERROR: configuration failed for package 'rimage' although i have installed jpeglib as required. does R not find this library? but why did it find the fftw library which rimage also required and i installed at the very same place? OS: Linux Suse 9.3 R version 2.1.0 thanks Sebastian Leuzinger University of Basel, Department of Environmental Science Institute of Botany Schönbeinstr. 6 CH-4056 Basel ph0041 (0) 61 2673511 fax 0041 (0) 61 2673504 email [EMAIL PROTECTED] web http://pages.unibas.ch/botschoen/leuzinger __ R-help@stat.math.ethz.ch 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, reproducible code.
[R] write data from function into external table
Dear list, My apologies if a solution / explanation to this already exists on the list, but it is difficult to assign it to a certain keyword. test-c(1:3) testfct - function(x) {test[1]-100} test [1] 1 2 3 testfct(1) [1] 1 2 3 Basically, I would like to write data into an external table that the function does not know. Why is this not working / what alternatives exist? Thanks, Sebastian Sebastian Leuzinger University of Basel, Department of Environmental Science Institute of Botany Schönbeinstr. 6 CH-4056 Basel ph0041 (0) 61 2673511 fax 0041 (0) 61 2673504 email [EMAIL PROTECTED] web http://pages.unibas.ch/botschoen/leuzinger __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] write data from function into external table
Thanks for the hints, they are useful to me. However, I still do not understand why my approach fails. In a user defined function, R does not seem to want to write into an object defined outside this function. (see my first example below). I guess there is some logic behind this. On Wednesday 14 June 2006 14:22, you wrote: Here are two alternatives. See ?- testfct1 - function() test[1] - 100 # following one can be written more compactly as # testfct2 - function(test) replace(test, 1, 100) testfct2 - function(test) { test[1] - 100; test } # test test - 1:3; testfct1(); test test - 1:3; test - testfct2(test); test On 6/14/06, Sebastian Leuzinger [EMAIL PROTECTED] wrote: Dear list, My apologies if a solution / explanation to this already exists on the list, but it is difficult to assign it to a certain keyword. test-c(1:3) testfct - function(x) {test[1]-100} test [1] 1 2 3 testfct(1) [1] 1 2 3 Basically, I would like to write data into an external table that the function does not know. Why is this not working / what alternatives exist? Thanks, Sebastian Sebastian Leuzinger University of Basel, Department of Environmental Science Institute of Botany Schönbeinstr. 6 CH-4056 Basel ph0041 (0) 61 2673511 fax 0041 (0) 61 2673504 email [EMAIL PROTECTED] web http://pages.unibas.ch/botschoen/leuzinger __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Sebastian Leuzinger University of Basel, Department of Environmental Science Institute of Botany Schönbeinstr. 6 CH-4056 Basel ph0041 (0) 61 2673511 fax 0041 (0) 61 2673504 email [EMAIL PROTECTED] web http://pages.unibas.ch/botschoen/leuzinger __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] interruption when pasting code into R under linux
hello, has anyone come across the following rather mysterious problem: when pasting large bits of code (100 and more lines) into the R console with the central mouse button (under linux), only part of the code is pasted, and the text interrupts somewhere arbitrarily. It does not happen when smaller bits are pasted subsequently. I use linux suse 9.3 with the latest version of R Sebastian Leuzinger Institute of Botany, University of Basel Schönbeinstr. 6 CH-4056 Basel ph0041 (0) 61 2673511 fax 0041 (0) 61 2673504 email [EMAIL PROTECTED] web http://pages.unibas.ch/botschoen/leuzinger __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] suppress tick labels
hello, is R able to suppress tick labels (not tick marks)? i know there is a way around this with axes=F and then draw new axes, but it would be easier to suppress them in the first place. -- Sebastian Leuzinger Institute of Botany, University of Basel Schönbeinstr. 6 CH-4056 Basel ph0041 (0) 61 2673511 fax 0041 (0) 61 2673504 email [EMAIL PROTECTED] web http://pages.unibas.ch/botschoen/leuzinger __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] axis fontsize suse 9.3
hello, does anybody have an idea why the fontsize is impossible to be changed in R version 2.1.0 under linux suse 9.3? par(cex.axis=1.5) does not change anything and par(cex.axis=2) triggers the error message X11 font at size 16 could not be loaded any hints appreciated -- Sebastian Leuzinger Institute of Botany, University of Basel Schönbeinstr. 6 CH-4056 Basel ph0041 (0) 61 2673511 fax 0041 (0) 61 2673504 email [EMAIL PROTECTED] web http://pages.unibas.ch/botschoen/leuzinger __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] change factor labels
it must be terribly simple, can someone quickly help me? test - data.frame(y=c(1:10), x=as.factor(c(rep(a,5),rep(b,5 how can i change the factor labels from a and b to for example u and v? i don't succeed with factor() thanks a lot Sebastian Leuzinger Institute of Botany, University of Basel __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] significance of spectal peak with spectrum()
Hello, has anybody got a simple recepie to test the significance level of the peaks after using spectrum() ? (R-version 2.0.1, linux SuSE9.3) -- Sebastian Leuzinger Institute of Botany, University of Basel Schönbeinstr. 6 CH-4056 Basel ph0041 (0) 61 2673511 fax 0041 (0) 61 2673504 email [EMAIL PROTECTED] web http://pages.unibas.ch/botschoen/leuzinger __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] significance of spectal peak with spectrum()
the null hypothesis would be: one particular frequency peak is not significantly different from the background noise. On Friday 16 September 2005 09:28, you wrote: Sebastian Leuzinger wrote: Hello, has anybody got a simple recepie to test the significance level of the peaks after using spectrum() ? What is you null hypothesis? - Kind of noise? - One particular frequency is noisy or all noisy? - ... Uwe Ligges (R-version 2.0.1, linux SuSE9.3) __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] significance of spectal peak with spectrum()
thanks a lot. I am interested in the more complex case where the interest is about a specific frequency being significant, not at least one frequency being significantly different from the backgrond white noise. I have discussed this issue with very knowledgable people in the field who could not help me either. I would be interested in any references as well. On Friday 16 September 2005 10:36, you wrote: Sebastian Leuzinger wrote: the null hypothesis would be: one particular frequency peak is not significantly different from the background noise. So you want to know, e.g., whether there is something going on at 1000 Hz? This is difficult: If you are considering the periodogram to be a density, then you do not know the distribution of the value of a single frequency, because it depends on the stuff going on at other frequencies. Second point is (and already asked): Kind of [background] noise? The only really easy test is for the Null signal is white noise, hence H1 is at least one non-white-noisy frequency. [If somebody knows a really good book or papers that cover other cases than the trivial one mentioned above, I am very interested to hear about them, BTW.] If you have another kind of noise (such as blue or pink noise), things become even worse. Uwe Ligges On Friday 16 September 2005 09:28, you wrote: Sebastian Leuzinger wrote: Hello, has anybody got a simple recepie to test the significance level of the peaks after using spectrum() ? What is you null hypothesis? - Kind of noise? - One particular frequency is noisy or all noisy? - ... Uwe Ligges (R-version 2.0.1, linux SuSE9.3) -- Sebastian Leuzinger Institute of Botany, University of Basel Schönbeinstr. 6 CH-4056 Basel ph0041 (0) 61 2673511 fax 0041 (0) 61 2673504 email [EMAIL PROTECTED] web http://pages.unibas.ch/botschoen/leuzinger __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] stl()
Hello, anyone got an idea on how to use stl() so that the remainder eventually becomes white noise? i used stl repeatedly but there is autocorrelation in the remainder that i can't get rid of. os: linux suse9.3 Sebastian Leuzinger Institute of Botany, University of Basel Schönbeinstr. 6 CH-4056 Basel ph0041 (0) 61 2673511 fax 0041 (0) 61 2673504 email [EMAIL PROTECTED] web http://pages.unibas.ch/botschoen/leuzinger __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] computation time gls()
dear R users i try to fit a gls model to a rather large dataset with an AR(1) error structure: attach(sf.a1filt) m1.a.gls - gls(fluxt~co2+light+vpd+wind, correlation = corAR1(0.8)) summary(m1.a.gls) detach(sf.a1filt) there are approx. 5000 observations, and the computation seems to take several hours, i actually killed the process because i became too impatient. is there any way to be more efficient with R? (because really the model will be more complex, i.e. more predictors and higher autoregressive order). os: linux suse, R version: latest, machine: ibm thinkpad 42T, 1GHz RAM Sebastian Leuzinger Institute of Botany, University of Basel Schönbeinstr. 6 CH-4056 Basel ph0041 (0) 61 2673511 fax 0041 (0) 61 2673504 email [EMAIL PROTECTED] web http://pages.unibas.ch/botschoen/leuzinger __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] reading .irb files into R
Hi, I am wondering if anybody has experience with importing .irb files (Temperature matrices from infratec Thermal cameras) into R. A hint as to what package could be used would be appreciated. OS Linux 9.3 R: 2.1.0 Sebastian __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] RMySQL installation: libz missing
hi christoph i had the same problem recently, i ended up finding that the following linux packages were missing (or at least one of them). php4-mysql php5-mysql php5-mysqli maybe that helps, sebastian On Tuesday 03 May 2005 12:54, Christoph Lehmann wrote: Hi I run suse linux 9.1 and I installed MySQL server, client, devel, bench. DBI is installed, when I try to install RMySQL I get an error saying, that libz is missing. (paths to libs were set:export PKG_CPPFLAGS=-I/usr/include/mysql/ export PKG_LIBS=-L/usr/lib/mysql/ -lmysqlclient) so my question: where do I get the libz files (are these mysql files? if yes, why were they not installed at least by mysql-devel?) thanks for your kind help christoph __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Sebastian Leuzinger Institute of Botany, University of Basel Schönbeinstr. 6 CH-4056 Basel ph0041 (0) 61 2673511 fax 0041 (0) 61 2673504 email [EMAIL PROTECTED] web http://pages.unibas.ch/botschoen/leuzinger __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] Roots of quadratic system.
Hi, I used polyroot() and it works fine. Sebastian On Monday 02 May 2005 02:51, John Janmaat wrote: Hello Bill, I have used the optimization approach you suggest in past. I was hoping that someone had written something specifically for solving a system of nonlinear equations, as the fsolve function does in MatLab. The Octave version is somewhat limited compared to the MatLab version, and I like working in R. Thanks, John. ps: I would like the system to have a unique solution, but there is nothing about the system that precludes multiple equilibria. Of course, the L(x) = ... approach can search for multiple equilibria if I try enough different starting points. [EMAIL PROTECTED] wrote: Are you looking for a unique solution or families of solutions? Can't you turn a root-finding problem for a system of equations with a unique solution into an optimisation problem, anyway? E.g. You want to solve f1(x) = g1 f2(x) = g2 ... Why not optimise L(x) = (f1(x) - g1)^2 + (f2(x) - g2)^2 + ... with respect to x? If the minimum value is zero, then you are done; if it is greater than zero your original system does not have a solution. If you are in the complex domain the changes needed are obvious. V. : -Original Message- : From: [EMAIL PROTECTED] : [mailto:[EMAIL PROTECTED] On Behalf Of John Janmaat : Sent: Monday, 2 May 2005 12:48 AM : To: r-help@stat.math.ethz.ch : Subject: [R] Roots of quadratic system. : : : Hello, : : I have a system of quadratic equations (results of a : Hamiltonian optimization) : which I need to find the roots for. Is there a package : and/or function which : will find the roots for a quadratic system? Note that I am : not opimizing, but : rather solving the first order conditions which come from a : Hamiltonian. I am : basically looking for something in R that will do the same : thing as fsolve in : Matlab. : : Thanks, : : John. : : == : Dr. John Janmaat : Department of Economics : Acadia University : Tel: 902-585-1461 : : __ : R-help@stat.math.ethz.ch mailing list : https://stat.ethz.ch/mailman/listinfo/r-help : PLEASE do read the posting guide! : http://www.R-project.org/posting-guide.html -- Sebastian Leuzinger Institute of Botany, University of Basel Schönbeinstr. 6 CH-4056 Basel ph0041 (0) 61 2673511 fax 0041 (0) 61 2673504 email [EMAIL PROTECTED] web http://pages.unibas.ch/botschoen/leuzinger __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] libz library missing while installing RMySQL
Thanks for the advice! For those interested in what the final solution was to installing RMySQL (R 2.1.0, Linux SuSE 9.3): The following packages were not installed: php4-mysql php5-mysql php5-mysqli mysql-devel at least one of them was obviously missing On Thursday 28 April 2005 10:37, you wrote: Sebastian, I'm really not an expert with database systems, and I don't have SuSE (but Fedora), so I may be unable to help you. However, I just had a look at the issue, and I could install RMySQL in R 2.1.0 in Fedora. Here some points that I noticed: - You need package R package DBI which must be installed first. - You also need devel packages of mysql. I don't know how SuSE handles packaging libraries, and I don't know what you have already. However, I needed these mysql pieces to install RMySQL: mysql-devel-3.23.58-16.FC3.1 mysql-server-3.23.58-16.FC3.1 mysql-3.23.58-16.FC3.1 These in turn seem to need perl libraries: perl-DBD-MySQL-2.9003-5 perl-DBI-1.40-5 It seems that in some systems the piece that is called mysql in FC may be called mysql-client. I don't know how things are done in SuSE and what you have there, but I hope you find some useful information. However, since it installs smoothly in my FC, I can't reproduce your problems. Perhaps INSTALL and README files in RMySQL/inst directory of the source will tell you something more useful. best wishes, jari oksanen -- Sebastian Leuzinger Institute of Botany, University of Basel Schnbeinstr. 6 CH-4056 Basel ph0041 (0) 61 2673511 fax 0041 (0) 61 2673504 email [EMAIL PROTECTED] web http://pages.unibas.ch/botschoen/leuzinger __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] libz library missing while installing RMySQL
Hello Trying to install the MySQL package, I get the following error. The help archive contains something on this issue but did not help. I work on linux suse 9.3 Configuration error: Could not locate the library libz required by MySQL. The library libz however is not on any mirrors I checked. Sebastian Leuzinger web http://pages.unibas.ch/botschoen/leuzinger __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] libz library missing while installing RMySQL
Thanks Jari although these libraries are installed now, I get the following message: Configuration error: could not find the MySQL installation include and/or library directories. Manually specify the location of the MySQL libraries and the header files and re-run R CMD INSTALL. Somebody has had this problem before but that did not help me. Can somebody give me a hint? Sebastian On Wednesday 27 April 2005 10:40, you wrote: On Wed, 2005-04-27 at 09:43 +0200, Sebastian Leuzinger wrote: Hello Trying to install the MySQL package, I get the following error. The help archive contains something on this issue but did not help. I work on linux suse 9.3 Configuration error: Could not locate the library libz required by MySQL. The library libz however is not on any mirrors I checked. Sebastian, You made some R core people very happy: they have tried very hard to explain that there is a difference between a *library* and a *package*, and that this difference really matters. This seems to be the first case on R-News when this distinction really seems to matter: you need a library. I don't know about SuSE (or with some other really weird capitalization), but in my system libz belongs to package zlib that you must install, and in my system you'd probably need zlib-devel as well (this is FC3). So they are system level libraries that come with SuSe instead of R packages. cheers, jari oksanen -- Sebastian Leuzinger Institute of Botany, University of Basel Schnbeinstr. 6 CH-4056 Basel ph0041 (0) 61 2673511 fax 0041 (0) 61 2673504 email [EMAIL PROTECTED] web http://pages.unibas.ch/botschoen/leuzinger __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] .libPaths()
Hello I use the function .libPaths() .libPaths() [1] /usr/local/lib/R/library .libPaths(c(/usr/local/lib/myRlib,/usr/local/lib/library)) .libPaths() [1] /usr/local/lib/R/library but it simply does not pick up the new path. Can anybody help? (The problem originates from the inability to install packages into /usr/local/lib/R/library, running R under linux suse 9.3) Sebastian Leuzinger __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] predicting x values in a polynomial regression
Dear R I would like to predict x-values in a 4th order polynomial regression: x - c(1:10) y - c(2,7,19,49,89,94,97,98,92,89) # these are percentages lm(y ~ x+I(x^2)+I(x^3)+I(x^4)-1) - lm1 now I would like to know what the model fit (x-value) for y=50 is. This results in solving a 4th order quadratic equation. polyroot() does not really help because it only gives me the x-values for y=0. I have tried with nls() which sort of works, but I am sure there is a much easier solution to that, can anyone give me a hint? -- Sebastian Leuzinger Institute of Botany, University of Basel Schönbeinstr. 6 CH-4056 Basel Ph. 0041 (0) 61 267 3511 fax 0041 (0) 61 2673504 email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] web: http://www.unibas.ch/botschoen/leuzinger/e.shtml http://www.unibas.ch/botschoen/leuzinger/d.shtml __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] common axis label in multiple plot area
Hello A very short question: Using multiple plots with par(mfrow=c(3,3)), how can I get R to indicate one common y- and x-axis label? I tried to use text() in par, but this is then overwritten when I plot the graphs. -- Sebastian Leuzinger Institute of Botany, University of Basel Schönbeinstr. 6 CH-4056 Basel Ph. 0041 (0) 61 267 3511 fax 0041 (0) 61 2673504 email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] web: http://www.unibas.ch/botschoen/leuzinger/e.shtml http://www.unibas.ch/botschoen/leuzinger/d.shtml [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html