- Hands-On Geospatial Analysis with R and QGIS
- Shammunul Islam
- 54字
- 2021-06-10 18:44:24
Looping in R
Suppose we want to loop through all the values of the aug_price column inside all_prices4 and square them and return them. We can do so in the following way:
jan = all_prices4$jan_price
for(price in jan){
print(price^2)
}
This prints a square of all the prices in January as follows:

推薦閱讀
- PPT,要你好看
- Hands-On Graph Analytics with Neo4j
- IoT Penetration Testing Cookbook
- 讓每張照片都成為佳作的Photoshop后期技法
- 大型數據庫管理系統技術、應用與實例分析:SQL Server 2005
- C語言寶典
- 高維聚類知識發現關鍵技術研究及應用
- 基于單片機的嵌入式工程開發詳解
- Kubernetes for Developers
- Azure PowerShell Quick Start Guide
- 深度學習與目標檢測
- Silverlight 2完美征程
- 納米集成電路制造工藝(第2版)
- 樂高創意機器人教程(中級 上冊 10~16歲) (青少年iCAN+創新創意實踐指導叢書)
- 網管員世界2009超值精華本