- Modern R Programming Cookbook
- Jaynal Abedin
- 96字
- 2021-07-08 09:48:30
There's more…
You can create a vector by providing a combination of character, numeric, and logical, but the output will be always a single type. Now, the question is, if you try to create a vector of mixed data types, then what will be the type of output vector? The answer follows the rules as follows:
- A combination of character and any other data type produces a character vector
- A combination of numeric and logical data type produces a numeric vector
- A combination of complex and numeric or logical data type produces a complex vector
推薦閱讀
- 認(rèn)識編程:以Python語言講透編程的本質(zhì)
- Visual Basic程序設(shè)計(jì)(第3版):學(xué)習(xí)指導(dǎo)與練習(xí)
- Vue.js 3.0源碼解析(微課視頻版)
- 零基礎(chǔ)學(xué)MQL:基于EA的自動(dòng)化交易編程
- Python編程與幾何圖形
- Serverless架構(gòu)
- 量化金融R語言高級教程
- 持續(xù)輕量級Java EE開發(fā):編寫可測試的代碼
- R數(shù)據(jù)科學(xué)實(shí)戰(zhàn):工具詳解與案例分析
- Learning Jakarta Struts 1.2: a concise and practical tutorial
- Mastering OAuth 2.0
- Less Web Development Cookbook
- Learning Alfresco Web Scripts
- 基于JavaScript的WebGIS開發(fā)
- Spring Boot學(xué)習(xí)指南:構(gòu)建云原生Java和Kotlin應(yīng)用程序