I am beginner in R and am trying to use the image function to create a
grid, but would like to use an outer file as input. A file that
contains the following array for example:
3 4 5
2 3 5
1 2 1
so that each cell has a color with different intensity. I am
On Sat, 11 Oct 2003 [EMAIL PROTECTED] wrote:
I am running the following code (testing the use of the simplex function to
determine if a point is in the convex hull of another set of points or not):
a - c(0, 0)
A3 -matrix(c(1,2,3,4,1,1), ncol = 2, byrow = T)
b3 -c(1.5, 3.5, 1)
simplex(a =
Suppose your data is in image.txt, space delimited (one or more spaces),
then you could use:
myimage -
as.matrix(read.table('image.txt',skip=0,header=FALSE,sep=,strip.white=TRUE))to
view the resulting image use:
image(myimage)
to get contours: contour(myimage)
etc.
--
Fernando Henrique Ferraz wrote:
Hi, I'm trying to use R's DBI interface but it appears to be broken. I am
using R 1.8.0 on Linux, and have just installed DBI 0.1-6 through the command
'install.packages(DBI)'.
Installation went fine, but now when I try to do a simple
On 09-Oct-03 Thomas Lumley wrote:
On Thu, 9 Oct 2003 [EMAIL PROTECTED] wrote:
All that's really needed to cope with the situation is for R to
drop that cycle of the loop, and resume with a new cycle.
However, I'm wondering how to set this up. I've had a look at
try(), and I'm not at all
http://www.analytics.washington.edu/~rossini/courses/cph-statcomp/
Lecture/Labs 1 and 2 are on For ESS, ESS-Noweb-Sweave.
Lecture/Lab 4 is on parallel computing with R
(each Lecture/Lab was just under 2 hours).
Comments/corrections welcome, they were used last week here in
Copenhagen, so
http://www.analytics.washington.edu/~rossini/courses/cph-statcomp/
Lecture/Labs 1 and 2 are on For ESS, ESS-Noweb-Sweave.
Lecture/Lab 4 is on parallel computing with R
(each Lecture/Lab was just under 2 hours).
Comments/corrections welcome, they were used last week here in
Copenhagen, so
Dear,
Have a look at:
*akima http://cran.r-project.org/src/contrib/akima_0.3-4.tar.gz:
Interpolation of irregularly spaced data*
Linear or cubic spline interpolation for irregular gridded data
Kris
--
Hi,
I am trying to use boot() to refit an ordinal logit (polr in MASS) model.
(A very basic bootstrap which samples from the data frame without
replacement and updates the model.)
I need to extract two statistics per run (the coefficients and zeta) and I
tried concatenating them into a
Occasionaly, the polr returns a zeta element of length equal to 2 rather
than 3 (which I guess is what you're expecting). You're bootfn function
should always check to see that it's returning an object of the same
length every time.
-roger
Olivia Lau wrote:
Hi,
I am trying to use boot() to
Hello all,
I need to count the number of times certain characters occur in a
string. The only way I have found so far to accomplish this is by using
strsplit i.e.
my.string - DDDRRHIH
my.char - D
num.char - -1 + length(unlist(strsplit(my.string,my.char)))
now you probably won't be surprised
Hello!
I've looked at R help and previous postings, but I am not sure I
completely understand the mechanism of evaluating R expressions from C++.
They have function
SEXP eval(SEXP expr, SEXP rho),
but I can't get it to work.
Could anyone who used it give any comments on how efficient it is
12 matches
Mail list logo