SlideShare a Scribd company logo
1 of 1
Download to read offline
Write the R code to generate the following output by using character functions
1)
Input: "I am a student"
Output: "I am a teacher"
2)
Input: "I am a student"
Output:
[[1]]
[1] "I" "am" "a" "student"
1)
Input: "I am a student"
Output: "I am a teacher"
2)
Input: "I am a student"
Output:
[[1]]
[1] "I" "am" "a" "student"

More Related Content

More from agpcorp

write report that will Evaluate your organizations IT infras.pdf
write report that will Evaluate your organizations IT infras.pdfwrite report that will Evaluate your organizations IT infras.pdf
write report that will Evaluate your organizations IT infras.pdfagpcorp
 
Write the assembly program Can use put_qword_safe to pr.pdf
Write the assembly program Can use put_qword_safe to pr.pdfWrite the assembly program Can use put_qword_safe to pr.pdf
Write the assembly program Can use put_qword_safe to pr.pdfagpcorp
 
Write program in JavaC to sort the given array using merge .pdf
Write program in JavaC to sort the given array using merge .pdfWrite program in JavaC to sort the given array using merge .pdf
Write program in JavaC to sort the given array using merge .pdfagpcorp
 
Write the Asymptotic Complexity for each line of code and th.pdf
Write the Asymptotic Complexity for each line of code and th.pdfWrite the Asymptotic Complexity for each line of code and th.pdf
Write the Asymptotic Complexity for each line of code and th.pdfagpcorp
 
Write the below pseudo code segment using a multipleselecti.pdf
Write the below pseudo code segment using a multipleselecti.pdfWrite the below pseudo code segment using a multipleselecti.pdf
Write the below pseudo code segment using a multipleselecti.pdfagpcorp
 
Write node express application that displays the rectangle f.pdf
Write node express application that displays the rectangle f.pdfWrite node express application that displays the rectangle f.pdf
Write node express application that displays the rectangle f.pdfagpcorp
 
write information about the plant propertieseffects of coca.pdf
write information about the plant propertieseffects of coca.pdfwrite information about the plant propertieseffects of coca.pdf
write information about the plant propertieseffects of coca.pdfagpcorp
 
Write in SML A proper divisor of a natural number is the div.pdf
Write in SML A proper divisor of a natural number is the div.pdfWrite in SML A proper divisor of a natural number is the div.pdf
Write in SML A proper divisor of a natural number is the div.pdfagpcorp
 
Write a main method that will request the user to enter Stri.pdf
Write a main method that will request the user to enter Stri.pdfWrite a main method that will request the user to enter Stri.pdf
Write a main method that will request the user to enter Stri.pdfagpcorp
 
Write combining forms for each of the following terms 1 an.pdf
Write combining forms for each of the following terms 1 an.pdfWrite combining forms for each of the following terms 1 an.pdf
Write combining forms for each of the following terms 1 an.pdfagpcorp
 
Write code for problem 2 please Create a linked list by ent.pdf
Write code for problem 2 please  Create a linked list by ent.pdfWrite code for problem 2 please  Create a linked list by ent.pdf
Write code for problem 2 please Create a linked list by ent.pdfagpcorp
 
Write a Python function named validInput that displays to .pdf
Write a Python function named validInput that displays to .pdfWrite a Python function named validInput that displays to .pdf
Write a Python function named validInput that displays to .pdfagpcorp
 
write code in PYTHON please 82 LAB Set of upper and low.pdf
write code in PYTHON please 82 LAB Set of upper and low.pdfwrite code in PYTHON please 82 LAB Set of upper and low.pdf
write code in PYTHON please 82 LAB Set of upper and low.pdfagpcorp
 
Write a program in Python that implements Newtons method to.pdf
Write a program in Python that implements Newtons method to.pdfWrite a program in Python that implements Newtons method to.pdf
Write a program in Python that implements Newtons method to.pdfagpcorp
 
Write a Python Monster class Monster should have the follow.pdf
Write a Python Monster class Monster should have the follow.pdfWrite a Python Monster class Monster should have the follow.pdf
Write a Python Monster class Monster should have the follow.pdfagpcorp
 
Write a program that prints the message Hello my name is .pdf
Write a program that prints the message Hello my name is .pdfWrite a program that prints the message Hello my name is .pdf
Write a program that prints the message Hello my name is .pdfagpcorp
 
Write a program named FavoriteWordsjava that prompts user t.pdf
Write a program named FavoriteWordsjava that prompts user t.pdfWrite a program named FavoriteWordsjava that prompts user t.pdf
Write a program named FavoriteWordsjava that prompts user t.pdfagpcorp
 
Write a method called recAdd that will add the integer ele.pdf
Write a method called recAdd that will add the integer ele.pdfWrite a method called recAdd that will add the integer ele.pdf
Write a method called recAdd that will add the integer ele.pdfagpcorp
 
Write an HCS12 assembly program that executes the following .pdf
Write an HCS12 assembly program that executes the following .pdfWrite an HCS12 assembly program that executes the following .pdf
Write an HCS12 assembly program that executes the following .pdfagpcorp
 
Write an AES 128 code that encrypts and decrypts the followi.pdf
Write an AES 128 code that encrypts and decrypts the followi.pdfWrite an AES 128 code that encrypts and decrypts the followi.pdf
Write an AES 128 code that encrypts and decrypts the followi.pdfagpcorp
 

