The enron scandal led to the bankruptcy of the enron


Problem Assignment -

The Enron scandal led to the bankruptcy of the Enron Corporation, the largest bankcruptcy reorganization in US history at that time, and to the dissolution of Arthur Andersen, one of the five largest audit and accountancy partnerships in the world. In this exercise, you will download text on the scandal available through Wikipedia and filter it to the sentences dealing with Kenneth Lay, one of the main figures in the scandal.

Download the source code from following wikipedia page: Enron scandal. Use readLines ( . . . ).

Go to the same webpage in your browser and look at the source code (Google Chrome: right mouse click & view page source). All lines that include text from the main body (no headers, info boxes, etc.) always start with the same html tag, namely

. Use a regular expression to limit the downloaded data to lines that include text from the main body. Use grep (. . .).

Remove html tags using gsub( . . . ). Html tags always have the same format, namely a certain number of characters within angle brackets (also called guillemets, '<' and '>'), e.g.

. Write a regular expressions that captures all html tags.

We want to construct a vector where each element is a single sentence, which is currently not the case First, collapse the current vector into one character string, using paste( . . . , collapse = " " ) Subsequently, seperate the vector again at the end of individual sentences. We assume that '.' is the only sentence seperator. However, '.' is also a special character for constructing regular expressions. In order to use '.' as full stop, and not as the meta character 'any character', use backslashes as shown below. In addition, use the suffix [[1]] as the output is a list.

strsplit(..., "\\.")[[1]]

Find all sentences that include the term kenneth lay, ignoring cases.

Save the resulting vector of sentences in a text file named enron_ scandal . txt. Make sure that the resulting file does not have column names, row names, or quotation marks around the individual entries.

Request for Solution File

Ask an Expert for Answer!!
Applied Statistics: The enron scandal led to the bankruptcy of the enron
Reference No:- TGS02430869

Expected delivery within 24 Hours

  • Q : Using subpart i appendix b as a guide develop a hazard

    worksite hazard assignmentoshas personal protective equipment standard requires employers to assess the workplace to

  • Q : The darkroom window shade company has 100000 shares of

    question the darkroom window shade company has 100000 shares of stock outstanding the investors in the firm own the

  • Q : What is the role of critical thinking by both ordinary

    need your help to find this answer its require 300 wordssince september 11 2001 as well as more recently as terrorist

  • Q : You and your friend have opened an account on e-trade and

    question you and your friend have opened an account on e-trade and have each decided to select five similar companies

  • Q : The enron scandal led to the bankruptcy of the enron

    problem assignment -the enron scandal led to the bankruptcy of the enron corporation the largest bankcruptcy

  • Q : What are the criticism of south africas transiton to

    what are the criticism of south africas transiton to political

  • Q : What are the constitutional issues and legal doctrines

    assignmentcase chris coaches basketball at the college and chris friend pat teaches at the elementary school last

  • Q : Discuss the grievances of the people ie the causes of the

    paper on the uprisings and protest in saudi arabia which does the following using the references at the enddiscuss the

  • Q : Why does pure communism not work why did it fail in the

    why does pure communism not work why did it fail in the ussr in cuba and to a large extent even in

  • ©TutorsGlobe All rights reserved 2022-2023.