[R] How to compare a value in a matrix with its neighbours

2008-05-08 Thread Simon Parker
please. Simon Parker Imperial College - A Smarter Email. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] expand.grid using a repeated vector as a parameter

2008-05-02 Thread Simon Parker
Hello. I'm trying to do this (not necessarily 0:1) : expand.grid ( 0:1, 0:1, 0:1, 0:1, 0:1) etc..etc. but I want to have control over how many 0:1 are included. Any ideas please ? Thankyou. Simon Parker Imperial College - A Smarter Email