comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » cutting/grouping
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
cutting/grouping [message #85773] Thu, 05 September 2013 08:41 Go to previous message
Seb is currently offline  Seb
Messages: 15
Registered: January 2006
Junior Member
Hi,

I've been unsuccessfully searching the docs for a function that would
"break" an array. For any R users in the list: something like the 'cut'
function, which does the following:

R> (a <- 1:10)
[1] 1 2 3 4 5 6 7 8 9 10
R> (b <- seq(0, 10, 2))
[1] 0 2 4 6 8 10
R> cut(a, breaks=b)
[1] (0,2] (0,2] (2,4] (2,4] (4,6] (4,6] (6,8] (6,8] (8,10]
(8,10]
Levels: (0,2] (2,4] (4,6] (6,8] (8,10]

Is there a particular module that needs to be loaded?

Thanks,

--
Seb
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: overplots with two different y axes
Next Topic: graphics window

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:21:37 PDT 2025

Total time taken to generate the page: 0.00447 seconds