Created
October 17, 2020 15:52
-
-
Save ifknot/54d3cdd54213c9b00e6c9997ef51be54 to your computer and use it in GitHub Desktop.
r-ish head
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include "data_structures.h" | |
namespace R { | |
/** | |
* Returns the first n items of a variant vector | |
*/ | |
variant_vector head(const variant_vector& x, size_t n = 6); | |
/** | |
* Returns the first n rows of a data frame | |
*/ | |
data_frame head(const data_frame& x, size_t n = 6); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment