Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

asSepList

Organize data as separate list-entries


Description

asSepList allows reorganizing list into separate numeric vectors. For example, matrixes or data.frames will be split into separate columns (differnt to partUnlist which maintains the original structure). This function also works with lists of lists. This function may be helpful for reorganizing data for plots.

Usage

asSepList(
  y,
  asNumeric = TRUE,
  minLen = 4,
  fxArg = NULL,
  silent = FALSE,
  callFrom = NULL
)

Arguments

y

list to be separated/split in vectors

asNumeric

(logical) to transform all list-elements in simple numeric vectors (won't work if some entries are character)

minLen

(integer) (currently use of this argument not implemeneted!) min length (or number of rows), as add'l element to eliminate arguments given wo names when asSepList is called in vioplot2

fxArg

(character) optinal names to exclude if any (lazy matching) matches (to exclude other arguments be misinterpreted as data)

silent

(logical) suppress messages

callFrom

(character) allow easier tracking of message(s) produced

Value

list, partially unlisted to vectors

See Also

Examples

bb <- list(fa=gl(2,2),c=31:33,L2=matrix(21:24,nc=2),li=list(li1=11:14,li2=data.frame(41:44)))
asSepList(bb)
lapply(bb,.asDF2)
partUnlist(lapply(bb,.asDF2))

wrMisc

Analyze Experimental High-Throughput (Omics) Data

v1.5.4
GPL-3
Authors
Wolfgang Raffelsberger [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.