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
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
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
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
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
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
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
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
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
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
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
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
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
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
14 matches
Mail list logo