SlideShare a Scribd company logo
1 of 1
USE R PROGRAM TO SOLVE THIS
a) [8 points] Create a function named all_loan_offers that satisfies the following requirements:
Arguments: - A data frame that stores the income, criminal record, and the number of years in
the present job for all loan applicants. You can use a name of your choice for the data frame, but
the column names must be income, c_record, and years. - Output: The updated version of the
inputted data frame which has a new column titled "decision". "decision" is a categorical column
whose elements can take any values of "Admit" or "Reject". Please note that the function must
return the updated data frame not the decision vector. b) [1 point] Please assume that the
following table shows the information of four loan applicants. Save the information in the above
table in a data frame named applicants_info. Name the columns income, c_record, and years. c)
[1 point] Run your function using applicants_info as its input. You should see the updated
applicants_info including the decision column of "Reject" "Admit" "Reject" "Admit" as the
function's output.

More Related Content

Similar to USE R PROGRAM TO SOLVE THIS a) -8 points- Create a function named al.docx

Comp 220 i lab 3 bank account lab report and source code
Comp 220 i lab 3 bank account lab report and source codeComp 220 i lab 3 bank account lab report and source code
Comp 220 i lab 3 bank account lab report and source codepradesigali1
 
Chapter 13 Business Intelligence and Data Warehouses Problems.docx
Chapter 13 Business Intelligence and Data Warehouses Problems.docxChapter 13 Business Intelligence and Data Warehouses Problems.docx
Chapter 13 Business Intelligence and Data Warehouses Problems.docxbartholomeocoombs
 
Comp 220 ilab 3 of 7
Comp 220 ilab 3 of 7Comp 220 ilab 3 of 7
Comp 220 ilab 3 of 7solutionjug4
 
Ac fr ogahtrvphwaee1e8gutdnexalzr6og7ijdtzjl_phlut4glpu9b3si-jfuc1bukldiyan6a...
Ac fr ogahtrvphwaee1e8gutdnexalzr6og7ijdtzjl_phlut4glpu9b3si-jfuc1bukldiyan6a...Ac fr ogahtrvphwaee1e8gutdnexalzr6og7ijdtzjl_phlut4glpu9b3si-jfuc1bukldiyan6a...
Ac fr ogahtrvphwaee1e8gutdnexalzr6og7ijdtzjl_phlut4glpu9b3si-jfuc1bukldiyan6a...Ashish Gros Morceau
 
Porfolio of Setfocus work
Porfolio of Setfocus workPorfolio of Setfocus work
Porfolio of Setfocus workKevinPSF
 
Howtocustomizeviewsmenuesofopenerponlineinasustainablewayfredericgilson 13070...
Howtocustomizeviewsmenuesofopenerponlineinasustainablewayfredericgilson 13070...Howtocustomizeviewsmenuesofopenerponlineinasustainablewayfredericgilson 13070...
Howtocustomizeviewsmenuesofopenerponlineinasustainablewayfredericgilson 13070...Maurice Andreas Saragih
 
How to customize views & menues of OpenERP online in a sustainable way. Frede...
How to customize views & menues of OpenERP online in a sustainable way. Frede...How to customize views & menues of OpenERP online in a sustainable way. Frede...
How to customize views & menues of OpenERP online in a sustainable way. Frede...Odoo
 
Bottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docxBottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docxAASTHA76
 
Pseudocode algorithim flowchart
Pseudocode algorithim flowchartPseudocode algorithim flowchart
Pseudocode algorithim flowchartfika sweety
 
Mr20 enus a-Report Design in Management Reporter 2.0 for Microsoft Dynamics® ERP
Mr20 enus a-Report Design in Management Reporter 2.0 for Microsoft Dynamics® ERPMr20 enus a-Report Design in Management Reporter 2.0 for Microsoft Dynamics® ERP
Mr20 enus a-Report Design in Management Reporter 2.0 for Microsoft Dynamics® ERPSami JAMMALI
 

Similar to USE R PROGRAM TO SOLVE THIS a) -8 points- Create a function named al.docx (12)

Comp 220 i lab 3 bank account lab report and source code
Comp 220 i lab 3 bank account lab report and source codeComp 220 i lab 3 bank account lab report and source code
Comp 220 i lab 3 bank account lab report and source code
 
Chapter 13 Business Intelligence and Data Warehouses Problems.docx
Chapter 13 Business Intelligence and Data Warehouses Problems.docxChapter 13 Business Intelligence and Data Warehouses Problems.docx
Chapter 13 Business Intelligence and Data Warehouses Problems.docx
 
Comp 220 ilab 3 of 7
Comp 220 ilab 3 of 7Comp 220 ilab 3 of 7
Comp 220 ilab 3 of 7
 
Ac fr ogahtrvphwaee1e8gutdnexalzr6og7ijdtzjl_phlut4glpu9b3si-jfuc1bukldiyan6a...
Ac fr ogahtrvphwaee1e8gutdnexalzr6og7ijdtzjl_phlut4glpu9b3si-jfuc1bukldiyan6a...Ac fr ogahtrvphwaee1e8gutdnexalzr6og7ijdtzjl_phlut4glpu9b3si-jfuc1bukldiyan6a...
Ac fr ogahtrvphwaee1e8gutdnexalzr6og7ijdtzjl_phlut4glpu9b3si-jfuc1bukldiyan6a...
 
Comp 220 lab 3
Comp 220 lab 3Comp 220 lab 3
Comp 220 lab 3
 
Porfolio of Setfocus work
Porfolio of Setfocus workPorfolio of Setfocus work
Porfolio of Setfocus work
 
Howtocustomizeviewsmenuesofopenerponlineinasustainablewayfredericgilson 13070...
Howtocustomizeviewsmenuesofopenerponlineinasustainablewayfredericgilson 13070...Howtocustomizeviewsmenuesofopenerponlineinasustainablewayfredericgilson 13070...
Howtocustomizeviewsmenuesofopenerponlineinasustainablewayfredericgilson 13070...
 
How to customize views & menues of OpenERP online in a sustainable way. Frede...
How to customize views & menues of OpenERP online in a sustainable way. Frede...How to customize views & menues of OpenERP online in a sustainable way. Frede...
How to customize views & menues of OpenERP online in a sustainable way. Frede...
 
Bottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docxBottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docx
 
Pseudocode algorithim flowchart
Pseudocode algorithim flowchartPseudocode algorithim flowchart
Pseudocode algorithim flowchart
 
Mr20 enus a-Report Design in Management Reporter 2.0 for Microsoft Dynamics® ERP
Mr20 enus a-Report Design in Management Reporter 2.0 for Microsoft Dynamics® ERPMr20 enus a-Report Design in Management Reporter 2.0 for Microsoft Dynamics® ERP
Mr20 enus a-Report Design in Management Reporter 2.0 for Microsoft Dynamics® ERP
 
Da 100-questions
Da 100-questionsDa 100-questions
Da 100-questions
 

More from JamesZ96Nashl

using Gibbs cycle of reflection 1- Planning and Organising Skills It.docx
using Gibbs cycle of reflection  1- Planning and Organising Skills It.docxusing Gibbs cycle of reflection  1- Planning and Organising Skills It.docx
using Gibbs cycle of reflection 1- Planning and Organising Skills It.docxJamesZ96Nashl
 
Using early projects like the High-Scope Perry Preschool Project as mo.docx
Using early projects like the High-Scope Perry Preschool Project as mo.docxUsing early projects like the High-Scope Perry Preschool Project as mo.docx
Using early projects like the High-Scope Perry Preschool Project as mo.docxJamesZ96Nashl
 
Using extent research- news media- journal articles assigned in this m.docx
Using extent research- news media- journal articles assigned in this m.docxUsing extent research- news media- journal articles assigned in this m.docx
Using extent research- news media- journal articles assigned in this m.docxJamesZ96Nashl
 
Use the Level O DFD of the dentist office - from your notes and homewo.docx
Use the Level O DFD of the dentist office - from your notes and homewo.docxUse the Level O DFD of the dentist office - from your notes and homewo.docx
Use the Level O DFD of the dentist office - from your notes and homewo.docxJamesZ96Nashl
 
