Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201919

Remove quotes from special characters in R

$
0
0

When I print pattern program in r ,

 char<-c("#","@")
m<- matrix(paste(char[1]),nrow  =4, ncol = 4)
print(m)

My output is

 [,1] [,2] [,3] [,4]
[1,] "#""#""#""#" 
[2,] "#""#""#""#" 
[3,] "#""#""#""#" 
[4,] "#""#""#""#"

But my desired output is # without quotations. I tried char method, I tried vector and I tried noquote function. But none worked for me. If anyone knows the solution, help me to solve.


Viewing all articles
Browse latest Browse all 201919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>