Displaying 1 result from an estimated 1 matches for "_colnames".
Did you mean:
colnames
2003 Mar 07
1
column name changes based on substrings
...x x
...
So based on whether the existing column name has a .Na or a .K etc. in it
somewhere, I'd like it to be replaced with a name which I can provide i.e.
Na (%) or K (%).
So far I can't even figure out how to replace a column name:
>aa[colnames(aa)=="blah3.Mg"]_colnames("Mg (%)")
Error in matrix(value, n, p) : No data to replace in matrix(...)
help please
Cheers Jeremy