Jump to content

Can I reference a column property with a variable in TERR

Glenn Claudi-Magnussen

Recommended Posts

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



Link to comment
Share on other sites

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...