warning in daisy function in R

855 Views Asked by At

I have used the daisy function to calculate the distance, but it encounters the following warning:

In cluster::daisy(mixusefull2) :binary variable(s) 6 treated as interval 
scaled

My data and their types are as follows:

str(mixusefull2)
'data.frame':   2 obs. of  10 variables:
$ protocol_type              : Factor w/ 3 levels "icmp","tcp","udp": 2 2
$ service                    : Factor w/ 63 levels 
"auth","bgp","courier",..: 20 20
$ src_bytes                  : int  315 330
$ count                      : int  5 6
$ srv_count                  : int  5 6
$ diff_srv_rate              : num  0 0
$ dst_host_srv_count         : int  255 255
$ dst_host_same_srv_rate     : num  1 1
$ dst_host_diff_srv_rate     : num  0 0
$ dst_host_same_src_port_rate: num  0 0

Why does this warning show me? please help me.thank you

0

There are 0 best solutions below