Tuesday, 15 February 2011

r - Insert a comma to separate in paste function -


I want to display a vector like this: (using the paste function)

   

However, when I use the paste function

< P> Paste ("label", 1: 7)

cames like this:

  [1] "label 1" "label 2"  

Without a "comma" label between "label 3" "label 4" "label 5" label 6 "" label 7 "# characters or another, try another method < / P>

Paste ("label", 1: 7, " , ")" Label 7, "#" "comma" came in the quotation marks, "

What's in the paste function?

  c ("label 1", "label 1", "(label) ", Label 1, 7))  

" label 2 "," label 3 "," label 4 "," label 5 "," label 6 "," label 7 ")


No comments:

Post a Comment