Displaying 1 result from an estimated 1 matches for "sflows1".
Did you mean:
flows
2003 Sep 08
2
How do I coerce numeric factor columns of data frame to vector?
I have just noticed that quite a few columns of a data frame that I am
working on are numeric factors. For summary() purposes I want them to be
vectors. I tried, for example
> indx <- c(1:18,21:37,40,41)
> i <- 0
> i <- i+1
> summary(as.vector(sflows1[indx[i]]))
Length Class Mode
min.pkt.sz 3000 factor numeric
but this does not give the five-number summary that I want. I know that
I can go back and modify read.table() to change the class of the
columns, but I want to change the frame without re-reading it.
Murray
--
Dr Murra...