Movatterモバイル変換


[0]ホーム

URL:


Title:Book Companion for Processing and Analyzing Financial Data withR
Version:1.0
Description:Provides access to material from the book "Processing and Analyzing Financial Data with R" by Marcelo Perlin (2017) available athttps://sites.google.com/view/pafdr/home.
Date:2017-04-29
Depends:R (≥ 3.3.3), exams, stringr
Imports:curl, utils,stats
License:GPL-2
LazyData:true
RoxygenNote:6.0.1
Suggests:knitr, rmarkdown, testthat, ggplot2
VignetteBuilder:knitr
NeedsCompilation:no
Packaged:2017-04-29 23:08:53 UTC; marcelo
Author:Marcelo Perlin [aut, cre]
Maintainer:Marcelo Perlin <marceloperlin@gmail.com>
Repository:CRAN
Date/Publication:2017-04-30 20:22:31 UTC

Generates random vector for numerical answer (internal)

Description

Generates random vector for numerical answer (internal)

Usage

gen.rnd.vec()

Value

A vector with random weights, including value 1 for first element

Examples

library(pafdR)my.sol <- 1 #assume solution to exercise is 1 my.answers <- gen.rnd.vec()*my.sol my.answers

Builds exercises using package exams

Description

This function build a pdf file and a solution sheet from R exercises available at github.

Usage

pafdR_build.exercise(lan = "en", exercise.folder = "pafdR-exercises",  pdf.folder = "pdf out")

Arguments

lan

Language of exercises ('en' or 'pt-br')

exercise.folder

Folder with exercise files (if not found, will download from github)

pdf.folder

Folder to output pdf file and solutions

Value

TRUE, if sucessful

Examples

## Not run: pafdR_build.exercise()## End(Not run)

Function to check if system has pdflatex.exe available

Description

Function to check if system has pdflatex.exe available

Usage

pafdR_check.pdflatex()

Value

TRUE if the pdflatex is available, FALSE if not

Examples

pafdR_check.pdflatex()

Downloads code and data from the book

Description

Downloads a zip file from the github repository and unzip it to a folder withinthe working directory

Usage

pafdR_download.code.and.data(lan = "en")

Arguments

lan

Language of book/files ('en' or 'pt-br')

Value

TRUE, if successful

Examples

## Not run: pafdR_download.code.and.data()## End(Not run)

Downloads Book exercises from github

Description

This function downloads exercise files from github and unzips it to a chosen directory

Usage

pafdR_download.exercises(exercise.folder = "pafdR-exercises")

Arguments

exercise.folder

folder to copy exercise files

Value

TRUE, if sucessful

Examples

## Not run: exercise.folder <- pafdR_download.exercises()## End(Not run)

[8]ページ先頭

©2009-2025 Movatter.jp