I have a dataset with 6 columns and I have ranged to [0,1] every column with:

```
ranging<-function(x){(x-min(x))/(max(x)-min(x))}
dfNorm<- lapply(df, ranging)

```

When I then try to execute kmeans function from the stats package I get the following message:

```
Error: (list) object cannot be coerced to type 'double'

```

I have seen many questions on this issue but can't figure out the solution to my problem. Instead of a normal data set, dfNorm has the columns in the following form:

```
  $AGE
  [1] 0.47457627 1.00000000 0.10169492 0.54237288 0.37288136 0.64406780 0.06779661 0.61016949 0.77966102 0.15254237 0.38983051 0.06779661 0.22033898 0.69491525 0.72881356 0.72881356 0.74576271 0.50847458 0.03389831 0.01694915
 [21] 0.01694915 0.64406780 0.16949153 0.55932203 0.88135593 0.57627119 0.54237288 0.05084746 0.86440678 0.79661017 0.23728814 0.37288136 0.13559322 0.25423729 0.25423729 0.25423729 0.66101695 0.44067797 0.67796610 0.05084746
 [41] 0.50847458 0.16949153 0.18644068 0.03389831 0.44067797 0.42372881 0.30508475 0.13559322 0.08474576 0.76271186 0.25423729 0.59322034 0.69491525 0.49152542 0.83050847 0.33898305 0.10169492 0.55932203 0.08474576 0.35593220
 [61] 0.69491525 0.10169492 0.64406780 0.66101695 0.91525424 0.77966102 0.45762712 0.47457627 0.54237288 0.64406780 0.23728814 0.66101695 0.32203390 0.11864407 0.25423729 0.03389831 0.25423729 0.37288136 0.42372881 0.79661017
 [81] 0.40677966 0.05084746 0.64406780 0.18644068 0.49152542 0.67796610 0.71186441 0.01694915 0.35593220 0.11864407 0.27118644 0.03389831 0.20338983 0.55932203 0.47457627 0.06779661 0.42372881 0.27118644 1.00000000 0.93220339
[101] 0.05084746 0.15254237 0.23728814 0.62711864 0.74576271 0.88135593 0.77966102 0.45762712 0.06779661 0.71186441 0.88135593 0.05084746 0.11864407 0.22033898 0.55932203 0.84745763 0.35593220 0.28813559 0.89830508 0.10169492
[121] 0.61016949 0.18644068 0.81355932 0.05084746 0.44067797 0.37288136 0.25423729 0.91525424 0.74576271 0.83050847 0.25423729 0.55932203 0.45762712 0.81355932 0.13559322 0.49152542 0.67796610 0.45762712 0.30508475 0.08474576
[141] 0.11864407 0.06779661 0.37288136 0.44067797 0.69491525 0.23728814 0.77966102 0.47457627 0.93220339 0.15254237 0.64406780 0.69491525 0.77966102 0.05084746 0.69491525 0.61016949 0.37288136 0.66101695 0.77966102 0.71186441
[161] 0.03389831 0.27118644 0.66101695 0.11864407 0.61016949 0.10169492 0.27118644 0.40677966 0.54237288 0.71186441 0.27118644 0.38983051 0.74576271 0.13559322 0.27118644 0.86440678 0.11864407 0.13559322 0.38983051 0.27118644
[181] 0.47457627 0.89830508 0.15254237 0.03389831 0.50847458 0.81355932 0.44067797 0.01694915 0.84745763 0.16949153 0.30508475 0.37288136 0.69491525 0.27118644 0.13559322 0.01694915 0.76271186 0.37288136 0.49152542 0.13559322
[201] 0.27118644 0.59322034 0.13559322 0.30508475 0.06779661 0.44067797 0.67796610 0.77966102 0.61016949 0.69491525 0.22033898 0.37288136 0.01694915 0.61016949 0.11864407 0.44067797 0.32203390 0.11864407 0.88135593 0.00000000
[221] 0.13559322 0.67796610 0.05084746 0.27118644 0.28813559 0.66101695 0.86440678 0.71186441 0.23728814 0.20338983 0.33898305 0.27118644 0.23728814 0.10169492 0.05084746 0.47457627 0.88135593 0.28813559 0.79661017 0.76271186
[241] 0.35593220 0.32203390 0.47457627 0.86440678 0.52542373 0.64406780 0.62711864 0.08474576 0.81355932 0.27118644 0.33898305 0.13559322 0.79661017 0.66101695 0.91525424 0.76271186 0.66101695 0.10169492 0.76271186 0.93220339
[261] 0.13559322 0.22033898 0.72881356 0.66101695 0.44067797 0.33898305 0.32203390 0.06779661 0.03389831 0.03389831 0.61016949 0.69491525 0.28813559 0.16949153 0.38983051 0.79661017 0.83050847 0.08474576 0.40677966 0.11864407
[281] 0.67796610 0.18644068 0.35593220 0.27118644 0.59322034 0.88135593 0.20338983 0.35593220 0.69491525 0.23728814 0.27118644 0.38983051 0.01694915 0.66101695 0.52542373 0.81355932 0.67796610 0.01694915 0.64406780 0.52542373

```

I guess that in the ranging my dataframe became a set of lists? Any help on how to convert it again into a dataframe?