Skip to content

Commit 8916897

Browse files
author
lydia071
committed
Update README.md
1 parent 3bbfbd5 commit 8916897

File tree

1 file changed

+30
-4
lines changed

1 file changed

+30
-4
lines changed

README.md

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,37 @@ if (conn@connected) {
7676
dbClose(conn)
7777
```
7878

79+
## 3. Supported Data Types
80+
81+
R API supports the following data types of DolphinDB:
82+
83+
| DolphinDB Type | DolphinDB Example | R Type | R Example | Description |
84+
|---|---|---|---|---|
85+
| BOOL | false | Logical | FALSE | |
86+
| CHAR | 'A' | Integer | 65 | |
87+
| SHORT | 32 | Integer | 32 | |
88+
| INT | 1 | Integer | 1 | |
89+
| LONG | 100000 | Numeric | 10000 | The maximum integer in R is 2147483647 |
90+
| DATE | 2013.06.13 | Date | 2013-06-13 | |
91+
| MONTH | 2013.08M | Date | 2013-08-01 | The first day of the specified month |
92+
| TIME | 13:30:10.008 | POSIXct | 1970-01-01 13:30:10 | The specified timestamp on 1970.01.01 (accurate to seconds) |
93+
| MINUTE | 13:30m | POSIXct | 1970-01-01 13:30:00 | The specified timestamp on 1970.01.01 |
94+
| SECOND | 13:30:10 | POSIXct | 1970-01-01 13:30:10 | The specified timestamp on 1970.01.01 |
95+
| DATETIME | 2012.06.13T13:30:10 | POSIXct | 2012-06-13 13:30:10 | |
96+
| TIMESTAMP | 2012.06.13T13:30:10.008 | POSIXct | 2012-06-13 13:30:10 | |
97+
| NANOTIME | 13:30:10.008007006 | POSIXct | 1970-01-01 13:30:10 | The specified timestamp on 1970.01.01 (accurate to seconds) |
98+
| NANOTIMESTAMP | 2012.06.13T13:30:10.008007006 | POSIXct | 2012-06-13 13:30:10 | |
99+
| FLOAT | 2.1f | Numeric | 2.1 | |
100+
| DOUBLE | 2.1 | Numeric | 2.1 | |
101+
| STRING | “123” | character | “123” | |
102+
| SYMBOL | | Not supported | | |
103+
| BLOB | | Not supported | | |
104+
| DATEHOUR | | Not supported | | |
79105

80106
---
81-
### 3. Documentation
107+
### 4. Documentation
82108

83-
#### 3.1 In _R_ CMD
109+
#### 4.1 In _R_ CMD
84110

85111
```R
86112
# About the package
@@ -95,9 +121,9 @@ help("dbUpload")
95121
help("dbClose")
96122
```
97123

98-
#### 3.2 Through our website
124+
#### 4.2 Through our website
99125

100-
* www.dolphindb.com/help
126+
* www.dolphindb.com
101127

102128
---
103129

0 commit comments

Comments
 (0)