Here is my df:
Analyte name Limit_Type
<chr> <chr> <chr>
1 " BOD(C)" Limit1 " 50%ile"
2 " BOD(C)" Limit1_Value "10"
3 " CBOD(C)" Limit1 " 90%ile"
4 " CBOD(C)" Limit1_Value "15"
5 " CBOD(C)" Limit2 " NA"
6 " CBOD(C)" Limit2_Value NA
I want to essentially "spread" or pivot_wider()
the 'Limit_Type' column so that my df looks like this:
Analyte Limit_Type Limit
<chr> <chr> <chr>
1 " BOD(C)" " 50%ile" 10
2 " CBOD(C)" " 90%ile" 15
3 " CBOD(C)" "NA" NA
is this possible with dplyr?
thanks.