Re: [R] Adding columns to a tibble based on a value in a different tibble

2023-11-04 Thread avi.e.gross
Yes, Bert. At first glance I thought it was one of the merge/joins and then wondered at the wording that made it sound like the ids may not be one per column. IFF the need is the simpler case, it is a straightforward enough and common need. An example might make it clear enough so actual code

Re: [R] Adding columns to a tibble based on a value in a different tibble

2023-11-04 Thread Bert Gunter
I think a simple reproducible example ("reprex") may be necessary for you to get a useful reply. Questions with vague specifications such as yours often result in going round and round with attempts to clarify what you mean without a satisfactory answer. Clarification at the outset with a reprex

[R] Adding columns to a tibble based on a value in a different tibble

2023-11-04 Thread Alessandro Puglisi
Hi everyone, I have a tibble with various ids and associated information. I need to add a new column to this tibble that retrieves a specific 'y' value from a different tibble that has some of the mentioned ids in the first column and a 'y' value in the second one. If the id, and so the 'y'