Use the Poisson Distribution to approximate the binomial probability b.docx
Use the Poisson Distribution to approximate the binomial probability b.docxUse the Poisson Distribution to approximate the binomial probability b.docx
Use the Poisson Distribution to approximate the binomial probability b.docxJamesZ96Nashl
 
Use the case scenario- along with the information regarding each of th.docx
Use the case scenario- along with the information regarding each of th.docxUse the case scenario- along with the information regarding each of th.docx
Use the case scenario- along with the information regarding each of th.docxJamesZ96Nashl
 
Use Python Write a program that firstly creates a list and initializes.docx
Use Python Write a program that firstly creates a list and initializes.docxUse Python Write a program that firstly creates a list and initializes.docx
Use Python Write a program that firstly creates a list and initializes.docxJamesZ96Nashl
 
Use induction to prove that n2-4n+1 for all integers n5-.docx
Use induction to prove that n2-4n+1 for all integers n5-.docxUse induction to prove that n2-4n+1 for all integers n5-.docx
Use induction to prove that n2-4n+1 for all integers n5-.docxJamesZ96Nashl
 
Use induction to show that- for any integer n1 - i-1nii!-(n+1)!1.docx
Use induction to show that- for any integer n1 - i-1nii!-(n+1)!1.docxUse induction to show that- for any integer n1 - i-1nii!-(n+1)!1.docx
Use induction to show that- for any integer n1 - i-1nii!-(n+1)!1.docxJamesZ96Nashl
 
Use induction to show that n!-2n for all integers n4-.docx
Use induction to show that n!-2n for all integers n4-.docxUse induction to show that n!-2n for all integers n4-.docx
Use induction to show that n!-2n for all integers n4-.docxJamesZ96Nashl
 
Use Figure 2a to answer questions 69- Assume Stars A and B are the sam.docx
Use Figure 2a to answer questions 69- Assume Stars A and B are the sam.docxUse Figure 2a to answer questions 69- Assume Stars A and B are the sam.docx
Use Figure 2a to answer questions 69- Assume Stars A and B are the sam.docxJamesZ96Nashl
 
Use appropriate SFR and a Modifier to configure bits 2 and 12 of port.docx
Use appropriate SFR and a Modifier to configure bits 2 and 12 of port.docxUse appropriate SFR and a Modifier to configure bits 2 and 12 of port.docx
Use appropriate SFR and a Modifier to configure bits 2 and 12 of port.docxJamesZ96Nashl
 
urrent Attempt in Progress Companies that use GAAP do not have any gui.docx
urrent Attempt in Progress Companies that use GAAP do not have any gui.docxurrent Attempt in Progress Companies that use GAAP do not have any gui.docx
urrent Attempt in Progress Companies that use GAAP do not have any gui.docxJamesZ96Nashl
 
Unix a- Use a pipe and the grep command to show only the files in the.docx
Unix a- Use a pipe and the grep command to show only the files in the.docxUnix a- Use a pipe and the grep command to show only the files in the.docx
Unix a- Use a pipe and the grep command to show only the files in the.docxJamesZ96Nashl
 
Unilever's branding of Dove (with Dove Facewash- Dove Bodywash- Dove e.docx
Unilever's branding of Dove (with Dove Facewash- Dove Bodywash- Dove e.docxUnilever's branding of Dove (with Dove Facewash- Dove Bodywash- Dove e.docx
Unilever's branding of Dove (with Dove Facewash- Dove Bodywash- Dove e.docxJamesZ96Nashl
 
uestion 2 Audrey woked a part time iot during colege to help pay lor v.docx
uestion 2 Audrey woked a part time iot during colege to help pay lor v.docxuestion 2 Audrey woked a part time iot during colege to help pay lor v.docx
uestion 2 Audrey woked a part time iot during colege to help pay lor v.docxJamesZ96Nashl
 
Types of Audit Evidence Auditors must gather a combination of many typ.docx
Types of Audit Evidence Auditors must gather a combination of many typ.docxTypes of Audit Evidence Auditors must gather a combination of many typ.docx
Types of Audit Evidence Auditors must gather a combination of many typ.docxJamesZ96Nashl
 
Type of disability which is AUTISM SPECTRUM DISORDER (ASD) and describ.docx
Type of disability which is AUTISM SPECTRUM DISORDER (ASD) and describ.docxType of disability which is AUTISM SPECTRUM DISORDER (ASD) and describ.docx
Type of disability which is AUTISM SPECTRUM DISORDER (ASD) and describ.docxJamesZ96Nashl
 
Tutorial Questions- Week 3 1- Explain what is meant by the term organi.docx
Tutorial Questions- Week 3 1- Explain what is meant by the term organi.docxTutorial Questions- Week 3 1- Explain what is meant by the term organi.docx
Tutorial Questions- Week 3 1- Explain what is meant by the term organi.docxJamesZ96Nashl
 
True or False- Based on the shapes of the graphs below- there is varia.docx
True or False- Based on the shapes of the graphs below- there is varia.docxTrue or False- Based on the shapes of the graphs below- there is varia.docx
True or False- Based on the shapes of the graphs below- there is varia.docxJamesZ96Nashl
 

More from JamesZ96Nashl (20)

using Gibbs cycle of reflection 1- Planning and Organising Skills It.docx
using Gibbs cycle of reflection  1- Planning and Organising Skills It.docxusing Gibbs cycle of reflection  1- Planning and Organising Skills It.docx
using Gibbs cycle of reflection 1- Planning and Organising Skills It.docx
 
Using early projects like the High-Scope Perry Preschool Project as mo.docx
Using early projects like the High-Scope Perry Preschool Project as mo.docxUsing early projects like the High-Scope Perry Preschool Project as mo.docx
Using early projects like the High-Scope Perry Preschool Project as mo.docx
 
Using extent research- news media- journal articles assigned in this m.docx
Using extent research- news media- journal articles assigned in this m.docxUsing extent research- news media- journal articles assigned in this m.docx
Using extent research- news media- journal articles assigned in this m.docx
 
Use the Level O DFD of the dentist office - from your notes and homewo.docx
Use the Level O DFD of the dentist office - from your notes and homewo.docxUse the Level O DFD of the dentist office - from your notes and homewo.docx
Use the Level O DFD of the dentist office - from your notes and homewo.docx
 
Use the Poisson Distribution to approximate the binomial probability b.docx
Use the Poisson Distribution to approximate the binomial probability b.docxUse the Poisson Distribution to approximate the binomial probability b.docx
Use the Poisson Distribution to approximate the binomial probability b.docx
 
Use the case scenario- along with the information regarding each of th.docx
Use the case scenario- along with the information regarding each of th.docxUse the case scenario- along with the information regarding each of th.docx
Use the case scenario- along with the information regarding each of th.docx
 
Use Python Write a program that firstly creates a list and initializes.docx
Use Python Write a program that firstly creates a list and initializes.docxUse Python Write a program that firstly creates a list and initializes.docx
Use Python Write a program that firstly creates a list and initializes.docx
 
Use induction to prove that n2-4n+1 for all integers n5-.docx
Use induction to prove that n2-4n+1 for all integers n5-.docxUse induction to prove that n2-4n+1 for all integers n5-.docx
Use induction to prove that n2-4n+1 for all integers n5-.docx
 
Use induction to show that- for any integer n1 - i-1nii!-(n+1)!1.docx
Use induction to show that- for any integer n1 - i-1nii!-(n+1)!1.docxUse induction to show that- for any integer n1 - i-1nii!-(n+1)!1.docx
Use induction to show that- for any integer n1 - i-1nii!-(n+1)!1.docx
 
Use induction to show that n!-2n for all integers n4-.docx
Use induction to show that n!-2n for all integers n4-.docxUse induction to show that n!-2n for all integers n4-.docx
Use induction to show that n!-2n for all integers n4-.docx
 
Use Figure 2a to answer questions 69- Assume Stars A and B are the sam.docx
Use Figure 2a to answer questions 69- Assume Stars A and B are the sam.docxUse Figure 2a to answer questions 69- Assume Stars A and B are the sam.docx
Use Figure 2a to answer questions 69- Assume Stars A and B are the sam.docx
 
Use appropriate SFR and a Modifier to configure bits 2 and 12 of port.docx
Use appropriate SFR and a Modifier to configure bits 2 and 12 of port.docxUse appropriate SFR and a Modifier to configure bits 2 and 12 of port.docx
Use appropriate SFR and a Modifier to configure bits 2 and 12 of port.docx
 
urrent Attempt in Progress Companies that use GAAP do not have any gui.docx
urrent Attempt in Progress Companies that use GAAP do not have any gui.docxurrent Attempt in Progress Companies that use GAAP do not have any gui.docx
urrent Attempt in Progress Companies that use GAAP do not have any gui.docx
 
Unix a- Use a pipe and the grep command to show only the files in the.docx
Unix a- Use a pipe and the grep command to show only the files in the.docxUnix a- Use a pipe and the grep command to show only the files in the.docx
Unix a- Use a pipe and the grep command to show only the files in the.docx
 
Unilever's branding of Dove (with Dove Facewash- Dove Bodywash- Dove e.docx
Unilever's branding of Dove (with Dove Facewash- Dove Bodywash- Dove e.docxUnilever's branding of Dove (with Dove Facewash- Dove Bodywash- Dove e.docx
Unilever's branding of Dove (with Dove Facewash- Dove Bodywash- Dove e.docx
 
uestion 2 Audrey woked a part time iot during colege to help pay lor v.docx
uestion 2 Audrey woked a part time iot during colege to help pay lor v.docxuestion 2 Audrey woked a part time iot during colege to help pay lor v.docx
uestion 2 Audrey woked a part time iot during colege to help pay lor v.docx
 
Types of Audit Evidence Auditors must gather a combination of many typ.docx
Types of Audit Evidence Auditors must gather a combination of many typ.docxTypes of Audit Evidence Auditors must gather a combination of many typ.docx
Types of Audit Evidence Auditors must gather a combination of many typ.docx
 
Type of disability which is AUTISM SPECTRUM DISORDER (ASD) and describ.docx
Type of disability which is AUTISM SPECTRUM DISORDER (ASD) and describ.docxType of disability which is AUTISM SPECTRUM DISORDER (ASD) and describ.docx
Type of disability which is AUTISM SPECTRUM DISORDER (ASD) and describ.docx
 
Tutorial Questions- Week 3 1- Explain what is meant by the term organi.docx
Tutorial Questions- Week 3 1- Explain what is meant by the term organi.docxTutorial Questions- Week 3 1- Explain what is meant by the term organi.docx
Tutorial Questions- Week 3 1- Explain what is meant by the term organi.docx
 
True or False- Based on the shapes of the graphs below- there is varia.docx
True or False- Based on the shapes of the graphs below- there is varia.docxTrue or False- Based on the shapes of the graphs below- there is varia.docx
True or False- Based on the shapes of the graphs below- there is varia.docx
 

Recently uploaded

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayMakMakNepo
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up Friday
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 

USE R PROGRAM TO SOLVE THIS a) -8 points- Create a function named al.docx

  • 1. USE R PROGRAM TO SOLVE THIS a) [8 points] Create a function named all_loan_offers that satisfies the following requirements: Arguments: - A data frame that stores the income, criminal record, and the number of years in the present job for all loan applicants. You can use a name of your choice for the data frame, but the column names must be income, c_record, and years. - Output: The updated version of the inputted data frame which has a new column titled "decision". "decision" is a categorical column whose elements can take any values of "Admit" or "Reject". Please note that the function must return the updated data frame not the decision vector. b) [1 point] Please assume that the following table shows the information of four loan applicants. Save the information in the above table in a data frame named applicants_info. Name the columns income, c_record, and years. c) [1 point] Run your function using applicants_info as its input. You should see the updated applicants_info including the decision column of "Reject" "Admit" "Reject" "Admit" as the function's output.