The Bloomberg exchange code for Dutch equities is "NA", for example "RDA NA Equity". I need to display the exchange code on a separate column in a handsontable. The default rendering function interprets the 2 character string "NA" as an Not Applicable value and shows a blank cell instead. I dealt with this by appending a space to all exchange codes. This is very unsatisfying. Is there some kind of setting that can prevent the handsontable renderer from "squelching" "NA" strings ?
问问题
371 次
1 回答
1
您可以应用自定义文本渲染器(默认rhandsontable
更改NA
为空字符串)
library(rhandsontable)
data = data.frame(a=rep(NA, 5))
rhandsontable(data) %>% hot_cols(renderer="
function (instance, td, row, col, prop, value, cellProperties) {
Handsontable.renderers.TextRenderer.apply(this, arguments);
}
")
于 2016-08-17T18:12:40.673 回答