More from agpcorp (20)

write report that will Evaluate your organizations IT infras.pdf
write report that will Evaluate your organizations IT infras.pdfwrite report that will Evaluate your organizations IT infras.pdf
write report that will Evaluate your organizations IT infras.pdf
 
Write the assembly program Can use put_qword_safe to pr.pdf
Write the assembly program Can use put_qword_safe to pr.pdfWrite the assembly program Can use put_qword_safe to pr.pdf
Write the assembly program Can use put_qword_safe to pr.pdf
 
Write program in JavaC to sort the given array using merge .pdf
Write program in JavaC to sort the given array using merge .pdfWrite program in JavaC to sort the given array using merge .pdf
Write program in JavaC to sort the given array using merge .pdf
 
Write the Asymptotic Complexity for each line of code and th.pdf
Write the Asymptotic Complexity for each line of code and th.pdfWrite the Asymptotic Complexity for each line of code and th.pdf
Write the Asymptotic Complexity for each line of code and th.pdf
 
Write the below pseudo code segment using a multipleselecti.pdf
Write the below pseudo code segment using a multipleselecti.pdfWrite the below pseudo code segment using a multipleselecti.pdf
Write the below pseudo code segment using a multipleselecti.pdf
 
Write node express application that displays the rectangle f.pdf
Write node express application that displays the rectangle f.pdfWrite node express application that displays the rectangle f.pdf
Write node express application that displays the rectangle f.pdf
 
write information about the plant propertieseffects of coca.pdf
write information about the plant propertieseffects of coca.pdfwrite information about the plant propertieseffects of coca.pdf
write information about the plant propertieseffects of coca.pdf
 
Write in SML A proper divisor of a natural number is the div.pdf
Write in SML A proper divisor of a natural number is the div.pdfWrite in SML A proper divisor of a natural number is the div.pdf
Write in SML A proper divisor of a natural number is the div.pdf
 
Write a main method that will request the user to enter Stri.pdf
Write a main method that will request the user to enter Stri.pdfWrite a main method that will request the user to enter Stri.pdf
Write a main method that will request the user to enter Stri.pdf
 
Write combining forms for each of the following terms 1 an.pdf
Write combining forms for each of the following terms 1 an.pdfWrite combining forms for each of the following terms 1 an.pdf
Write combining forms for each of the following terms 1 an.pdf
 
Write code for problem 2 please Create a linked list by ent.pdf
Write code for problem 2 please  Create a linked list by ent.pdfWrite code for problem 2 please  Create a linked list by ent.pdf
Write code for problem 2 please Create a linked list by ent.pdf
 
Write a Python function named validInput that displays to .pdf
Write a Python function named validInput that displays to .pdfWrite a Python function named validInput that displays to .pdf
Write a Python function named validInput that displays to .pdf
 
write code in PYTHON please 82 LAB Set of upper and low.pdf
write code in PYTHON please 82 LAB Set of upper and low.pdfwrite code in PYTHON please 82 LAB Set of upper and low.pdf
write code in PYTHON please 82 LAB Set of upper and low.pdf
 
Write a program in Python that implements Newtons method to.pdf
Write a program in Python that implements Newtons method to.pdfWrite a program in Python that implements Newtons method to.pdf
Write a program in Python that implements Newtons method to.pdf
 
Write a Python Monster class Monster should have the follow.pdf
Write a Python Monster class Monster should have the follow.pdfWrite a Python Monster class Monster should have the follow.pdf
Write a Python Monster class Monster should have the follow.pdf
 
Write a program that prints the message Hello my name is .pdf
Write a program that prints the message Hello my name is .pdfWrite a program that prints the message Hello my name is .pdf
Write a program that prints the message Hello my name is .pdf
 
Write a program named FavoriteWordsjava that prompts user t.pdf
Write a program named FavoriteWordsjava that prompts user t.pdfWrite a program named FavoriteWordsjava that prompts user t.pdf
Write a program named FavoriteWordsjava that prompts user t.pdf
 
Write a method called recAdd that will add the integer ele.pdf
Write a method called recAdd that will add the integer ele.pdfWrite a method called recAdd that will add the integer ele.pdf
Write a method called recAdd that will add the integer ele.pdf
 
Write an HCS12 assembly program that executes the following .pdf
Write an HCS12 assembly program that executes the following .pdfWrite an HCS12 assembly program that executes the following .pdf
Write an HCS12 assembly program that executes the following .pdf
 
Write an AES 128 code that encrypts and decrypts the followi.pdf
Write an AES 128 code that encrypts and decrypts the followi.pdfWrite an AES 128 code that encrypts and decrypts the followi.pdf
Write an AES 128 code that encrypts and decrypts the followi.pdf
 

Recently uploaded

Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
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
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 

Recently uploaded (20)

Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
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
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 

Write the R code to generate the following output by using c.pdf

  • 1. Write the R code to generate the following output by using character functions 1) Input: "I am a student" Output: "I am a teacher" 2) Input: "I am a student" Output: [[1]] [1] "I" "am" "a" "student" 1) Input: "I am a student" Output: "I am a teacher" 2) Input: "I am a student" Output: [[1]] [1] "I" "am" "a" "student"