Skip to content

Merging data XXXX

3 messages · Dan Abner, Marc Schwartz, David Winsemius

#
On Jan 13, 2012, at 12:42 PM, Dan Abner wrote:

            
Two ways:

  merge(specialist, weeks)

  expand.grid(specialist, weeks)

See ?merge which performs a SQL-like join operation and ?expand.grid which provides for all possible combinations of two or more vectors

HTH,

Marc Schwartz
#
On Jan 13, 2012, at 1:42 PM, Dan Abner wrote:

            
?rep
?data.frame

I would not think 'merge' is needed ... you just want to make the  
right number of copies and you should be paying attention to the  
'each' and 'times' parameters.
The above suggests failure adhere to the below