1. Experiment no. – 6.1
Student Name: Ankur Vikas UID: 19BCS2606
Branch: CSE - 11 Section/Group: ‘C’
Semester:5th
Date of Performance:01 Oct 2021
Subject Name:Artificial intelligence Subject Code: CSP - 303
& Machine learning Lab
1. Aim/Overview of the practical: Write a codeto fetch the details of all the persons who
. are working in the IT department from the following csvfile:
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
2. Task to be done: To construct CSV file of IT department
3. Algorithm :
Step 1: Start.
Step 2: Creating a data using data.frame and store in df.
Step 3: Creating csv file ‘user-data-1.csv’ and saving df data in csv file
write.csv(df,"user-data-1.csv")
Step 4: Reading data by using function
df1 = read.csv("user-data-1.csv",TRUE,",")
Step 5: print data save in csv file
Step 5: end
[Cite your source here.]
3. 5. Output:
6. Learning outcomes (What I have learnt):
1. learn to to create data frame of IT department file.
2. learn how to write the csv file in R.Studio
3. learn how to read the csv file in R.Studio
7. valuation Grid (To be created as per the SOP and Assessment guidelines by the faculty):
Sr. No. Parameters Marks Obtained Maximum Marks
1.
2.
3.