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 NO

[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] 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] 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
d thanks for quick answer Jarek 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 wrote: Dear All! I'm looking for equivalent of Matematica function "Which" which works as follows:

[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[x<10,0.3, 10<=x<20,0.5, 20<=x<100,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

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 http:

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] 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 C

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

[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] 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 ne

[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=

Re: [R] how to get points from SpatialPolygonsDataFrame

2008-02-03 Thread Jarek Jasiewicz
Milton Cezar Ribeiro wrote: > Dear all, > > I need to get all points for each polygons and save these points in a > data.frame. I tryed to use the slot() function, but I can´t access the > "coords". > > grd <- GridTopology(c(1,1), c(1,1), c(10,10)) > polys <- as.SpatialPolygons.GridTopology(grd

Re: [R] best text editor for Linux?

2008-02-03 Thread Jarek Jasiewicz
Wade Wall wrote: > Hi all, > > I know this question has been asked in the past, but I am wondering if > anyone running R on Linux has any guidance as to a text editor that works > well with R. At the present time I am running R on Windows and using > TINN-R. For a number of reasons I want to swit

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

[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] 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. >>> >&g

Re: [R] glm expand model to more values

2008-01-12 Thread Jarek Jasiewicz
9, > 2004). Amazon.com carries it. > > Best wishes. > > > > Charles Annis, P.E. > > [EMAIL PROTECTED] > phone: 561-352-9699 > eFax: 614-455-3265 > http://www.StatisticalEngineering.com > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[

Re: [R] glm expand model to more values

2008-01-12 Thread Jarek Jasiewicz
calEngineering.com > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Jarek Jasiewicz > Sent: Saturday, January 12, 2008 11:50 AM > To: R-help@r-project.org > Subject: [R] glm expand model to more values > > Hi > &

[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 b:

[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 java.lang.ClassLoa