Hello Steve,
You can print strings in R with the method cat()
\n . new line
\t . tabulator
Try:
name <- c("Steve")
age=22
cat("\tHello my name is", name ,"and I am", age ,"years old.\n")
Have Fun!
Kind Regards,
Soare Marcian-Alin
2007/4/18, steve <[EMAIL PROTECTED]>:
>
> If I print a sting I get an initial [1]:
>
> > xx="a"
> > xx
> [1] "a"
>
>
> How do I get it to print just
>
> "a"
>
> with no [1]?
>
> I tried looking this up, but I don't know what the initial [1] is called.
>
> Steve
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
[[alternative HTML version deleted]]
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.