Professional Documents
Culture Documents
Aim/Overview of the practical:Write a code to fetch the details of all the persons who
are working in the IT department from the following csv file:
id,name,salary,start_date,dept
1. 1,Shubham,613.3,2012-01-01,IT
2. 2,Arpita,525.2,2013-09-23,Operations
3. 3,Vaishali,63,2014-11-15,IT
4. 4,Nishka,749,2014-05-11,HR
5. 5,Gunjan,863.25,2015-03-27,Finance
6. 6,Sumit,588,2013-05-21,IT
7. 7,Anisha,932.8,2013-07-30,Operations
8. 8,Akash,712.5,2014-06-17,Finance
Code:
Creating a csv file rcord.csv
Reading details from
record.csv Code:
csv_data <-
read.csv("record.csv")
print(csv_data)
print(details)
OUTPUT:
Learning outcomes (What I have learn):
1. Basics of R language
2. Basic commands of R