I do not know how to program in R at all, I only know python pandas. How to do the following in R:
- my code has two variables, username and asignment
- I want to filter my dataframe so that I only get the row that has
name == username
... - and then I only want the the column whose name matches the variable
asignment
.
Pictured is how I did it in Python pandas just to make it clear what I want. How do I do this in R?