SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler offline
In R,
"For a 11 problems, you should include a short demonstration (one or two examples) showing that
you coded your function correctly.* 1. "Write a function that has a logical vector (TRUE/FALSE) as
its argument. The function should treat the logical vector as a binary integer in that FALSE = 0 and
TRUE =1. The function should ca7culate and return the corresponding integer. For example, for
argument C(TRUE,FALSE), the function should return 2 , since 10 in base 2 is 2 in base 10
(hence the joke above). For argument C(FALSE, TRUE, FALSE, TRUE), the function should
return 5 because 0101 in base 2 is 5 in base 10 * 2. "Write a function that takes in a logical vector
of length 64 and returns the sign ( -1 or 1 ), the exponent (integer between -1023 and +1023 ), and
fraction (number between 1 and 2) according to the IEEE double precision format. Assume that
the first digit is the sign, the next digits are for the exponent, and the 7 ast digits are for the
fraction. *

Mais conteúdo relacionado

Semelhante a In R For a 11 problems you should include a short demonst.pdf

This code i would want to work ssh compiling for the this ta.pdf
This code i would want to work ssh compiling for the this ta.pdfThis code i would want to work ssh compiling for the this ta.pdf
This code i would want to work ssh compiling for the this ta.pdf
admin447081
 
C interview question answer 2
C interview question answer 2C interview question answer 2
C interview question answer 2
Amit Kapoor
 
Excel IF, IFs.ppt
Excel IF, IFs.pptExcel IF, IFs.ppt
Excel IF, IFs.ppt
EdwinAdeolaOluwasina1
 
Assignment Two Objectives • Understand how the.docx
Assignment Two   Objectives • Understand how the.docxAssignment Two   Objectives • Understand how the.docx
Assignment Two Objectives • Understand how the.docx
lynettearnold46882
 
Virtusa questions placement preparation guide
Virtusa questions placement preparation guideVirtusa questions placement preparation guide
Virtusa questions placement preparation guide
ThalaAjith33
 

Semelhante a In R For a 11 problems you should include a short demonst.pdf (20)

Answers computer networks 159334 assignment_2_2010
Answers computer networks 159334 assignment_2_2010Answers computer networks 159334 assignment_2_2010
Answers computer networks 159334 assignment_2_2010
 
This code i would want to work ssh compiling for the this ta.pdf
This code i would want to work ssh compiling for the this ta.pdfThis code i would want to work ssh compiling for the this ta.pdf
This code i would want to work ssh compiling for the this ta.pdf
 
C interview question answer 2
C interview question answer 2C interview question answer 2
C interview question answer 2
 
The Real Numbers
The Real NumbersThe Real Numbers
The Real Numbers
 
Writer Monad for logging execution of functions
Writer Monad for logging execution of functionsWriter Monad for logging execution of functions
Writer Monad for logging execution of functions
 
Excel IF, IFs.ppt
Excel IF, IFs.pptExcel IF, IFs.ppt
Excel IF, IFs.ppt
 
A Reflective Implementation of an Actor-based Concurrent Context-Oriented System
A Reflective Implementation of an Actor-based Concurrent Context-Oriented SystemA Reflective Implementation of an Actor-based Concurrent Context-Oriented System
A Reflective Implementation of an Actor-based Concurrent Context-Oriented System
 
Query optimization in database
Query optimization in databaseQuery optimization in database
Query optimization in database
 
1.2 matlab numerical data
1.2  matlab numerical data1.2  matlab numerical data
1.2 matlab numerical data
 
Mettl prg
Mettl prgMettl prg
Mettl prg
 
ch14.ppt
ch14.pptch14.ppt
ch14.ppt
 
Assignment Two Objectives • Understand how the.docx
Assignment Two   Objectives • Understand how the.docxAssignment Two   Objectives • Understand how the.docx
Assignment Two Objectives • Understand how the.docx
 
Answers To Selected Exercises For Fortran 90 95 For Scientists And Engineers
Answers To Selected Exercises For Fortran 90 95 For Scientists And EngineersAnswers To Selected Exercises For Fortran 90 95 For Scientists And Engineers
Answers To Selected Exercises For Fortran 90 95 For Scientists And Engineers
 
