x<- read.table('d:\\2.csv', sep=';', header=TRUE) x <- log(x) #логарифмируем x <- x[-1] #отбросим колонку с именами игроков x <- apply(x, 2, diff) #считаем разницу между последовательными элементами x <- t(x) #транспонируем таблицу kmeans(x, 5, 1000000) #будем разбивать на 25 кластеров, максимум 1000000 иттераций I read the prepared file - everything is read without problems.
Next, I want to make a simple logarithm x<-log(x) and an error crashes.
Error in Math.data.frame (x):
non-numeric variable (s) in data frame: X.stat1.stat2.stat4.
stat1, etc. - These are the names of the columns in the file.
How to me to put the initial data in order that there were no such errors? File link itself