|
21 | 21 |
|
22 | 22 | ## Introduction
|
23 | 23 |
|
24 |
| -As discussed in previous chapters, Arrow automatically infers the most |
25 |
| -appropriate data type when reading in data or converting R objects to Arrow |
26 |
| -objects. However, you might want to manually tell Arrow which data types to |
27 |
| -use, for example, to ensure interoperability with databases and data warehouse |
| 24 | +As discussed in previous chapters, Arrow automatically infers the most |
| 25 | +appropriate data type when reading in data or converting R objects to Arrow |
| 26 | +objects. However, you might want to manually tell Arrow which data types to |
| 27 | +use, for example, to ensure interoperability with databases and data warehouse |
28 | 28 | systems. This chapter includes recipes for:
|
29 | 29 |
|
30 | 30 | * changing the data types of existing Arrow objects
|
31 | 31 | * defining data types during the process of creating Arrow objects
|
32 | 32 |
|
33 |
| -A table showing the default mappings between R and Arrow data types can be found |
| 33 | +A table showing the default mappings between R and Arrow data types can be found |
34 | 34 | in [R data type to Arrow data type mappings](https://arrow.apache.org/docs/r/articles/arrow.html#r-to-arrow).
|
35 | 35 |
|
36 |
| -A table containing Arrow data types, and their R equivalents can be found in |
| 36 | +A table containing Arrow data types, and their R equivalents can be found in |
37 | 37 | [Arrow data type to R data type mapping](https://arrow.apache.org/docs/r/articles/arrow.html#arrow-to-r).
|
38 | 38 |
|
39 | 39 | ## Update data type of an existing Arrow Array
|
@@ -63,7 +63,7 @@ test_that("cast_array works as expected", {
|
63 | 63 |
|
64 | 64 | ### Discussion
|
65 | 65 |
|
66 |
| -There are some data types which are not compatible with each other. Errors will |
| 66 | +There are some data types which are not compatible with each other. Errors will |
67 | 67 | occur if you try to cast between incompatible data types.
|
68 | 68 |
|
69 | 69 | ```{r, incompat, eval = FALSE}
|
@@ -122,7 +122,7 @@ test_that("cast_table works as expected", {
|
122 | 122 |
|
123 | 123 | ## Specify data types when creating an Arrow table from an R object
|
124 | 124 |
|
125 |
| -You want to manually specify Arrow data types when converting an object from a |
| 125 | +You want to manually specify Arrow data types when converting an object from a |
126 | 126 | data frame to an Arrow object.
|
127 | 127 |
|
128 | 128 | ### Solution
|
@@ -187,4 +187,3 @@ test_that("use_schema_dataset works as expected", {
|
187 | 187 | ```{r, include=FALSE}
|
188 | 188 | unlink("oscars_data", recursive = TRUE)
|
189 | 189 | ```
|
190 |
| - |
0 commit comments