Wow, sometimes writing it all out does really help to see the issue. I now see that I need to run the "log" command before splitting my data into a subset, or it won't see the newly created variable.
My code now runs without issue. Thanks for everyone who took the time to read this and/or help. I feel rather silly. -- View this message in context: http://r.789695.n4.nabble.com/Unable-to-reference-variable-created-in-dataframe-tp4640822p4640901.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.