第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

請問R語言中pd,mpd,mntd函數(shù)是哪個包里的函數(shù)?

請問R語言中pd,mpd,mntd函數(shù)是哪個包里的函數(shù)?

森欄 2019-07-01 10:06:14
R語言中pd,mpd,mntd函數(shù)是哪個包里的函數(shù)
查看完整描述

4 回答

?
MM們

TA貢獻1886條經(jīng)驗 獲得超2個贊

library和require都可以載入包,但二者存在區(qū)別。
在一個函數(shù)中,如果一個包不存在,執(zhí)行到library將會停止執(zhí)行,require則會繼續(xù)執(zhí)行。
require將會根據(jù)包的存在與否返回true或者false,

t <- library("abc")
Error in library("abc") : there is no package called 'abc'
> test#library沒有返回值
Error: object 'test' not found
> test <- require("abc")
Loading required package: abc
Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called 'abc'
> test#require有返回值
[1] FALSE
利用上面這一點可以進行一些操作
if(require("lme4")){
print("lme4 is loaded correctly")
} else {
print("trying to install lme4")
install.packages("lme4")
if(require(lme4)){
print("lme4 installed and loaded")
} else {
stop("could not install lme4")
}

}



查看完整回答
反對 回復 2019-07-13
?
繁花不似錦

TA貢獻1851條經(jīng)驗 獲得超4個贊

//不斷創(chuàng)建線程,直到再不能創(chuàng)建為止
m_nCount=nCount;
UpdateData(FALSE);
Sleep(5000);
//延時5秒,等待所有創(chuàng)建的線程結(jié)束
GetDlgItem(IDC_TEST)->EnableWindow(TRUE);
m_bRunFlag=TRUE;
}



查看完整回答
反對 回復 2019-07-13
  • 4 回答
  • 0 關(guān)注
  • 2069 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號