Allen Lu
0
Q:

print in r

> x <- 10.4678
> print(x,digits=3)
[1] 10.5
0
cat(c("hello", "world", "\n"))
#hello world
0
> a=c(1,2,NA,4,NA,6,7)
> a
[1]  1  2 NA  4 NA  6  7
> print(a,na.print="-999")
[1]    1    2 -999    4 -999    6    7
0

New to Communities?

Join the community