Displaying 2 results from an estimated 2 matches for "bond_id".
Did you mean:
pond_id
2011 Nov 02
1
I really need help to merge two data frames
Hello, I need help getting two data sets to merge. The structure of
my
two data sets are:
> str(bcusip)
'data.frame': 1391 obs. of 3 variables:
$ bond_id : Factor w/ 1391 levels "AAGH","AAGI",..: 1 2 3 4 5 6
$ Freq : num 41361 4126 5206 10125 45536 ...
$ CUSIP_ID: Factor w/ 1391 levels "00184AAC9","00184AAF2",..:
> str(bdescr)
'data.frame': 3674 obs. of 7 variables:
$ bond_id : Factor...
2009 Oct 06
0
[PATCH server] new host networking wui
...nd { |n| n.id == nic_id.to_i }
+ unless dnic.nil?
+ dnic.update_attributes!(nic)
+ end
+ }
+
+ # delete any bondings associated w/ host but not in bondings array
+ @host.bondings.each { |b|
+ b.destroy unless bondings.include?(b.id.to_s)
+ }
+
+ bondings.each { |bond_id, bond|
+ dbond = @host.bondings.all.find { |b| b.id == bond_id.to_i }
+ unless dbond.nil?
+ # update original bonding
+ dbond.update_attributes!(bond)
+ else
+ bond[:host_id] = id
+ # create new bonding
+ Bonding.create!(bond)
+ end
+ }
e...