rk.transpose.df
)A simple RKWard plugin to transpose a data frame, converting rows to columns and columns to rows.
This plugin provides a straightforward way to transpose a data frame
within the RKWard graphical user interface. It serves as a simple
front-end for R’s base t()
function, with the added
convenience of converting the resulting matrix back into a data
frame.
This is a fundamental data reshaping task, useful for situations where data is recorded in a format that needs to be “flipped” for analysis or plotting (e.g., samples are in columns but need to be in rows).
data.frame
for easier use.When a data frame with columns of different types (e.g.,
numeric
, character
, factor
) is
transposed, the resulting data frame will have all its columns converted
to the character
type. This is a consequence of the
underlying matrix structure created by R’s t()
function, as
matrices can only hold a single data type.
devtools
(Recommended)You can install this plugin directly from its repository using the
devtools
package in R.
local({
## Preparar
require(devtools)
## Computar
install_github(
repo="AlfCano/rk.transpose.df"
)
## Imprimir el resultado
rk.header ("Resultados de Instalar desde git")
})
.zip
file.Data
menu.This plugin is licensed under the GPL (>= 3).