Excel formulas
Excel formulasExcel formulas
Excel formulas
 
Compiler notes--unit-iii
Compiler notes--unit-iiiCompiler notes--unit-iii
Compiler notes--unit-iii
 
NPTEL QUIZ.docx
NPTEL QUIZ.docxNPTEL QUIZ.docx
NPTEL QUIZ.docx
 
Mathematical Statistics Assignment Help
Mathematical Statistics Assignment HelpMathematical Statistics Assignment Help
Mathematical Statistics Assignment Help
 
DE notes
DE notesDE notes
DE notes
 
Virtusa questions placement preparation guide
Virtusa questions placement preparation guideVirtusa questions placement preparation guide
Virtusa questions placement preparation guide
 
Lecture 3 and 4.pptx
Lecture 3 and 4.pptxLecture 3 and 4.pptx
Lecture 3 and 4.pptx
 

Mais de abdulauto

Please answer all the questions QUESTION 1 How has the .pdf
Please answer all the questions  QUESTION 1 How has the .pdfPlease answer all the questions  QUESTION 1 How has the .pdf
Please answer all the questions QUESTION 1 How has the .pdf
abdulauto
 
Uber rnei Arka Plan zeti Koullar Nadiren teknolojik bi.pdf
Uber rnei Arka Plan zeti   Koullar Nadiren teknolojik bi.pdfUber rnei Arka Plan zeti   Koullar Nadiren teknolojik bi.pdf
Uber rnei Arka Plan zeti Koullar Nadiren teknolojik bi.pdf
abdulauto
 
Tooth Development in the Skeleton in the Cellar Notes from t.pdf
Tooth Development in the Skeleton in the Cellar Notes from t.pdfTooth Development in the Skeleton in the Cellar Notes from t.pdf
Tooth Development in the Skeleton in the Cellar Notes from t.pdf
abdulauto
 

Mais de abdulauto (20)

Please answer all the questions QUESTION 1 How has the .pdf
Please answer all the questions  QUESTION 1 How has the .pdfPlease answer all the questions  QUESTION 1 How has the .pdf
Please answer all the questions QUESTION 1 How has the .pdf
 
Observe the figure below Suppose that the equilibrium point.pdf
Observe the figure below Suppose that the equilibrium point.pdfObserve the figure below Suppose that the equilibrium point.pdf
Observe the figure below Suppose that the equilibrium point.pdf
 
Nancy Howe your staff assistant on the April 30 20X2 audi.pdf
Nancy Howe your staff assistant on the April 30 20X2 audi.pdfNancy Howe your staff assistant on the April 30 20X2 audi.pdf
Nancy Howe your staff assistant on the April 30 20X2 audi.pdf
 
Kenneth Spear invested 19000 today in a fund that earns 12.pdf
Kenneth Spear invested 19000 today in a fund that earns 12.pdfKenneth Spear invested 19000 today in a fund that earns 12.pdf
Kenneth Spear invested 19000 today in a fund that earns 12.pdf
 
Which of the following is the best definition of EIM Group .pdf
Which of the following is the best definition of EIM Group .pdfWhich of the following is the best definition of EIM Group .pdf
Which of the following is the best definition of EIM Group .pdf
 
XBinomnp1+X1.pdf
XBinomnp1+X1.pdfXBinomnp1+X1.pdf
XBinomnp1+X1.pdf
 
Identificar un ejemploejemplos de servicios de atestacin.pdf
Identificar un ejemploejemplos de servicios de atestacin.pdfIdentificar un ejemploejemplos de servicios de atestacin.pdf
Identificar un ejemploejemplos de servicios de atestacin.pdf
 
Friends A B and C all consume pizza and music Pizza is a p.pdf
Friends A B and C all consume pizza and music Pizza is a p.pdfFriends A B and C all consume pizza and music Pizza is a p.pdf
Friends A B and C all consume pizza and music Pizza is a p.pdf
 
Which of the following statements is true of an oligopoly A.pdf
Which of the following statements is true of an oligopoly A.pdfWhich of the following statements is true of an oligopoly A.pdf
Which of the following statements is true of an oligopoly A.pdf
 
The time of the nth point Tn of a Poisson process N of con.pdf
The time of the nth point Tn of a Poisson process N of con.pdfThe time of the nth point Tn of a Poisson process N of con.pdf
The time of the nth point Tn of a Poisson process N of con.pdf
 
Uber rnei Arka Plan zeti Koullar Nadiren teknolojik bi.pdf
Uber rnei Arka Plan zeti   Koullar Nadiren teknolojik bi.pdfUber rnei Arka Plan zeti   Koullar Nadiren teknolojik bi.pdf
Uber rnei Arka Plan zeti Koullar Nadiren teknolojik bi.pdf
 
Think about the topic of COVID19 pandemic and vaccine distr.pdf
Think about the topic of COVID19 pandemic and vaccine distr.pdfThink about the topic of COVID19 pandemic and vaccine distr.pdf
Think about the topic of COVID19 pandemic and vaccine distr.pdf
 
Tooth Development in the Skeleton in the Cellar Notes from t.pdf
Tooth Development in the Skeleton in the Cellar Notes from t.pdfTooth Development in the Skeleton in the Cellar Notes from t.pdf
Tooth Development in the Skeleton in the Cellar Notes from t.pdf
 
The purpose of the InLine Lunge is to assess 1 hip knee .pdf
The purpose of the InLine Lunge is to assess 1 hip knee .pdfThe purpose of the InLine Lunge is to assess 1 hip knee .pdf
The purpose of the InLine Lunge is to assess 1 hip knee .pdf
 
The focus now moves to another one of Hill and Lynns Three.pdf
The focus now moves to another one of Hill and Lynns Three.pdfThe focus now moves to another one of Hill and Lynns Three.pdf
The focus now moves to another one of Hill and Lynns Three.pdf
 
If you are a carrier of a genetic disorder which of the fol.pdf
If you are a carrier of a genetic disorder which of the fol.pdfIf you are a carrier of a genetic disorder which of the fol.pdf
If you are a carrier of a genetic disorder which of the fol.pdf
 
HetE2LCt591UCRA11621CL0 restifs prinidest D.pdf
HetE2LCt591UCRA11621CL0 restifs prinidest D.pdfHetE2LCt591UCRA11621CL0 restifs prinidest D.pdf
HetE2LCt591UCRA11621CL0 restifs prinidest D.pdf
 
Empowering workers by adding more decisions making aubvority.pdf
Empowering workers by adding more decisions making aubvority.pdfEmpowering workers by adding more decisions making aubvority.pdf
Empowering workers by adding more decisions making aubvority.pdf
 
At the surface of the Earth acids occur naturally as a resu.pdf
At the surface of the Earth acids occur naturally as a resu.pdfAt the surface of the Earth acids occur naturally as a resu.pdf
At the surface of the Earth acids occur naturally as a resu.pdf
 
8 A discretetime sinusoidal sequence with frequency f1 and.pdf
8 A discretetime sinusoidal sequence with frequency f1 and.pdf8 A discretetime sinusoidal sequence with frequency f1 and.pdf
8 A discretetime sinusoidal sequence with frequency f1 and.pdf
 

Último

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Último (20)

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 

In R For a 11 problems you should include a short demonst.pdf

  • 1. In R, "For a 11 problems, you should include a short demonstration (one or two examples) showing that you coded your function correctly.* 1. "Write a function that has a logical vector (TRUE/FALSE) as its argument. The function should treat the logical vector as a binary integer in that FALSE = 0 and TRUE =1. The function should ca7culate and return the corresponding integer. For example, for argument C(TRUE,FALSE), the function should return 2 , since 10 in base 2 is 2 in base 10 (hence the joke above). For argument C(FALSE, TRUE, FALSE, TRUE), the function should return 5 because 0101 in base 2 is 5 in base 10 * 2. "Write a function that takes in a logical vector of length 64 and returns the sign ( -1 or 1 ), the exponent (integer between -1023 and +1023 ), and fraction (number between 1 and 2) according to the IEEE double precision format. Assume that the first digit is the sign, the next digits are for the exponent, and the 7 ast digits are for the fraction. *