简体   繁体   English

Tibco Spotfire 中的字符串反转

[英]String Reverse in Tibco Spotfire

How to reverse a string in Tibco Spotfire ?如何在 Tibco Spotfire 中反转字符串? Spotfire provides lot of in built functions but there are some function as mentioned above are missing. Spotfire 提供了许多内置功能,但缺少一些上述功能。 But that can be achieved as mentioned below.但这可以实现,如下所述。

It can be done in many ways a simple method is as follows :它可以通过多种方式完成,一个简单的方法如下:

Use TERR Functions :使用 TERR 函数:

TERR_String("output <- sapply(lapply(strsplit(input1, NULL), rev), paste, collapse='')",) TERR_String("输出 <- sapply(lapply(strsplit(input1, NULL), rev), paste, collapse='')",)

This will reverse entire column content.这将反转整个列内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM