Skip to content
Back to formatted view

Raw Message

Message-ID: <471326D5-69EB-4276-B863-CD257F44213B@googlemail.com>
Date: 2013-02-26T17:39:37Z
From: Martin Batholdy
Subject: cut a vector in equal parts

Hi,

I would like to cut a vector of values in parts.
Each part should have an equal number of elements.

for example:

x <- (rnorm(500)^2)

now I want 5 vectors each with 100 elements.
The first vector should include the 100 lowest values of x and so on
(so that the fifth vector contains the 100 highest values of x).


thanks for any help!