Re: [R] Please help(urgent) - How to simulate transactional data for reliability/survival analysis

2017-07-04 Thread Sunny Singha
ow to use the other columns in you data set > (e.g., the event(0/1)). > > Mark > R. Mark Sharp, Ph.D. > msh...@txbiomed.org > > > > > >> On Jul 4, 2017, at 7:02 AM, Sunny Singha >> wrote: >> >> Thanks Boris and Bret, >> I was successfu

Re: [R] Please help(urgent) - How to simulate transactional data for reliability/survival analysis

2017-07-04 Thread Sunny Singha
Thanks Boris and Bret, I was successful in simulating granular/transactional data. Now I need some guidance to transform the same data in format acceptable for survival analysis i.e below format: pump_id | event_episode_no. | event(0/1) | start | stop | time_to_dropout The challenge I'm experienc

[R] Fwd: Please help(immediate) - How to simulate transactional data for reliability/survival analysis

2017-06-27 Thread Sunny Singha
I apologise as I had mistakenly posted this message via non- member mail. So I'm reposting it with member id. I need help in this case. > Hi friends, > I haven't done such a simulation before and any help would be greatly > appreciated. I need your guidance. > > I need to simulate end to end

[R] Help to simulate data to model pump failure use case

2017-06-15 Thread Sunny Singha
Hi, I need help to simulate data to model pump's failure. Below is thought process to simulate the data: - For each Pump readings are captured via sensors each minute for period of 3 months. There are 10 pumps in total. - The failure rate or occurrences of event in 3 months for each Pump is defined

[R] Generate correlated expontial distribution -- lamda please guide

2017-06-15 Thread Sunny Singha
Hi, I need to generate correlated (positive as well as negative) bivariate exponential distribution with rate of 1/5 or any rate I need some guidance here. Please help. Regards, Sunny __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] Please assist -- Unable to remove '-' character from char vector--

2016-04-25 Thread Sunny Singha
ases to be specified in the regex ? Regards, Sunny Singha. On Mon, Apr 25, 2016 at 12:39 PM, Jim Lemon wrote: > Hi Sunny, > Try this: > > # notice that I have replaced the fancy hyphens with real hyphens > end<-c("2001-","1992-","2013-","2013-&quo

[R] Please assist -- Unable to remove '-' character from char vector--

2016-04-24 Thread Sunny Singha
single values but not from ranges. Please guide. > gsub('[-|,]', '', end) [1] "2001" "1992" "2013" "2013" "2013" "2013" "2003" [8]

Re: [R] Please guide -- UTF-8 locale setting fails on Windows on writing

2016-03-28 Thread Sunny Singha
at 9:58 PM, Milan Bouchet-Valat wrote: > Le lundi 28 mars 2016 à 20:12 +0530, Sunny Singha a écrit : >> Milan, >> Ok, Let me take a case of facebook. I used Rfacebook package >> to get posts (getPost()) which returns list() of data frames(post, >> comments, Likes) >>

Re: [R] Please guide -- UTF-8 locale setting fails on Windows on writing

2016-03-28 Thread Sunny Singha
ding social media data extracted, which ultimately is somewhere using httr package and returning data frames. I'm not sure how should I get it handled in Windows as I don't observe this behavior in Mac where system locase is set to 'en_US.UTF-8' Regards, Sunny On Mon, Mar

[R] Please guide -- UTF-8 locale setting fails on Windows on writing

2016-03-28 Thread Sunny Singha
Hi, I think I'm experiencing an issue regarding system Locale. I have exported '.csv' formatted data frames gathered from various social media platforms like facebook/twitter/G+, etc. I observe many variable/columns consists of strings formatted similar to below: " " As expected and I confirmed,

Re: [R] Please guide -- Error during export in csv format

2016-03-21 Thread Sunny Singha
you would have observed in error message it wasn't interpreted as above but some other nonsensical characters (posts_Hi nhng ngui dng > hành cùng line). Is there a workaround to handle such strings ? Regards, Sunny On Mon, Mar 21, 2016 at 6:29 PM, Sunny Singha wrote: > Thanks Ben,

[R] Please guide -- Error during export in csv format

2016-03-21 Thread Sunny Singha
Please guide, I'm exporting data in '.csv' format in the Windows user directory, I have full access to. The write operation happens within a for loop. Each iteration exports data in csv format in the user directory. The issue is that the data gets exported for all the 9 iterations but fails for 1

Re: [R] Please help -- Cbind data frames within LIST() in R

2016-03-14 Thread Sunny Singha
overflow.com/questions/6988184/combining-two-data-frames-of-different-lengths > > http://stackoverflow.com/questions/7196450/create-a-data-frame-of-unequal-lengths > > but maybe you want to do actually merging > > see > > ?merge > > Cheers > Petr > > > -Origina

[R] Please help -- Cbind data frames within LIST() in R

2016-03-14 Thread Sunny Singha
Hi, Please help and guide. I want to cbind dataframes within the list object: List object 'post_data' contains below sampled data frames: post_data $posts from_id user_name post_msg $comm comm_id from_id message $Likes username like_id *Note: The columns in each data frame

[R] Help -- feed data frames, returned from function into list --

2016-03-09 Thread Sunny Singha
#x27;facebook) for(i in 1:length(groups)){ g <- list() g[[i]] <- searchGroups_mod(*groups[i]*, token=fb_oauth, 10) } The result list stores data frame only for the last string in the 'groups' vector. Why the List is getting reassigned for each iteration ? Please guide. Regards,