Top "Flatten" questions

Flattening refers to either reducing a multi-dimensional array to a single dimension or to reducing a class and class methods to handle based function calls.

Remove names from named vector and get only the values

I have a vector like below tmp <- c(a=1, b=2, c=3) a b c 1 2 3 I want to flatten …

r vector flatten
flatten a data frame

I have this nested data frame test <- structure(list(id = c(13, 27), seq = structure(list( `1` = c("1997", "1997", "1997", "2007"), `2` = c("2007", "2007", "2007", "2007", "2007", "2007", "2007")), .Names = c("1", "2"))), .…

r nested dataframe flatten
Julia: Flattening array of array/tuples

In Julia vec reshapes multidimensional arrays into one-dimension arrays. However it doesn't work for arrays of arrays or arrays of …

arrays tuples julia flatten
Flattening an Iterable<Iterable<T>> in Guava

Is there a flatten method in Guava - or an easy way to convert an Iterable<Iterable<T&…

java collections guava flatten
Flattening XSD schema documents (HR-XML 3.0)

I have several "main" XSD documents, which import "supporting" XSD documents. These schema documents happen to be from the HR-XML 3.0 …

xsd schema flatten
Recursively Flatten values of nested maps in Java 8

Given a Map<String, Object>, where the values are either a String or another Map<String, Object&…

java java-8 java-stream flatten
Flatten an Array in C#

In C# what is the shortest code to flatten an array? For example, I want [[1,2],[2,3],[4,5]] into the array [1,2,3,4,5] I am …

c# arrays flatten
How to merge subarray values and remove duplicates?

$arr[] = array('A','B'); $arr[] = array('C','B'); ... I need to get the merged result of all sub array of $…

php arrays unique flatten array-merge
How to flatten a list of lists of lists in haskell

All I want to do is what I ask. The type signature of the function should be this: flatten::[[[Int]]] …

haskell flatten
How to flatten a nested tuple?

I have a nested tuple structure like (String,(String,Double)) and I want to transform it to (String,String,Double). …

scala tuples flatten