下面的兩個第一功能發現在載體x所有NAS並用y 現在代替它的第一個函數: f <- function(x, y) {
is_miss <- is.na(x)
x[is_miss] <- y
message(sum(is_miss), " missings replaced by the value ", y)
x
}
x<-c(1,2,NA,4,5)
我從本文檔中看到:https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage,將數據正確傳遞給iframe的方式。但現在我想發送一個答案: //from main page
myIframe.contentWindow.postMessage('send me a response', '*');
//from ifr