Re: [R] Behaviour of very large numbers

2007-08-30 Thread Scionforbai
Hello, it seems to be an R bug. It gives strange errors for non-integer exponents: version platform i686-redhat-linux-gnu version.string R version 2.4.1 (2006-12-18) x^47.0 [1] -1.802180e+80 -1.768932e+80 -1.736284e+80 -1.704227e+80 -1.672748e+80 [...] x^47.10 [1] NaN NaN NaN NaN

Re: [R] color key of heatmap.2

2007-03-09 Thread Scionforbai
mycolors - rev(heatmap.2(length)) where length is the number of colours you wants. __ 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

Re: [R] hwo can i get a vector that...

2007-03-07 Thread Scionforbai
canĀ“t believe in need a loop for this... No, you don't ;) want to get a 100 x 1 vector Has each row unique values? If yes: mat - matrix(rnorm(300),nr=100) vet - apply(mat,1,function(x) {return(which(x==max(x)))}) scionforbai __ R-help

[R] Obtaining figures with exactly placed points

2007-03-06 Thread Scionforbai
Dear list, I have to plot some geometrical shape given as list of points. My need is the following: let's say my shape is a 1 inch large square; how can I plot it with R in a graphic format that gives me an image *exactly* 1 inch large? I tried to set oma, mar and fin parameters, but with no

Re: [R] Obtaining figures with exactly placed points

2007-03-06 Thread Scionforbai
plot(0,0,n,xlim=c(0,1),ylim=c(0,1),axes=F,ann=F,xaxs='i',yaxs='i') It was exactly this! *8/100+ [1] 1199.88 Thanks, Marco __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] how to install a package in R on a linux machine?

2007-02-22 Thread Scionforbai
I tried a few times and still couldn't figure out the correct way to install this package. Help us to help you, Gallon. Which error comes out? install.packages(packagename) this downloads the package and installs it into the default R package library on your machine. Of course, on a normal

Re: [R] spatio temporal plot

2007-01-08 Thread Scionforbai
Altough I didn't test it, I think rgl package should do this. Regards, Scionforbai __ 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] (no subject)

2006-12-13 Thread Scionforbai
Just read some introductory R tutorial... x = list () x $ name1 = 1 x $ name2 = 'a' x $name1 [1] 1 $name2 [1] a name - name1 x[name] $name1 [1] 1 x[[name]] [1] 1 name - name2 x[name] $name2 [1] a x[[name]] [1] a Bye, Scionforbai __ R-help

Re: [R] Error to install fMultivar package

2006-12-13 Thread Scionforbai
all the required libs. Try also to add dependencies=TRUE to install.packages(). Does it help? Scionforbai __ 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

Re: [R] expression()

2006-12-12 Thread Scionforbai
Hallo, for the first question: mtext(expression(beta[max]),side=1,line=2) and: ?plotmath demo(plotmath) for the second. Hope it helped, Scionforbai __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Remove from a string

2006-12-08 Thread Scionforbai
If I understand what you need, Number=2 x - paste(NameOfFunction,as.character(Number),sep=) x [1] NameOfFunction2 And you can use do.call(x, ...) to get your function. Hope it helps, Scionforbai __ R-help@stat.math.ethz.ch mailing list https

Re: [R] test of spatial dependence??

2006-12-06 Thread Scionforbai
How to test the spatial dependence of a column of data? for example [...] All I have is 25 numbers. If you don't have coordinates of your data, as I understand here, there's nothing you can do, of course ... If you have coordinates, you should compute the variogram -and/or the spatial

Re: [R] Problems with plot and X11 in ubuntu

2006-11-10 Thread Scionforbai
Change those occurrences in the config file, reboot and that should fix it. Why reboot? Rebuilding the font-cache and restart X is *largely* enough! Marco __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Automatic File Reading

2006-10-18 Thread Scionforbai
Just to complete: if you need them all at the same time: for(i in 1:100) { fn - paste(velocity,i,.txt,sep=) varname - paste(velocity,i,sep=) assign(varname,read.csv(fn)) } and you have a list of objects {velocity1, ..., velocity100} with corresponding data. Scionforbai