Re: [R] How do I start contributing to R ?

2016-01-09 Thread Uwe Ligges
Thanks for your offer to contribute. R is developed via the svn repository. If you want to change patches for bugs from the repository. Please use a curent version of R-devel for fixing the issue and submit the patch as a diff against the R-devel sources and post it in form of an attachment in

Re: [R] How to suppress console output when using choose.dir()?

2016-01-09 Thread Uwe Ligges
On 10.01.2016 02:38, Rob Grant wrote: Hi, I am wondering how to suppress console output when using choose.dir() on Windows 10 with RStudio. Am getting a log output when using this function. Example: ... 22:07:18.873 INFO |9824|ccdi_client_protorpc.cpp:413:ccdi::client::CCDIGetSyncState| The C

[R] How do I start contributing to R ?

2016-01-09 Thread Amur Ghose
Hi, I'm a newcomer to R and have been picking it up for the last month. I really like it and recently I've been trying the bug tracker to see if there's any way I can help. I'm confused what to do after fixing a bug on my local machine. Since the github mirror says read only, are changes done via

[R] How to suppress console output when using choose.dir()?

2016-01-09 Thread Rob Grant
Hi, I am wondering how to suppress console output when using choose.dir() on Windows 10 with RStudio. Am getting a log output when using this function. Example: ... 22:07:18.873 INFO |9824|ccdi_client_protorpc.cpp:413:ccdi::client::CCDIGetSyncState| The CCD process doesn't appear to be running

Re: [R] Combining dataframes with different row numbers and plotting with ggplot2

2016-01-09 Thread Jeff Newmiller
Please study each line of code, and use the str command to study the intermediate data objects... the examples on this list are almost never plug-and-play for your real work. Note that while you provided some of the code necessary to make your example reproducible, I had to fill in blanks with

Re: [R] Combining dataframes with different row numbers and plotting with ggplot2

2016-01-09 Thread maryam moazam
Dear Michael, Thanks for your feedback. Actually, I would like to show (and compare) size distribution of df1 and df2 in the single plot using ggplot2, something like the attached picture. The command dosesn't lead me to this purpose. However, I'm really new here, could you please help me more on

Re: [R] Which GLM to use with mixed predictor variables i.e. bothdiscrete and continous

2016-01-09 Thread Michael Dewey
Please reply to the list as well as others may be able to help you. Comments below. On 09/01/2016 16:08, Charles Thuo wrote: I read that glm poisson should have continous predictor variables but my model has both continous and discrete predictor variables. I think you need to read more widely

Re: [R] Bezier to line segments

2016-01-09 Thread Adrian Dușa
Thanks Greg, I'll take a look on that package as well. I'm still unsure whether to calculate these splines at each function run, or to store the coordinates of each spline (curve) and read them when needed. There are performance issues to take into account, but from my current tests it seems that c

Re: [R] Extracting point data using longitude and latitude from netcdf file using R

2016-01-09 Thread Ben Tupper
Hi, Well, you have to extrapolate from that post that wherenearest is a function you must create on your own. Maybe something like this? #' Find the index into a dataset that is 'closest' to a specified point. #' #' Adpated from https://stat.ethz.ch/pipermail/r-help/2011-March/272641.html #' @

Re: [R] Combining dataframes with different row numbers and plotting with ggplot2

2016-01-09 Thread Michael Dewey
Sorry Maryam but I use neither reshape nor ggplot2 so I will leave it to others to advise you. On 09/01/2016 14:29, maryam moazam wrote: Dear Michael, Thanks for your feedback. Actually, I would like to show (and compare) size distribution of df1 and df2 in the single plot using ggplot2, some

Re: [R] Which GLM to use with mixed predictor variables i.e. both discrete and continous

2016-01-09 Thread Michael Dewey
Dear Charles You showed us a call of glm with which you are presumably not satisfied. What happened to disappoint you? On 09/01/2016 09:55, Charles Thuo wrote: I have the following glm v_glm <- glm(claim_count~ave_age+cost+inc.count+p.statcount,data=v,family=poisson) claim_count - dependent

Re: [R] Combining dataframes with different row numbers and plotting with ggplot2

2016-01-09 Thread Michael Dewey
Dear Maryam If you just need all the values of size would c(df1$size, df2$size) work? On 08/01/2016 21:44, maryam moazam wrote: Dear Sir / Madam, I have just come to the amazing R software, so please be patient if my question is basic for you. I have 2 text file (say 1.txt and 2.txt), each fil

Re: [R] Extracting point data using longitude and latitude from netcdf file using R

2016-01-09 Thread Peter Tuju via R-help
Thank you Be for the good guide, however no luck with the syntax used namely; ix0 = wherenearest( lower_left_lon_lat[1],  lon ) ix1 = wherenearest( upper_right_lon_lat[1], lon ) iy0 = wherenearest( lower_left_lon_lat[2],  lat ) iy1 = wherenearest( upper_right_lon_lat[2], lat ) # I end up with this

Re: [R] Extracting point data using longitude and latitude from netcdf file using R

2016-01-09 Thread Ben Tupper
Hi, This post gives more details on how to transform your lat/lon values to row/column indices. The question and answer are specifically about the ncdf package, but the workflow is identical when using the ncfd4 package. https://stat.ethz.ch/pipermail/r-help/2011-March/272641.html Cheers, Ben

Re: [R] Extracting point data using longitude and latitude from netcdf file using R

2016-01-09 Thread Peter Tuju via R-help
Thank you Mr. Anthon for your feedback. So, how can  I extract the data at the specified  latitude and longitude?Or, How can I get the latitude and longitude index which corresponds to the following coordinates from the netcdf file? dar_lon <- 39.2 dar_lat <- -6.87 _ Peter  E. Tuj

Re: [R] Extracting point data using longitude and latitude from netcdf file using R

2016-01-09 Thread Anthoni, Peter (IMK)
Hi Peter, the start in nc_varget requires a latitude and longitude index, not the latitude and longitude in double format. So you need to figure out what index your latitude and longitude correspond to, which will depends on what data are in your netCDF. it might have looked like that it worked

Re: [R] Extracting point data using longitude and latitude from netcdf file using R

2016-01-09 Thread Peter Tuju via R-help
I have data file in netcdf with three dimensions (x, y, t) and I want to extract a variable RAINC and RAINNC using longitude and latitude for a single point location with all the time, but no lucky. The syntax is as follows;; setwd( "/run/media/tuju/0767090047/extract_wrf_txt_file" ) rm( list =

[R] Which GLM to use with mixed predictor variables i.e. both discrete and continous

2016-01-09 Thread Charles Thuo
I have the following glm v_glm <- glm(claim_count~ave_age+cost+inc.count+p.statcount,data=v,family=poisson) claim_count - dependent variable and is discrete ave_age - predictor variable and is continuous cost - predictor variable and is continuous inc_count - predictor variable and is discret