alex_bn_lee

导航

随笔分类 -  Programming Related

上一页 1 2 3 4 5 6 ··· 16 下一页

Different programming languages.
[900] Print an empty line of CMD batch scripts
摘要:Use the echo. command to print an empty line. @echo off echo This is a line of text echo. echo This is a new line of text This will produce the output 阅读全文

posted @ 2023-10-10 08:55 McDelfino 阅读(20) 评论(0) 推荐(0)

[893] Add comments at a batch file (CMD)
摘要:ref: How do I do comments at a Windows command prompt? REM is the standard way: REM this is a comment You could also use the double-colon convention c 阅读全文

posted @ 2023-10-09 12:44 McDelfino 阅读(25) 评论(0) 推荐(0)

【872】ggplot2点状图绘制相关 R create maps and animated maps
该文被密码保护。

posted @ 2023-08-22 20:17 McDelfino 阅读(0) 评论(0) 推荐(0)

【868】Postgresql & PostGIS 相关
摘要:ref: Get started with PostGIS and QGIS in 4 minutes 阅读全文

posted @ 2023-08-01 12:13 McDelfino 阅读(13) 评论(0) 推荐(0)

【865】PostgreSQL相关
摘要:ref: PostgreSQL 教程 ref: pgAdmin4简单备份与恢复(≧∇≦*)数据库导入导出PostgreSql (backup and restore) ref: How to Fix “Permission Denied” Error While Importing a CSV Fi 阅读全文

posted @ 2023-07-21 20:30 McDelfino 阅读(16) 评论(0) 推荐(0)

【862】as.Date in R programming
摘要:ref: R语言——日期时间处理 ref: as.Date: Date Conversion Functions to and from Character ref: Date Formats in R as.Date()it can change a normal string into a da 阅读全文

posted @ 2023-07-20 12:38 McDelfino 阅读(20) 评论(0) 推荐(0)

【861】Thematic mapping based on R programming
摘要:Ref: ggplot2 title : main, axis and legend titles Ref: ggplot2 标题居中 Ref: ggplot的3种去掉图例的方法 (theme(legend.position="none")) Ref: R绘图:一文了解ggplot2颜色的设置 Re 阅读全文

posted @ 2023-07-18 15:17 McDelfino 阅读(14) 评论(0) 推荐(0)

【860】R programming related knowledge
摘要:Ref: R 字符串 Ref: R语言遍历文件和批量输出文件 setwd(dir)getwd()getwd returns an absolute filepath representing the current working directory of the R process; setwd( 阅读全文

posted @ 2023-07-18 15:17 McDelfino 阅读(29) 评论(0) 推荐(0)

【859】JS开发相关
摘要:参考:JavaScript 教程 参考:Chrome 浏览器中执行 JavaScript HTML 中的 Javascript 脚本代码必须位于 <script> 与 </script> 标签之间。 Javascript 脚本代码可被放置在 HTML 页面的 <body> 和 <head> 部分中。 阅读全文

posted @ 2023-07-14 12:12 McDelfino 阅读(29) 评论(0) 推荐(0)

【858】tm_polygons专题地图多图层R语言
摘要:ref: tm_polygons: Draw polygons Arguments alpha transparency number between 0 (totally transparent) and 1 (not transparent). By default, the alpha val 阅读全文

posted @ 2023-07-12 08:16 McDelfino 阅读(42) 评论(0) 推荐(0)

【857】R语言实现字符串操作、补零操作
摘要:ref: Add Leading Zeros to the Elements of a Vector in R 参考代码: # 数组 > seq(12) [1] 1 2 3 4 5 6 7 8 9 10 11 12 # 格式化打印,自动补零 > sprintf("%02d", seq(12)) [1 阅读全文

posted @ 2023-07-11 19:51 McDelfino 阅读(144) 评论(0) 推荐(0)

【856】R语言palette查找
摘要:ref: palette_explorer: Explore color palettes palette_explorer() starts an interactive tool shows all Color Brewer and viridis palettes, where the num 阅读全文

posted @ 2023-07-11 08:47 McDelfino 阅读(68) 评论(0) 推荐(0)

【849】R String Manipulation Functions
摘要:ref: [R字符串] 字符串长度、分割、拼接、截取、替代、匹配和大小写替换 ref: R String Manipulation Functions 1. nchar() With the help of this function, we can count the characters. Th 阅读全文

posted @ 2023-06-30 09:20 McDelfino 阅读(16) 评论(0) 推荐(0)

【848】Data filtering in R programming
摘要:ref: R语言data.frame常用操作 ref: Keep rows that match a condition The filter() function is used to subset a data frame, retaining all rows that satisfy you 阅读全文

posted @ 2023-06-30 09:08 McDelfino 阅读(31) 评论(0) 推荐(0)

【845】R语言case_when函数
摘要:参考:case_when: A general vectorised if Others 用 TRUE 表示,举例如下: x <- 1:50 case_when( x %% 35 == 0 ~ "fizz buzz", x %% 5 == 0 ~ "fizz", x %% 7 == 0 ~ "buz 阅读全文

posted @ 2023-06-29 14:49 McDelfino 阅读(218) 评论(0) 推荐(0)

【823】Python subprocess.call() 运行 R 代码
摘要:参考:How to Use R and Python Together? Try These 2 Packages 实现功能:在 Python 代码中运行 R 文件,得到结果再在 Python 里面操作! import subprocess res = subprocess.call("Rscrip 阅读全文

posted @ 2023-03-15 18:28 McDelfino 阅读(68) 评论(0) 推荐(0)

【820】Python R 读取 csv 文件加入数据类型控制
摘要:参考:PySe-023-pandas.read_csv 读取 csv 文件,指定列数据类型 解决字符串数据列变为数字的问题 参考:Read a delimited file (including CSV and TSV) into a tibble Python:根据具体的列名指定数据格式 impo 阅读全文

posted @ 2023-03-13 17:53 McDelfino 阅读(86) 评论(0) 推荐(0)

【819】emerging hotspot analysis数据集
摘要:参考:Emerging Hot Spot Analysis(前半部分是static hotspot analysis) 参考:dplyr 说明文档 运行例子里面的数据集可以,但是自己的数据集死活不行,开始以为是数据的问题,也就是计算中出错,各种修改数据都是无法运行,后面我就想,我制作一个跟例子数据集 阅读全文

posted @ 2023-03-13 15:22 McDelfino 阅读(54) 评论(0) 推荐(0)

【816】rpy2 在Python内部调用R语言
摘要:参考:rpy2 学习笔记 参考:在python中使用R|rpy2 阅读全文

posted @ 2023-03-13 13:43 McDelfino 阅读(34) 评论(0) 推荐(0)

【814】Static hotspot analysis and emerging hotspot analysis based on the R library of sfdep
摘要:Ref: Emerging Hot Spot Analysis Ref: Ref: Static hotspot analysis library (tidyverse) library (sf) library (openxlsx) library (ggplot2) library (tmap) 阅读全文

posted @ 2023-03-10 13:29 McDelfino 阅读(50) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 16 下一页