Displaying 2 results from an estimated 2 matches for "plant_id".
Did you mean:
plane_id
2009 Oct 23
5
Change positions of columns in data frame
...n a data frame using cbind(). As they're all put as the last columns inte the data frame, I would like to move them to specific positions. How do you do to change the position of a column in a data frame?
I know I can use fieldTrial0809=data.frame(Sample_ID=as.factor(fieldTrial0809$Sample_ID), Plant_ID=as.factor(fieldTrial0809$Plant_ID), ...) to create a new data frame with the given columns in the specified order, but there must be an easier way..?
All the best,
Joel
_________________________________________________________________
Nya Windows 7 - Hitta en dator som passar dig! Me...
2006 Nov 04
0
Rails newbie - can anyone please help with many to many NoMethodError
Please can someone help with the following problem -
I''m using LoginEngine and have a Users table linked many to many to a Plants table. The joining table is plants_users with plant_id and user_id (there are extra fields, so I''m avoiding has_and_belongs_to_many - plus it didn''t work :().
::user.rb starts:-
class User < ActiveRecord::Base
has_many :Plants, :through => :plants_users
...
::plant.rb is:-
class Plant < ActiveRecord::Base
has_many :Users...