FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpp11/cpp11test/src/data_frame.cpp at main · josh28x/cpp11 · GitHub
josh28x
cpp11
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpp11
/
cpp11test
/
src
/
data_frame.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (13 loc) · 363 Bytes
Breadcrumbs
cpp11
/
cpp11test
/
src
/
data_frame.cpp
Copy path
File metadata and controls
16 lines (13 loc) · 363 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
include
"
cpp11/integers.hpp
"
#
include
"
cpp11/list.hpp
"
#
include
"
cpp11/strings.hpp
"
[[cpp11::register]]
SEXP
data_frame_
() {
using
namespace
cpp11
::literals
;
cpp11::writable::list
out
({
"
nums
"
_nm = {
1
,
2
,
3
},
"
letters
"
_nm = {
"
x
"
,
"
y
"
,
"
z
"
},
});
out.
attr
(
"
class
"
) =
"
data.frame
"
;
out.
attr
(
"
row.names
"
) = {
NA_INTEGER
, -
3
};
return
out;
}
Back
|
FazBrowse Home
|
New Git URL