[R] Plots without X11 in CentOS

2015-04-24 Thread Sudip Chatterjee
Hi All, I am wondering how to save plots in R at CentOS when X11 is not available, any suggestion would be appreciated. Warm Regards Sudip [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

Re: [R] Plots without X11 in CentOS

2015-04-24 Thread Sudip Chatterjee
, but it can happen that the text now overruns the box extents.) Peter D. On 24 Apr 2015, at 16:12 , Sudip Chatterjee sudipanal...@gmail.com wrote: Hi All, I am wondering how to save plots in R at CentOS when X11 is not available, any suggestion would be appreciated. Warm Regards

[R] Stringr Package

2013-04-10 Thread Sudip Chatterjee
Hi Group, I have a question on Stringr package I have a table like this X Y absu - di acpi - tu adtu - tu I want output like this XY ab su ab di ac pi ac tu ad tu ad tu I am wondering if this operation can be

Re: [R] Word Frequency for each row

2013-03-09 Thread Sudip Chatterjee
word - oranges where - sapply(dat$Data, function(.x) gregexpr(tolower(word), tolower(.x))) result - sapply(where, length) # count them names(result) - dat$ID result Hope this helps, Rui Barradas Em 09-03-2013 16:01, Sudip Chatterjee escreveu: Hi All, This is very helpful

Re: [R] Word Frequency for each row

2013-03-09 Thread Sudip Chatterjee
-2013 21:32, arun escreveu: Hi, You can also try: res2-rowSums(x==word) res1-sapply(where,length) res1[]- sapply(res1,as.numeric) identical(res1,res2) #[1] TRUE A.K. - Original Message - From: Rui Barradas ruipbarra...@sapo.pt To: Sudip Chatterjee sudipanal...@gmail.com

[R] Word Frequency for each row

2013-03-08 Thread Sudip Chatterjee
Hi All, I am wondering if there is any examples where you can count your interested word in each row. For an example if you have data with *'ID*' and '*write-up*' for 100 rows, how would I calculate the word frequency for each row ? Thank you for all your time. [[alternative HTML