search for: edeg_dir

Displaying 1 result from an estimated 1 matches for "edeg_dir".

Did you mean: dbg_dir
2009 Jul 24
2
How to find the min and max of two variables in a data frame
...he two existing variables. I then want to sort the data frame by min and max, and delete duplicated rows if both rows has the same min and same max. I am new to R so not sure how to fix my code. Here is my attempt and it is not working. Thanks! edge_dir$min=edge_dir[if (edge_dir$cid_dir1 < edeg_dir$cid_dir2) edge_dir$cid_dir1 else edge_dir$cid_dir2] edge_dir$max=edge_dir[if (edge_dir$cid_dir1 > edeg_dir$cid_dir2) edge_dir$cid_dir1 else edge_dir$cid_dir2] -- View this message in context: http://www.nabble.com/How-to-find-the-min-and-max-of-two-variables-in-a-data-frame-tp24638856p24638856...