[R] How to get bathymetry data using R

2016-06-10 Thread javad bayat
Dear R users; I am searching for a package to extract bathymetry data from topography map to produce the control file for CE-Qual-w2 model. Is there anyone to know how to do it? many thanks. -- Best Regards Javad Bayat M.Sc. Environment Engineering Alternative Mail: bayat...@yahoo.com

Re: [R] Visualize Sparse Matrix.

2016-06-10 Thread Jim Lemon
Hi Francisco, Your example plot shows me what you want to do (I think). I'm guessing that you want to display the values in your matrix that are NOT zero or NA, either colored in some way, or just in one color as the example. The following example shows how to do both of these: #

[R] Error nmf - Input matrix x contains at least one null or NA-filled row

2016-06-10 Thread Ragia .
  Dear group,   kindly I am trying to factorize document term matrix via NMF and got the following Error  show up Error: NMF::nmf - 2/2 fit(s) threw an error. # Error(s) thrown:   - run #1: NMF::nmf - Input matrix x contains at least one null or NA-filled row. when I partition the matrix it

Re: [R] summing up a column.

2016-06-10 Thread oslo via R-help
Jeff;  thanks for this. My question was job related. No from my course. I need finish a job for the place I work. I am so sorry for causing misunderstanding. thanks, Oslo On Friday, June 10, 2016 5:08 PM, oslo via R-help wrote: Jeff thanks for this. My question

Re: [R] summing up a column.

2016-06-10 Thread oslo via R-help
Jeff thanks for this. My question was job related. No from my course. I need finish a job for the place I work. I am so sorry for causing misunderstanding. thanks, Oslo On Friday, June 10, 2016 5:02 PM, Jeff Newmiller wrote: Multiple posting happens when you

Re: [R] summing up a column.

2016-06-10 Thread Jeff Newmiller
Multiple posting happens when you are learning a new system, but reading the posting guide can keep the bleeding down. 1) There is a no-homework policy on this list... different educational organizations have different standards for what is acceptable outside help, so you should be using the

[R] summing up a column.

2016-06-10 Thread oslo via R-help
Dear All; I had difficulty to post a mail along with appropriate of data structure. I do sincerely apologize for multiple posting I would like to sum up the B$a column and cut off at 0.7 for the each row of intervals giving in file=A.For example the interval  at the first row in A$posA and

Re: [R] summing up and cut off with looping

2016-06-10 Thread oslo via R-help
Hi Brent; I do appreciate for your helps and advice. I already registered online to learn R. Today my second day. I think I could not explain my problem precisely. I have two file called A and B. A has to columns say posA and posB the values of the first row in A are 1 and 9, and the values of

Re: [R] summing up and cut off with looping

2016-06-10 Thread Bert Gunter
1. Please read the posting guide (link below) to learn how to post understandable questions -- at least I was not able to understand. In particular, post in plain text, not html, which tends to get mangled as seemed to occur here. 2. Your first stop in learning R should be one of the many fine

[R] Fw: summing up and cut off with looping

2016-06-10 Thread oslo via R-help
I am so sorry that the data in my previous file was very mass;Here are my data sets > A  posA posB1    1    92    2    73    5   124    4    75    9   13>    pos   a  b    c1   4 0.4  7 0.802   2 0.1  5 0.403   7 0.5  8 0.324   1 0.4   1 0.105  13 0.1  6 0.136  12 0.2 11 0.017   9 0.3 12 0.23> 

[R] summing up and cut off with looping

2016-06-10 Thread oslo via R-help
Hi all; I am quite new in R. I have tried write a loop to sum up a column and cut off when summation reach certain point. Here are a small example and my R codes. Your helps are truly appreciated, Oslo file=AposA posB1     92     75     124     79     13.    . .    .    File=Bpos  a  b   c    4  

Re: [R] Visualize Sparse Matrix.

2016-06-10 Thread FRANCISCO XAVIER SUMBA TORAL
Hi Jim, Thanks for your answer. I try your code example, but it is basically the same that I had it. I want to visualise my matrix something like this image: With the graphics that I already have is difficult to visualise my data. I am getting this results: 1) With my first code, I got

Re: [R] New installation

2016-06-10 Thread John Dougherty
On Thu, 9 Jun 2016 13:44:52 -0700 jax200 wrote: > Hi > > I'm starting off with both R and Linux Mint. During a recent R > course, I had multiple difficulties with installing updates needed > for the course. > > As such, I'd like to hit the restart button with fresh installs

[R] Merging two data frame with different lengths

2016-06-10 Thread Abraham Mathew
So I have two data frames. The first one is a reccomendation data frame and the second is a melted list with a pairing of OpportunityId's and ProductId's. There are multiple product id's per an opportunty id. What I want to do is merge based on ProductId so that I can add the OpportunityId to the

Re: [R] New installation

2016-06-10 Thread Leonardo Fontenelle
Em Sex 10 jun. 2016, às 03:58, Rainer M Krug escreveu: > Clint Bowman writes: > > I am really wondering, why nobody mentioned Ubuntu so far? > > Ubuntu is a really nice distro, I never had problems with it, many > programs are available for Ubuntu, and it is build on Debian >

Re: [R] create an empty data frame and then fill in it (and then evaluate the mean of semi-hourly data for each day)

