Displaying 2 results from an estimated 2 matches for "comparson".
Did you mean:
comparison
2010 Sep 26
1
compare a vector and a row of a matrix
...; xn <- c(1,2,4,4,5,5,5,6)
>yn <- c(1,2,5,7,1,2,3,1)
>mtrx <- cbind(xn, yn)
when I tried, say, > c (1,4), the result was TRUE, TRUE. I think the reason is that 1 is compared to xn and 4 is compared to yn seperately.
Could anyone tell me how I can get a single result of the comparson between a vector and a row of the matrix?
for example£¬ c(1,1) is one row of the matrix but c(1,4) is not. I tried to write a loop but it seems long for this simple problem
Thank you very much!!!
[[alternative HTML version deleted]]
2005 Jan 21
2
Struggling with S3/S4 interface issues and External Pointers
I'm currently working on embedding R into the Apache2 webserver (with
some positive results...), but I'm struggling to identify the best way
to expose the apache data and functions to R.
A couple of thoughts:
In light of the recent discussion on "S3/S4 classes performance
comparson", I'm leaning toward implementing the interface with S3 style
classes. I appreciate anyones advice on this.
I JUST found (after roughly 6 months of studying R) Luke Tierney's note
on "Finalization and Weak References in R". From the developers page,
this note is listed as...