-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b3aaa8d
commit 1d78764
Showing
32 changed files
with
3,966 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
.Rproj.user | ||
.Rhistory | ||
.RData | ||
.Ruserdata | ||
docs | ||
doc | ||
Meta | ||
.Ruserdata |
This file contains 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
Binary file not shown.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## ----------------------------------------------------------------------------- | ||
library(powers) | ||
|
||
## ----------------------------------------------------------------------------- | ||
square(1:10) | ||
cube(1:10) | ||
reciprocal(1:10) | ||
|
||
## ----------------------------------------------------------------------------- | ||
cube(list(1, 4, 5)) | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: "Using the `powers` package" | ||
author: "Vincenzo Coia" | ||
date: "`r Sys.Date()`" | ||
output: rmarkdown::html_vignette | ||
vignette: > | ||
%\VignetteIndexEntry{Using the `powers` package} | ||
%\VignetteEngine{knitr::rmarkdown} | ||
%\VignetteEncoding{UTF-8} | ||
--- | ||
|
||
__Note__: This package package is only meant for expository purposes -- although you might just find it handy! | ||
|
||
Want to compute powers without having to use `^` or `**`? Give `sqrt` some friends by loading the `powers` package! | ||
|
||
```{r} | ||
library(powers) | ||
``` | ||
|
||
Want squares, cubes, or reciprocals? Easy. | ||
|
||
```{r} | ||
square(1:10) | ||
cube(1:10) | ||
reciprocal(1:10) | ||
``` | ||
|
||
List-friendly inputs, as well: | ||
|
||
```{r} | ||
cube(list(1, 4, 5)) | ||
``` | ||
|
Oops, something went wrong.