Description Usage Arguments Examples
Reads data from clipboard, and melts the data.frame based on the id.vars entered.
1 | wideToLong(x, id.vars, writeToClipboard)
|
x |
data.frame or data.table. In wide format. |
id.vars |
Character. Column name from the source data that will be the id of the output. |
writeToClipboard |
Logical. TRUE or FALSE. |
1 2 3 4 | x <- data.table::fread(system.file("extdata", "Newspapers.csv", package = "nladwa"))
x$Date <- as.Date(x$Date)
print(x)
wideToLong(x = x, id.vars = "Date", writeToClipboard = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.