Skip to content

warning with cut2 function

2 messages · taby gathoni, Uwe Ligges

#
Dear r user,

please find my attached sample of the dataset i? am using to create a crosstable and eventually plot a histogram from the output.

I am using? the cut2 function to create bins, about 7 of them using the code after reading the data:
cluster <- cut2(cross_val$value, g=7)

I get the warning:
Warning message:
In min(xx[xx > upper]) : no non-missing arguments to min; returning Inf



additionally, the bins become 6 instead of 7 through the crossTable function:
cross1 <-CrossTable(cross_val$factor, cluster,prop.chisq=FALSE,prop.r=FALSE,prop.t=FALSE)


Please assist me to? get my 7 bins.

How can i plot an output of the cross table as a historgram of factor rate? vs bins?

Any help will be highly appreciated.

Kind regards,
Taby


?


An idea not coupled with action will never get any bigger than the brain cell it occupied.
Arnold Glasgow
......
"Attempt something large enough that failure is guaranteed?unless God steps in!"
2 days later
#
On 11.10.2011 10:25, taby gathoni wrote:
What is cut2? I get

R> cut2
Error: object 'cut2' not found

What is cross_val? I get

R> cross_val
Error: object 'cross_val' not found
What is CrossTable?
What is cluster?
Help us to reproduce at first!

Uwe Ligges