Dear Melissa,
Try this:
> x <- c(2, 11, 12, 20, 21, 98, 99)
> paste(x, collapse=",")
[1] "2,11,12,20,21,98,99"
See ?paste for more information.
HTH,
Jorge
On Wed, May 13, 2009 at 5:53 AM, Melissa2k9 wrote:
>
> Hi,
>
> Im trying to put some numbers into a dataframe , I have a list of numbers
Hi,
Im trying to put some numbers into a dataframe , I have a list of numbers
(change points in a time series) like such
[1] 2 11 12 20 21 98 99
but I want R to recognise this as just a character string so it will put it
in one row and column, ideally I want them seperated by commas so I would
Hi Melissa
unless I miss a point, you should get what you want with (for example)
y<-paste(b,collapse=",")
Hope this helps. Olivier
Melissa2k9 wrote:
>
> Hi,
>
> Im trying to put some numbers into a dataframe , I have a list of numbers
> (change points in a time series) like such
>
> [1] 2
3 matches
Mail list logo