TransWikia.com

Importing C4.5 file to R dataframe

Data Science Asked by Vijay on October 26, 2020

I want to convert the input data available as C4.5 file format into a R data frame.

The data set can be downloaded from the following link
https://archive.ics.uci.edu/ml/machine-learning-databases/communities/

and is avaialble as .NAMES and .DATA files.

My approach was to convert it to a csv file using WEKA and then import the csv file into R. Could not do it as WEKA detected a error while parsing the C4.5 file.

Can some one point me in the right direction.

Thanks

One Answer

URL <- 'https://archive.ics.uci.edu/ml/machine-learning-databases/communities/communities.data'
data <- read.table(URL, sep = ',',  na.strings = '?')

Answered by tagoma on October 26, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP