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: [EMAIL PROTECTED]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to