I will start with this:
My question is: how did you know that these functions exist in the first place?
Simple - we tried to solve a similar problem and ran into this function. It either fits or doesn't fit our needs, but we now know it. I did not use R very personally, but what you describe is a learning curve for each programming language. First, you study “grammar,” that is, what you can do. Then you are trying to do something. You find that you cannot.
At this point, the programmer has several options. What am I doing personally? It depends. I will try to find this package / header / library / any member functions to find out if something is suitable for my needs. I could have done this with Google, because if you really didn’t push the boundaries, someone somewhere probably tried and couldn’t do this before, and they answered their question. If you push the borders, someone somewhere probably tried before and couldn't, but didn't get an answer. I could try a forum or two to see what happens. I personally do not use IRC a lot, but this is another option, as well as mailing lists, depending on how specialized the problem is.
I also have a folder on my computer, full of books that I look at depending on the problem, and a small library of books that I look through / study, which often contain practical, not quite accessible, but adaptable examples.
My only comment will be trying to read the language specification; it is unlikely to be massively useful to you as a beginner. You cannot fully understand what this means, because you have not pushed the boundaries and tried. For example, a newbie in C might try the following:
char c = '7'; int x = (int) c;
to convert the character '7' to integer form. This is not a bad process until you understand how characters and ASCII work, then you see why the above does not give you what you want.
In short, I think this will be part of the learning process, and I do not think that you can shorten it. Consolation is like any research, the more you do it, the more you will know where to look and what questions to ask in different communities.