z3025589 at student.unsw.edu.au
2008-Oct-21 02:42 UTC
[R] converting a row of a data.frame to a vector"
Try: as.vect = function(x) { t1 = as.matrix(x) t2 = aperm(t1) t3 = as.vector(t2) return(t3) } This function converts entire dataframe into a vector. Alexander Pui PhD Candidate in Hydroclimatology, University of New South Wales Email: a.pui at student.unsw.edu.au