Question
2. Amendments.txt is a tab delimited le containing information on the 27 amendments to the US con- stitution. The included variables are Amendment (the amendment
2. Amendments.txt is a tab delimited le containing information on the 27 amendments to the US con-
stitution. The included variables are Amendment (the amendment number), Proposed (the date the
amendment was proposed), and Completed (the date the amendment was ratied). Note the format
of the dates. Load this le into R as a data frame. Make each of the following alterations to this data
frame:
- Alter the Proposed and Completed variables so that they are stored as date data.
- Make a new variable called Elapsed that is the dierence between the proposal and ratication
dates of the amendments, in days.
- Make a new variable called Swift. Swift should be assigned a value of 'Yes' if Elapsed is less
than or equal to 365 days, whereas it should be assigned a value of 'No' if Elapsed is greater than 365 days.
Print the resulting data frame and report your output.
Amendment Proposed Completed
1st September 25, 1789 December 15, 1791
2nd September 25, 1780 December 15, 1791
3rd September 25, 1789 December 15, 1791
4th September 25, 1789 December 15, 1791
5th September 25, 1789 December 15, 1791
6th September 25, 1789 December 15, 1791
7th September 25, 1789 December 15, 1791
8th September 25, 1789 December 15, 1791
9th September 25, 1789 December 15, 1791
10th September 25, 1789 December 15, 1791
11th March 4, 1794 February 7, 1795
12th December 9, 1803 June 15, 1804
13th January 31, 1865 December 6, 1865
14th June 13, 1866 July 9, 1868
15th February 26, 1869 February 3, 1870
16th July 12, 1909 February 3, 1913
17th May 13, 1912 April 8, 1913
18th December 18, 1917 January 16, 1919
19th June 4, 1919 August 18, 1920
20th March 2, 1932 January 23, 1933
21st February 20, 1933 December 5, 1933
22nd March 21, 1947 February 27, 1951
23rd June 16, 1960 March 29, 1961
24th September 14, 1962 January 23, 1964
25th July 6, 1965 February 10, 1967
26th March 23, 1971 July 1, 1971
27th September 25, 1789 May 5, 1992
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started