search for: rowrowsums

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

2010 Aug 12
3
Error in rowSums
...ate the row sums of a matrix i have created The matrix ( FeaturePresenceMatrix) has been created by 1) Read csv 2) Removing unnecesarry data using [-1:4,] command 3) replacing all the NA values with as.numeric(0) and all others with as.numeric (1) When I carry out the command TotalFeature <- rowrowSums(FeaturePresenceMatrix, na.rm = TRUE) I get the following error. Error in rowSums(FeaturePresenceMatrix, na.rm = TRUE) : 'x' must be numeric Any tips onhow I can get round this? Thanks in Advance Amit
2010 Aug 13
2
Fw: Error in rowSums REPOST
...The matrix ( FeaturePresenceMatrix) has been created by > > 1) Read csv > 2) Removing unnecesarry data using [-1:4,] command > 3) replacing all the NA values with as.numeric(0) and all others with >as.numeric (1) > > When I carry out the command > > TotalFeature <- rowrowSums(FeaturePresenceMatrix, na.rm = TRUE) > > I get the following error. > Error in rowSums(FeaturePresenceMatrix, na.rm = TRUE) : 'x' must be numeric > > Any tips onhow I can get round this? Yes, follow the posting guide and give the list a reproducible example. We don'...