Commit fd2b49f1 authored by Virgile Baudrot's avatar Virgile Baudrot
Browse files

update vignette with fd_melt

parent e299ab62
Pipeline #778 passed with stage
in 6 minutes and 12 seconds
......@@ -12,6 +12,7 @@ export(fd_filter_)
export(fd_join)
export(fd_match)
export(fd_melt)
export(fd_melt_12)
export(fd_melt_DOUBLE)
export(fd_melt_SINGLE)
export(fd_melt_STICK)
......
......@@ -20,6 +20,7 @@ fd_add <- function(x, key, FUN, ...){
return(x)
}
#' @name fd_add
#'
#' @export
......
......@@ -4,6 +4,7 @@
\alias{fd_melt}
\alias{fd_melt_DOUBLE}
\alias{fd_melt_SINGLE}
\alias{fd_melt_12}
\alias{fd_melt_STICK}
\title{Convert list.column data.frame into scalar.column data.frame}
\usage{
......@@ -11,7 +12,9 @@ fd_melt_DOUBLE(x, key1, key2, id = NULL)
fd_melt_SINGLE(x, key1, id = NULL)
fd_melt(x, key1, key2 = NULL, id = NULL, keep = NULL)
fd_melt_12(x, key1, key2 = NULL, id = NULL, keep = NULL)
fd_melt(x, key, id = NULL, keep = NULL)
fd_melt_STICK(x, key1, keep)
}
......@@ -25,6 +28,8 @@ fd_melt_STICK(x, key1, keep)
\item{id}{name of the replicate for the id. As to be of the same length as the number of row of the x object}
\item{keep}{vector of column name to keep}
\item{key}{a list or vector of column name to keep}
}
\description{
Convert data.frame with 2 column.list into data.frame with only column.scalar
......
......@@ -68,7 +68,7 @@ DFD = fd_add(DFD, "B2", function(i) 1:length(DFD$B[[i]]))
DFD
# apply 'fd_melt'
fd_melt(DFD, "B", "B2", keep = list("A", "C"))
fd_melt(DFD, key = list("B", "B2"), keep = list("A", "C"))
```
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment