Re: [R] Show date on graph

2006-12-06 Thread Syed Abid Hussaini
Thanks Jim and Uwe!! Both methods work for me. Methods: 1. plot as.character(x) 2. mtext(format(date,%Y-%m-%d),...) __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] Show date on graph

2006-12-05 Thread Syed Abid Hussaini
I have a character 2006-11-06 which was originally scanned from a csv file. This character is named date. I now use mtext (date) on a plot and i see strange cluttered characters instead of 2006-11-06. I tried many ways but i dont know whats going on. Then for testing i made an artificial

[R] Skip NA and alter length

2006-11-29 Thread Syed Abid Hussaini
Hi, This is my first post. Problem: I have a matrix 5 by 5 and it has 3 NAs in them. Now, when i use length () for a particular column which has NA it returns 5. I know this is true, but how do i change my matrix such that the length becomes 5 minus the number of NAs i have. I know NA has a