[R] set package: more information about syntax

2009-10-01 Thread Jarek Jasiewicz
Dear All! I have a few question about proper syntax for fuzzy rules in sets package (there is only little help about it): 1) how to use negation (NOT) operator there is only OR (||) in example it is NOT, !!, !. I also assume that AND is 2) where it can be set. For example: area %is NOT%

Re: [R] set package: more information about syntax

2009-10-01 Thread Jarek Jasiewicz
Dear All! I have a few question about proper syntax for fuzzy rules in sets package (there is only little help about it): 1) how to use negation (NOT) operator there is only OR (||) in example it is NOT, !!, !. I also assume that AND is 2) where it can be set. For example: area %is

[R] Equivalent for Matematica function Which...

2009-09-29 Thread Jarek Jasiewicz
Dear All! I'm looking for equivalent of Matematica function Which which works as follows: z = Which[x10,0.3, 10=x20,0.5, 20=x100,1] where x is a vector I can replace it with custom function with set of ifelse but I'm looking for simpler and faster (much faster) solution best wishes Jarek

Re: [R] Equivalent for Matematica function Which...

2009-09-29 Thread Jarek Jasiewicz
Henrique Dallazuanna pisze: Try this; cut(x, breaks = c(0, 10, 20, 100), labels = c(0.3, .5, 1)) On Tue, Sep 29, 2009 at 3:11 PM, Jarek Jasiewicz jar...@amu.edu.pl wrote: Dear All! I'm looking for equivalent of Matematica function Which which works as follows: z = Which[x10,0.3, 10=x20,0.5

Re: [R] Equivalent for Matematica function Which...

2009-09-29 Thread Jarek Jasiewicz
well function arguments are in square brackets. z is result (new vector). I show Matematica syntax, but cannot explain what I expect. Sorry The example is wrong because it can be replaced by R cut function. The arguments are: condition,action and can be replaced by ste of ifelse formulas:

Re: [R] Equivalent for Matematica function Which...

2009-09-29 Thread Jarek Jasiewicz
William Dunlap pisze: -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Jarek Jasiewicz Sent: Tuesday, September 29, 2009 11:36 AM To: Erik Iverson Cc: R-help@r-project.org Subject: Re: [R] Equivalent for Matematica function

Re: [R] R in Ubunto

2009-05-27 Thread Jarek Jasiewicz
R Heberto Ghezzo, Dr pisze: Hello , I do not know anything abount Ubunto, but I found a Portable Ubunto for Windows and since so many people prefer Linux to Windows I decided to give it a try. It runs very nicely, so I tried to load R, following Instructions in CRAN I added the line deb

[R] Problem installing packages

2009-04-26 Thread Jarek Jasiewicz
since 2.9.0 version I have a problem with installing packages: install.packages(sp) --- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... done Warning: unable to access index for repository http://piotrkosoft.net/pub/mirrors/CRAN/src/contrib Warning messages:

Re: [R] Problem installing packages

2009-04-26 Thread Jarek Jasiewicz
I tried several mirrors Uwe Ligges pisze: Jarek Jasiewicz wrote: since 2.9.0 version I have a problem with installing packages: install.packages(sp) --- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... done Warning: unable to access index for repository

Re: [R] Problem installing packages

2009-04-26 Thread Jarek Jasiewicz
I tried several mirrors But, what may be more important. This error was mentioned earlier on VISTA and WindowsXP, I use Ubuntu 8.04 Uwe Ligges pisze: Jarek Jasiewicz wrote: since 2.9.0 version I have a problem with installing packages: install.packages(sp) --- Please select a CRAN mirror

Re: [R] Problem installing packages

2009-04-26 Thread Jarek Jasiewicz
unfortunately this problem is difficult do reproduce. If no, it would be mentioned and removed earlier. It probably heppens in some specific cirumstances. I I look for that Jarek Uwe Ligges pisze: Jarek Jasiewicz wrote: I tried several mirrors But, what may be more important. This error

Re: [R] number format in plots

2008-10-10 Thread Jarek Jasiewicz
Thanks, really it is difficult to find solution Jarek Peter Dalgaard pisze: Jarek Jasiewicz wrote: Hi It is probably simple but how to force in plot command number format: 2, 3, 4 etc. instead of 2e+04, 3e+04 etc. Not all that simple! It's one of those cases where you need

[R] number format in plots

2008-10-09 Thread Jarek Jasiewicz
Hi It is probably simple but how to force in plot command number format: 2, 3, 4 etc. instead of 2e+04, 3e+04 etc. example of command: plot(x=data$along, y=data$rzedna,type=l, xlim=c(0,max(data$along)), ylim=c(200,1200), main=, xlab=length, ylab=height, cex.main=2, cex.lab=1.5,

[R] formula for nls

2008-01-23 Thread Jarek Jasiewicz
Hi! How to write in model's formula of type: nls(y~k/(x^n), data=data, start=list(k=1,n=1)) i.e the problem is on x^n, I(x^n) generate error thanks Jarek __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] formula for nls

2008-01-23 Thread Jarek Jasiewicz
Gabor Grothendieck wrote: Try port algorithm. Please provide complete reproducible code and data when posting. y - 1/(x - 1:5) nls(y~k/x^n, start=list(k=1, n=1), algorithm = port) Nonlinear regression model model: y ~ k/x^n data: parent.frame() k n 1 1 residual

Re: [R] glm expand model to more values

2008-01-13 Thread Jarek Jasiewicz
Henric Nilsson (Public) wrote: Jarek Jasiewicz wrote: Charles Annis, P.E. wrote: Jarek: Although it is not universally agreed on, I believe the first step in any data analysis is to PLOT YOUR DATA. dd - data.frame(a=c(1, 2, 3, 4, 5, 6), b=c(3, 5, 6, 7, 9, 10)) plot(b ~ a, data=dd

[R] glm expand model to more values

2008-01-12 Thread Jarek Jasiewicz
Hi I have the problem with fitting curve to data with lm and glm. When I use polynominal dependiency, fitted values from model are OK, but I cannot recive proper values when I use coefficents to caltulate this. Let me present simple example: I have simple data.frame: (dd) a: 1 2 3 4 5 6

Re: [R] glm expand model to more values

2008-01-12 Thread Jarek Jasiewicz
poly(a, 3)3 0.2236 0.4226 0.529 0.649562 Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jarek Jasiewicz Sent

Re: [R] glm expand model to more values

2008-01-12 Thread Jarek Jasiewicz
] [mailto:[EMAIL PROTECTED] On Behalf Of Jarek Jasiewicz Sent: Saturday, January 12, 2008 2:06 PM To: [EMAIL PROTECTED] Cc: R-help@r-project.org Subject: Re: [R] glm expand model to more values Charles Annis, P.E. wrote: How many parameters are you trying to estimate? How many observations do

[R] problems with JAVA in JGR library on ubuntu 7.04

2008-01-02 Thread Jarek Jasiewicz
Hi All I installed JGR library both on ubuntu 7.10 and 7.04 on 7.10 all went fine, but on 7.04 I recived massage: Exception in thread main java.lang.NoClassDefFoundError: org/rosuda/JRI/RMainLoopCallbacks at java.lang.ClassLoader.defineClass1(Native Method) at