Displaying 1 result from an estimated 1 matches for "criteron".
Did you mean:
criterion
2012 Mar 23
2
R Error : DATA to MATRIX
...ALSE)
a= read.table(file="test.txt",sep="",header=FALSE)
A= data.matrix(a)
#.........................................................................................
# Generate matrix whose rowsum = n-m
meet.crit = apply(A, 1, function(.row) any((sum(.row)) == n-m)) #
criteron for being rowsum = n
cbind(A, meet.crit) #
Checking rowsum = n for each row
-m
B=A[meet.crit,] #
Generate matrix
#..................................................................................