0
这个用于机器学习的数据库已被分成两个文件,German.data用于所有的值,另一个是描述文件,这里是链接。 https://archive.ics.uci.edu/ml/machine-learning-databases/statlog/german/?C=D;O=A,如何从word文件中将相关信息检索到R? 使其成为一个列表,其中包含所有属性作为其元素,并在每个元素中包含其因素。从word文件中检索数据
这个用于机器学习的数据库已被分成两个文件,German.data用于所有的值,另一个是描述文件,这里是链接。 https://archive.ics.uci.edu/ml/machine-learning-databases/statlog/german/?C=D;O=A,如何从word文件中将相关信息检索到R? 使其成为一个列表,其中包含所有属性作为其元素,并在每个元素中包含其因素。从word文件中检索数据
这是从GitHub拉:
url <- "https://archive.ics.uci.edu/ml/machine-learning-databases/statlog/german/german.data"
col.names <- c(
'Status of existing checking account', 'Duration in month', 'Credit history'
, 'Purpose', 'Credit amount', 'Savings account/bonds'
, 'Employment years', 'Installment rate in percentage of disposable income'
, 'Personal status and sex', 'Other debtors/guarantors', 'Present residence since'
, 'Property', 'Age in years', 'Other installment plans', 'Housing', 'Number of existing credits at this bank'
, 'Job', 'Number of people being liable to provide maintenance for', 'Telephone', 'Foreign worker', 'Status'
)
data <- read.csv(
url
, header=FALSE
, sep=' '
, col.names=col.names
)