| Literature DB >> 27004225 |
Abstract
It is common that data format extracted from clinical database does not meet the purpose of statistical analysis. In clinical research, variables are frequently measured repeatedly over the follow-up period. Such data can be displayed either in wide or long format. Transformation between these 2 forms can be challenging by hand. Fortunately, there are sophisticated packages in R environment. Data frame should firstly be melted and then casted to format that you want. Aggregation over unique combination of id variables is also allowable. Additionally, the article also introduces 2 functions colsplit() and funstofun() that can be useful in some circumstances.Keywords: Aggregating; R; reshape package
Year: 2016 PMID: 27004225 PMCID: PMC4779770 DOI: 10.3978/j.issn.2305-5839.2016.01.33
Source DB: PubMed Journal: Ann Transl Med ISSN: 2305-5839