see ?levels eg:
x <- rnorm(10)
y <- cut(x,c(-10,0,10))
levels(y)<-c("-10-0","0-10")
cheers
Joris
On Thu, Jun 24, 2010 at 4:14 AM, Yi wrote:
> Yeap. It works. Just to make the result more beautiful.
>
> One more question.
>
> The interval is showns as (0,10].
>
> Is there a way to change it into
see ?cut
Cheers
Joris
On Thu, Jun 24, 2010 at 2:57 AM, Yi wrote:
> I would like to prepare the data for barplot. But I only have the data frame
> now.
>
> x1=rnorm(10,mean=2)
> x2=rnorm(20,mean=-1)
> x3=rnorm(15,mean=3)
> data=data.frame(x1,x2,x3)
>
> If there a way to put data within a specific
I am converting exact time data to interval data and generate samples via
Bootstraping. I had a quite long code to get the frequency but your help
makes it simpler. Thank you..
jholtman wrote:
>
>> data<-c(2,6,13,26,19,25,18,11,22,25)
>> table(cut(data, breaks=c(0,10,20,30)))
>
> (0,10] (10,
> data<-c(2,6,13,26,19,25,18,11,22,25)
> table(cut(data, breaks=c(0,10,20,30)))
(0,10] (10,20] (20,30]
2 4 4
On Mon, Sep 29, 2008 at 5:41 PM, sandsky <[EMAIL PROTECTED]> wrote:
>
> Hi there,
>
> The data is
>
> data<-c(2,6,13,26,19,25,18,11,22,25)
>
> I want to count data for
Kia ora
?hist
in particular the breaks argument and set plot=FALSE.
HTH ...
Peter Alspach
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of sandsky
> Sent: Tuesday, 30 September 2008 10:42 a.m.
> To: r-help@r-project.org
> Subject: [R] count dat
5 matches
Mail list logo