Ignasius Rabi Blolong

ID: 52250073

Institut Teknologi Sains Bandung

Data Science Programming

Introduction

This practicum aims to understand the basic application of data analysis using the R programming language through the use of conditional statements and loops. A simple dataset containing employee information, such as name, age, salary, position, and performance, is used as an example to perform several analytical processes. Through this process, bonus calculations based on employee performance and data filtering based on certain criteria are conducted. This activity provides a basic understanding of how programming logic can be used to process and present data systematically.

📊 Employee Dataset Analysis

name age salary position performance
Bagas 25 5000 Staff Good
Joan 30 7000 Supervisor Very Good
Alya 27 6500 Staff Average
Dwi 35 10000 Manager Good
Nabil 40 12000 Director Very Good

📈 Bonus Calculation

Tabel Perhitungan Bonus Karyawan
Nama Karyawan Total Bonus
Bagas 500
Joan 1400
Alya 325
Dwi 1000
Nabil 2400

💰 Employees With Salary Above 6000

name age salary position performance bonus
2 Joan 30 7000 Supervisor Very Good 1400
3 Alya 27 6500 Staff Average 325
4 Dwi 35 10000 Manager Good 1000
5 Nabil 40 12000 Director Very Good 2400

📌 Conclusion

Based on the results of the practicum, it can be concluded that the use of conditional statements and loops in R allows data processing to be carried out efficiently and in a structured manner. Through these techniques, employee data can be analyzed to calculate bonuses and identify important information, such as employees with salaries above a certain threshold. This practicum provides a fundamental understanding of how programming logic can be applied in simple data analysis.