search for: fenacht

Displaying 2 results from an estimated 2 matches for "fenacht".

Did you mean: enact
2010 Mar 12
4
Getting multiple matrix-values using a single command
Dear all! I'm trying to get multiple values from a matrix by using a single command. Given a matrix A A <- matrix(seq(1,9),nrow=3,ncol=3) How can I get e.g. the values A[1,2] = 4 and A[3,3] = 9 with a single command and without using any loop? My first idea was to generate a row- and a column vector for the indices, i.e. c(1,3) indicating row number 1 (for A[1,2]) and row number
2007 Jul 17
1
difficulties with "setMethod"
Dear all! I do definetley have some difficulties. Here is my code: > setMethod("write", + signature(object = "KMatrix", path = "character"), + function(object,path){ + write.table(object at data,path,row.names=FALSE, sep = "\t") + } + ) error in match.call(fun, fcall) : unused