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.
Applied Statistics, Statistics
Related Questions in Applied Statistics
QUESTION ONE (a) A factory manager claims that workers at plant A are faster than those at plant B. To test the claim, a random sample of times (in minutes) taken to complete a given task was taken from each of the plant ...
|
You are expected to work in groups and write a research report. When you work on your report, you need to use the dataset, and other sources such as journal articles. If you use website material, please pay attention to ...
|
Assignment - For each of the prompts below, report the appropriate degrees of freedom, t statistic, p-value and plot using the statistical software platform of your choice (R/STATA) 1) A sample of 12 men and 14 women hav ...
|
Assignment - Research topic Purpose: The purpose of this task is to ensure you are progressing satisfactorily with your research project, and that you have clean, useable data to analyse for your final project report. Ta ...
|
Assessment Task - You become interested in the non-skeletal effects of vitamin D and review the literature. On the basis of your reading you find that there is some evidence to suggest that vitamin D deficiency is linked ...
|
PART A - Question 1 - An analyst considers to test the order of integration of some time series data. She decides to use the DF test. She estimates a regression of the form Δy t = μ + ψy t-1 + u t and obtains the estimat ...
|
Medical and Applied Physiology Experimental Report Assignment - Title - Compare the working and spatial memory by EEG. 30 students were tested (2 memory games were played to test their memory - a card game and a number g ...
|
Business Data Analysis Computer Assignment - PART 1 - Economists believe that high rates of unemployment are linked to decreased life satisfaction ratings. To investigate this relationship, a researcher plans to survey a ...
|
Question - Go to the website, National Quality Forum (NQF), located in the Webliography, and download the article by WIRED FOR QUALITY: The Intersection of Health IT and Healthcare Quality, Number 8, MARCH 2008. You are ...
|
Go to the Webliography source for the National Cancer Institute's Surveillance, Epidemiology, and End Results (SEER) Program. In the Fast Stats, create your own cancer statistical report, "Stratified by Data Type," and u ...
|
|
-
4,153,160 Questions Asked
13,132 Experts
2,558,936 Questions Answered
Ask Experts for help!!
Looking for Assignment Help?
Start excelling in your Courses,
Get help with Assignment
Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.
Ask Now
Help with Problems, Get a Best Answer
Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate
|
Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p
|
Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As
|
Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int
|
Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As
|
|