Hi, If I have data as follows: DATA_names<-c( "A mg kg" "B mg kg" "C mg kg" "D mg kg" "E mg kg" "F mg kg" "G mg kg" "H mg kg"
How do I convert to: -1 A (mg kg ) -1 B (mg kg ) -1 C (mg kg ) -1 D (mg kg ) -1 E (mg kg ) -1 F (mg kg ) -1 G (mg kg ) -1 H (mg kg ) I have lots of elements and I need to do this automatically in a for loop or the like? Thanks, Shane [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.