Skip to content

Example R Package wrapping the 'nanoarrow' Example of a Linesplitter

Notifications You must be signed in to change notification settings

eddelbuettel/linesplitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linesplitter: R Example Package for nanoarrow Example

A simple wrapper for the example from the nanoarrow documentation

Example

> library(linesplitter)
> example(linesplit)

lnsplt> txt <- "the\nquick\nbrown\nfox"

lnsplt> linesplit(txt)
<nanoarrow_array string[4]>
 $ length    : int 4
 $ null_count: int 0
 $ offset    : int 0
 $ buffers   :List of 3
  ..$ :<nanoarrow_buffer validity<bool>[0][0 b]> ``
  ..$ :<nanoarrow_buffer data_offset<int32>[5][20 b]> `0 3 8 13 16`
  ..$ :<nanoarrow_buffer data<string>[16 b]> `thequickbrownfox`
 $ dictionary: NULL
 $ children  : list()

lnsplt> linesplit(txt, TRUE)
Array
<string>
[
  "the",
  "quick",
  "brown",
  "fox"
]
>

Author

For the sample package, Dirk Eddelbuettel.

The underlying nanoarrow example is by Dewey Dunnington.

About

Example R Package wrapping the 'nanoarrow' Example of a Linesplitter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages