I am new to R and have been given a homework to do some basic analysis on a set of data, namely IPO data and the effect of Covid-19 on it. Of course, I have not had any classes in R, so this kind of a "throw him in the pool so he learns to swim" situation.
So I looked up some tutorials, but I just can't figure this out: I only have to compare the first half of each year (2017-2020), but I just don't know how I can eliminate everything that is not within that time from my dataframe. (Namely, IPOs in August through December.) How would I do that.
This is the head() of my dataset, at least what R is giving me back
# A tibble: 3 x 16
ExchangeName CompanyName CurrencyCode ListingVenue ListingDate Year Month `Domestic/Forei~ `Sector of Acti~
<chr> <chr> <chr> <chr> <chr> <dbl> <chr> <chr> <chr>
1 Hong Kong E~ SH Group (~ HKD MAIN 2017-01-03 2017 Jan Domestic Other
2 Shanghai St~ Central Ch~ CNY Shanghai St~ 2017-01-03 2017 Jan Domestic other
3 Shanghai St~ Zhejiang H~ CNY Shanghai St~ 2017-01-03 2017 Jan Domestic other
# ... with 7 more variables: `ISIN/CUSIP/Other` <chr>, Region <chr>, `Country of Incorporation` <chr>, `Market
# Capitalisation on 1st trading day` <chr>, `Capital raised through IPO (Newly issued shares)` <chr>, `Capital raised
# through IPO (Already issued shares)` <chr>, `Capital raised through IPO (Total)` <chr>
thanks for any help in advance. I am really lost on this