Displaying 2 results from an estimated 2 matches for "defactor".
Did you mean:
refactor
2006 Sep 21
1
transforming factor back to numbers
...coplot(npl.agg$x ~ npl.agg$year | npl.agg$sim, type="l")
but, as npl.agg$year is seen as a factor, the order of the points on the
x-axis (time axis) does not follow the numerical sorting 1...100, but
rather the text sorting of the factor npl.agg$year
Is there any way that I can 'defactor' npl.agg$year so that I have again
the numerical values for year?
Thanks
Rainer
--
Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)
Department of Conservation Ecology and Entomology
University of Stellenbosch
Matieland 7602
South Africa
Tel: +27 - (0)72 808 2975 (w)...
2012 Nov 17
2
Using cbind to combine data frames and preserve header/names
I have a dataframe that has a header like so:
class value1 value2 value3
class is a factor
the actual values in the columns value1, value2 and value3 are 0-255, I wish to binarize these using biclust.
I can do this like so:
binarize(dataframe[,-1])
this will return a dataframe, but then I lose my first column class, so I thought I could combine it like so:
dataframe <-