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 SalesA portion of the pharmacometrics ready data set obtained with the code showed above is presented below: