Re: [R] Plots without X11 in CentOS

2015-04-24 Thread Sudip Chatterjee
ox to be scaled and the font to change, but it can happen that the > text now overruns the box extents.) > > Peter D. > > On 24 Apr 2015, at 16:12 , Sudip Chatterjee > wrote: > > > Hi All, > > > > I am wondering how to save plots in R at CentOS when X11

[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 more,

[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 done

Re: [R] Word Frequency for each row

2013-03-09 Thread Sudip Chatterjee
rradas > > Em 08-03-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 >>

Re: [R] Word Frequency for each row

2013-03-09 Thread Sudip Chatterjee
t;,", header = TRUE, stringsAsFactors = FALSE) > > dat > > word <- "oranges" > where <- sapply(dat$Data, function(.x) gregexpr(tolower(word), > tolower(.x))) > result <- sapply(where, length) # count them > names(result) <- dat$ID > result

[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 v