Icon

Challenge 17-Prepare KNIME Training File Set

Level: Easy

Description: You are responsible for creating an educational program for KNIME to be conducted within your company. You plan to create a workflow where participants can learn how to use the "List Files/Folders" node and its utility. Hint: When generating random numbers, the Vernalis KNIME Nodes Extension might be helpful.

As preparation, you need to create dummy data that meets a few requirements, described as follows.
Beginner-friendly objectives:

- Create a specified number of folders (up to 5,000) with unique random numbers of up to 6 digits within a designated directory.
- Use zero-padding to ensure the numbers have consistent digit length.

Intermediate-friendly objective:
- Inside each folder, create one file with a random number of up to 5 digits as its name. Zero-padding is not required, and the file names do not need to be unique.
- The file extension should be (1) the fictional file extension .fzbz if the folder name is a multiple of 3 and the file name contains the number 5, or (2) .csv for all other cases. The contents of each file can be empty.

5K Random Numbers
Random Numbers Generator
Variable Loop End
Folder Path
String Manipulation
base_dir
String Configuration
File Path
String Manipulation
File Name Build
String Manipulation
Variable to Table Column
Folder Name
Number to String
Table Row to Variable Loop Start
File Number
Random Number Assigner
Create Folder
Folder Path
String to Path
File Path
String to Path
File Extension
Column Expressions (legacy)
Table Creator
File Number String
Expression
CSV Writer

Nodes

Extensions

Links