search for: scananal

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

2010 Aug 10
3
grep problem decimal points looping
...5.33" "X6.33" "X7.33" "X8.33" What the names mean are behaviour.day the X is not important to the data, it is the numbers I am trying to select on. So I want to split the data by day i.e. selecting for the number after the decimal. I am using this code (where scananal is the data) with out looping so the number following the decimal I change manually (NB the data have been changed to character): DAY <- grep("(X[[:digit:]]+).3",colnames(scananal)) However, this will select for day 3, 30, 31, 32, etc I have tried to use fixed = TRUE, but that just r...