Learn R Programming

puzzle

The goal of puzzle is assembling pharmacometric ready data sets from tabulated files.

Installation

You can install the released version of puzzle from CRAN with:

install.packages("puzzle")

or download the development version from Github:

devtools::install_github("syneoshealth/puzzle")

Example

This is a basic example which shows you how to solve a common problem:

library(puzzle)
nm = list(pk = list(parent=as.data.frame(puzzle::df_pk_start)),
dose=as.data.frame(puzzle::df_dose_start),
cov=as.data.frame(puzzle::df_cov_start))
df = puzzle(directory=file.path(getwd()),
        order=c(0),
        pk=list(data=nm$pk),
        dose=list(data=nm$dose),
        cov=list(data=nm$cov),
        username = "Mario Gonzalez Sales")
#> Automatic coercion to numeric for CMT
#> 1=parent
#> Automatic coercion to numeric for SEX
#> 0=F
#> 1=M
#> Assembling date and time: 2019-10-30 21:46:58
#> Time zone: Europe/Paris
#> Number of individuals: 2
#> Number of observations: 12
#> Dose levels: "100", "200"
#> This data set was assembled by Mario Gonzalez Sales

A portion of the pharmacometrics ready data set obtained with the code showed above is presented below:

Copy Link

Version

Install

install.packages('puzzle')

Monthly Downloads

195

Version

0.0.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Mario Gonzalez Sales

Last Published

November 28th, 2019

Functions in puzzle (0.0.1)

df_dose_evid4

A dose data set to be used with EVID=4.
df_dose_optional_columns

A dose data set to be used with optional columns.
df_response3

A pharmacodynamic data set.
df_parent_evid4

A pharmacokinetic parent data set to be used with EVID=4.
puzzle

puzzle
df_pd_start

An starting pharmacoynamic data set example.
df_dose_datetime

A dose data set including datetimes.
df_extra_times_metabolite_evid4

An extra times metabolite data set to be used with EVID=4.
df_extra_times_parent_evid4

An extra times parent data set to be used with EVID=4.
df_response1

A pharmacodynamic data set.
df_pk_optional_columns

A pharmacokinetic data set to be used with optional columns.
df_pk_start

A pharmacokinetic data set example.
df_pk_parent

A pharmacokinetic data set for an hypothetical parent drug.
df_response2

A pharmacodynamic data set.
df_extra_times_time

An extra times data set example.
df_dose_start

A dose data set example.
df_metabolite_evid4

A pharmacokinetic metabolite data set to be used with EVID=4.
df_extra_times

An extra times data set example.
df_cov_time_dependent_start

A covariate data set to be used with time dependent covariates.
df_dose

A dose data set.
df_cov_start

Starting covariate data set.
df_pk_metabolite

A pharmacokinetic data set of metabolite data.
df_cov

A covariate data set.
df_extra_times_datetime

An extra times data set example with datetime format.
df_pk

A pharmacokinetic data set.
df_pk_datetime

A pharmacokinetic data set example in datetime format.