Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
"[SOLVED] Loop over files (extracting id from first line)"
Dear experts:
I have about 2,000 text files with the following structure:
First line: customer id followed by an colon
Next k lines : data about transactions of customers (x1,x2,x3,x4)
-----file01.txt------------------
01:
x11,x12,x13,x14
x21,x22,x23,x24
.....
xk1,xk2,xk3,xk4
-----file02.txt-------------------
02:
x11,x12,x13,x14
x21,x22,x23,x24
.....
xk1,xk2,xk3,xk4
-----file03.txt-------------------
03:
x11,x12,x13,x14
x21,x22,x23,x24
.....
xk1,xk2,xk3,xk4
-----file04.txt--------------------
04:
x11,x12,x13,x14
x21,x22,x23,x24
.....
xk1,xk2,xk3,xk4
What I would like is to merge them into a single file with the following columns
id,x1,x2,x3,x4
Is there an easy way to do it inside RapidMiner?
Thanks in advance,
\Ernesto
I have about 2,000 text files with the following structure:
First line: customer id followed by an colon
Next k lines : data about transactions of customers (x1,x2,x3,x4)
-----file01.txt------------------
01:
x11,x12,x13,x14
x21,x22,x23,x24
.....
xk1,xk2,xk3,xk4
-----file02.txt-------------------
02:
x11,x12,x13,x14
x21,x22,x23,x24
.....
xk1,xk2,xk3,xk4
-----file03.txt-------------------
03:
x11,x12,x13,x14
x21,x22,x23,x24
.....
xk1,xk2,xk3,xk4
-----file04.txt--------------------
04:
x11,x12,x13,x14
x21,x22,x23,x24
.....
xk1,xk2,xk3,xk4
What I would like is to merge them into a single file with the following columns
id,x1,x2,x3,x4
Is there an easy way to do it inside RapidMiner?
Thanks in advance,
\Ernesto
Tagged:
0
Answers
Best,
Marius