Glenn Claudi-Magnussen Posted April 6, 2020 Share Posted April 6, 2020 Hello. This is probably basic, but I'm new to working with TERR (and R) and I'm hoping someone can help me with something. I have a number of column properties with names like Limits.XXX.Lower, where XXX is not necessarily pre-defined. I'm trying to reference it in TERR. The current code has the column property name spelled out as follows: MyValue = as.numeric(att$SpotfireColumnMetaData$Limits.Prod.Lower) What I'm looking to do is assignthe name of the propertya variable, and then use the variable instead. I tried the following: WhichLimits = "att$SpotfireColumnMetaData$Limits.Prod.Lower" MyValue = as.numeric(WhichLimits) When I do this I get a warning that says "NAs introduced by coercion", and of course the subsequent code didn't work as intended. Is there a way to make it work Thanks! Glenn Link to comment Share on other sites More sharing options...
Anders Gavare Posted April 15, 2020 Share Posted April 15, 2020 Maybe something like: md Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now