[R] Basic Vector and Matrix Operations

2008-07-07 Thread Eric Turkheimer
;-c(3,4,5) f(x,5) 3,4,5,NA,NA 2) Find the [row,col] location of a particular value in a matrix, eg x<-matrix(1:9,ncol=3) f(x,2) 2,1 Thanks. -- Eric Turkheimer, PhD Department of Psychology University of Virginia PO Box 400400 Charlottesville, VA 22904-4400 http://www.people.virginia.edu/

[R] Searching for attributes

2007-10-10 Thread Eric Turkheimer
Is it possible to search the objects in the search list for certain attributes, eg, matrices with a given number of rows? Thanks, Eric -- Eric Turkheimer, PhD Department of Psychology University of Virginia PO Box 400400 Charlottesville, VA 22904-4400 434-982-4732 434-982-4766 (FAX