Displaying 1 result from an estimated 1 matches for "afddsec".
Did you mean:
addrec
2008 Jul 23
3
sum each row and output results
...9353 -6616.8677 -6498.7183
I would like to sum each row and output the results to another dataframe
(Results).
The resluts would be
Results[1] <- sum(DF[1])
When I try this i get:
Error in FUN(X[[1L]], ...) :
only defined on a data frame with all numeric variables
I have also tried
apply(AFDDsec,1,sum)
Error in FUN(newX[, i], ...) : invalid 'type' (character) of argument
What am I doing wrong?
Eventually I would like to do this with a dataframe that has 44 columns and
5329 rows.
Cheers,
R
--
View this message in context: http://www.nabble.com/sum-each-row-and-output-results-tp18...