2016-06-10 Thread William Dunlap via R-help
Finally I applied lapply in this way: df_snow_day$snow <- lapply(df_snow_day$day, function(x) round(mean(df_snow$snow[df_snow$day == x], na.rm=T)) This does not work. I do not understand why the class of df_snow_day$snow is of type list either: lapply()'s output is always a list. I

Re: [R] save rgl.sphere plot

2016-06-10 Thread David Winsemius
http://stackoverflow.com/questions/7663982/r-using-rgl-to-generate-3d-rotatable-plots-that-can-be-viewed-in-a-web-browser Sent from my iPhone > On Jun 10, 2016, at 9:14 AM, ch.elahe via R-help wrote: > > Hi all > I have generated a 3D interactive rgl.sphere but I don't

Re: [R] save rgl.sphere plot

2016-06-10 Thread Duncan Murdoch
On 10/06/2016 9:14 AM, ch.elahe via R-help wrote: Hi all I have generated a 3D interactive rgl.sphere but I don't know how to save it to be viewed also interactive(being able to rotate it and do zoom-in and out). Does anyone know how should I save it? Thanks for any help! I'd recommend using

Re: [R] About identification of CRAN CHECK machines in logs

2016-06-10 Thread Marcelo Perlin
I don't know Hadley. But you can see evidence of "something" systematically installing the packages in the log data. From my two CRAN packages I noticed a high correlation in the number of downloads. Try the following script, which will pick 5 random packages from CRAN and calculate the

Re: [R] New installation

2016-06-10 Thread Jeff Newmiller
Re this thread: Please stop with the "my favorite Linux" messages. If you have concrete direction as to why R is well supported (preferably links to detailed instructions), that could be construed as "R-help", but "I like it" is unlikely to be useful to an inexperienced user. -- Sent from my

Re: [R] New installation

2016-06-10 Thread ce
I use opensuse linux with R , no problems, easy to install, added R repositories . -Original Message- From: "jax200" [jax...@gmail.com] Date: 06/09/2016 06:00 PM To: r-help@r-project.org Subject: [R] New installation Hi I'm starting off with both R and Linux Mint. During a recent R

Re: [R] About identification of CRAN CHECK machines in logs

2016-06-10 Thread Hadley Wickham
On Fri, Jun 10, 2016 at 8:27 AM, Marcelo Perlin wrote: > I don't know Hadley. But you can see evidence of "something" systematically > installing the packages in the log data. From my two CRAN packages I noticed > a high correlation in the number of downloads. > > Try the

[R] save rgl.sphere plot

2016-06-10 Thread ch.elahe via R-help
Hi all I have generated a 3D interactive rgl.sphere but I don't know how to save it to be viewed also interactive(being able to rotate it and do zoom-in and out). Does anyone know how should I save it? Thanks for any help! Elahe __

Re: [R] create an empty data frame and then fill in it (and then evaluate the mean of semi-hourly data for each day)

2016-06-10 Thread Duncan Murdoch
On 10/06/2016 6:45 AM, Stefano Sofia wrote: Thank you for your answer. Very clear. (I don't like the second solution either.) Let me then ask a final question. From an initial data frame with semi-hourly data (df_snow, with two columns, data_POSIX of type "POSIXct" "POSIXt" and snow of type

Re: [R] create an empty data frame and then fill in it (and then evaluate the mean of semi-hourly data for each day)

2016-06-10 Thread PIKAL Petr
Hi Sofia df_snow_day <- aggregate(df_snow$snow, list(df_snow$day), mean, na.rm=TRUE) should give you automagically required data frame. Regards Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Stefano > Sofia > Sent: Friday, June 10, 2016

Re: [R] create an empty data frame and then fill in it (and then evaluate the mean of semi-hourly data for each day)

2016-06-10 Thread Stefano Sofia
Thank you for your answer. Very clear. (I don't like the second solution either.) Let me then ask a final question. From an initial data frame with semi-hourly data (df_snow, with two columns, data_POSIX of type "POSIXct" "POSIXt" and snow of type "numeric"), I need to evaluate the mean of for

Re: [R] Visualize Sparse Matrix.

2016-06-10 Thread Jim Lemon
Hi Francisco, I tried this just to see if it would work. It did, after a while. wtmat<-matrix(rnorm(4602*1817),nrow=4602) library(plotrix) x11(width=5,height=13) color2D.matplot(wtmat,c(1,1,0),c(0,1,0),0,border=FALSE) Jim On Fri, Jun 10, 2016 at 8:27 AM, FRANCISCO XAVIER SUMBA TORAL

Re: [R] FEAR package

2016-06-10 Thread PIKAL Petr
Hi you should not post in HTML (although it did not matter in this case) you should describe the way how you did install FEAR - I found that the installation process is a bit more complicated than installation of standard CRAN packages. But first you should contact the author about

[R] FEAR package

2016-06-10 Thread farzana akbari
in the name of God hi I'm installing FEAR package in R x64 3.2.4but for loading it Error : .on Attach failed in attach Namespace() for 'FEAR', details: call: detach("package:FEAR") error: invalid 'name' argument Error: package or namespace load failed for ‘FEAR’ what should I

Re: [R] New installation

2016-06-10 Thread Rainer M Krug
Clint Bowman writes: I am really wondering, why nobody mentioned Ubuntu so far? Ubuntu is a really nice distro, I never had problems with it, many programs are available for Ubuntu, and it is build on Debian (stable). Don't worry about Unity Window manager - there are many

Re: [R] Application of "merge" and "within"

2016-06-10 Thread Santosh
Hi Peter and others.. In the code from Peter..(reproduced below for convenience..) > first <- function(x)x[1] > s <- within(q, {bl <- ave(b, paste(G,a), FUN=first); db <- b - bl}) is there a reason behind that 'ave' used in the above code? is there way to perform a multi-column sort in