Re: [R] Request for help in solving an optimization problem

2021-12-23 Thread Bert Gunter
1. This ia a plain text list. No html. 2. Looks like homework. We don't do homework here. 3. Please read the posting guide. This is R-Help, not "R we do your work for you." We expect posters to show us their efforts to solve their problems. (In R, not Excel of course). 4. See here for R optimiza

[R] Request for help in solving an optimization problem

2021-12-23 Thread Amarjeet Kumar
Dear All. Warm greetings to you. I need help in solving an optimization formulation in R software. I tried to solve it in excel solver but it was going up to local minimum using GRG nonlinear solving method. I thought R can help in solving this problem so I am explaining the problem in few sentenc

[R] Request for help to modify sliderInput in RShiny app (conditional statement)

2020-11-17 Thread Bhaskar Mitra
Hello Everyone, I have written certain codes in RShiny app which works fine. There are 3 tabs, "Z1", "Z2" and "Z3". Currently the sliderinput shows up when I click all the 3 tabs. I need to adjust this code so that sliderInput is only visible when i click tab "Z1" and not for tabs "Z2" and "Z3

Re: [R] Request for help about running a loop and reading .NC files

2020-03-24 Thread David Pierce via R-help
Hey Bhaskar, Dave Pierce here, the author and maintainer of the ncdf4 package. What platform are you working on? If you work on Linux, I'd be happy to send you a new source tar version of the ncdf4 package I've made that handles this case. It now has a settable parameter in nc_open called "return

Re: [R] Request for help about running a loop and reading .NC files

2020-03-24 Thread Bert Gunter
?tryCatch See also: https://www.r-bloggers.com/error-handling-in-r/ Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Tue, Mar 24, 2020 at 5:13 AM Bhaskar Mitra

Re: [R] Request for help about running a loop and reading .NC files

2020-03-24 Thread Ivan Krylov
On Mon, 23 Mar 2020 16:16:42 -0700 Bhaskar Mitra wrote: > I would appreciate if anyone can suggest how can I modify >the loop, whereby the loop will continue to run by bypassing those >particular >files which it cannot read or if any particular file has an error. See ?try and ?tryCatch. With `tr

[R] Request for help about running a loop and reading .NC files

2020-03-24 Thread Bhaskar Mitra
Hello Everyone, I have written a loop which reads hundreds of .nc files and extract information from each .nc file and exports that corresponding information as a csv file. The loop works fine until it encounters a .nc file which it cannot read and the loop stops. I would appreciate if anyone c

Re: [R] Request for help with R program

2018-08-14 Thread Bert Gunter
R has no "associates". It is open source software with many users and developers with varying skill levels and interests. I think you are in over your head ("inexperienced in computer programming") and should seek local resources at Baylor to help you. This list probably cannot provide the level o

[R] Request for help with R program

2018-08-14 Thread Spencer Brackett
Good evening, I am a high school research student who is partnering with Baylor University (TX) on a Genomic research project, and was seeking to use the R program to analysis our data— which is from GDC database. R-3.5.1 is currently downloaded onto my Windows PC and I am looking to download th

Re: [R] Request for help - adding text files to a data frame

2017-06-26 Thread Jim Lemon
Hi Bhaskar, You can put all sorts of stuff into a text file simply by using the "sink" command: sink("bm.txt") cat("\n") B9<-"B" cat(B9,"\n",sep="") for(i in 1:9) cat("C") cat("\n") print(df) sink() What you intend to do with a file like this is beyond me. Jim On Mon, Jun 26, 20

Re: [R] Request for help - adding text files to a data frame

2017-06-25 Thread David Winsemius
> On Jun 25, 2017, at 7:35 PM, Bhaskar Mitra wrote: > > Hello Everyone, > > I have a data frame which looks something like this: > >V1 <-c(1,2,3) >V2 <-c(5,6,7) >V3 <-c(9,10,11) > > df <- data.frame(V1,V2,V3) > > I want to add couple of text files at the beginning of df and s

Re: [R] Request for help - adding text files to a data frame

2017-06-25 Thread Bert Gunter
You appear to either be ignorant of the structure pf data frames or have not expressed yourself clearly enough (for me, anyway). Please go through a tutorial to learn about the fixed structure of data frames, for which your request does not appear to reflect an understanding. Cheers, Bert Bert G

[R] Request for help - adding text files to a data frame

2017-06-25 Thread Bhaskar Mitra
Hello Everyone, I have a data frame which looks something like this: V1 <-c(1,2,3) V2 <-c(5,6,7) V3 <-c(9,10,11) df <- data.frame(V1,V2,V3) I want to add couple of text files at the beginning of df and save the df as a csv file. The csv file should look something like this:

Re: [R] Request for help

2016-06-04 Thread Michael Dewey
Dear Suparna You do not say whether the problem is (a) creating a help page to start with (b) understanding how to edit it afterwards. If the former then Duncan's advice to use prompt (or package.skeleton if you have not got anything set up yet) is good advice. If (b) then try it and post agai

Re: [R] Request for help

2016-06-03 Thread Duncan Murdoch
On 03/06/2016 2:27 PM, Bert Gunter wrote: See the "Writing R Extensions" manual that ships with R. You might also want to consider Hadley Wickham's roxygen2 package, which allows one to include the Help information as specially formatted comments within the code files themselves. The package wil

Re: [R] Request for help

2016-06-03 Thread Roy Mendelssohn - NOAA Federal
Hi All: > On Jun 3, 2016, at 11:33 AM, jlu...@ria.buffalo.edu wrote: > > There is a video tutorial on the RStudio web site showing how to create R > packages within RStudio. Hadley Wickham also has a book on creating R > packages. > And I would add that Hadley has kindly put the book onlin

Re: [R] Request for help

2016-06-03 Thread JLucke
There is a video tutorial on the RStudio web site showing how to create R packages within RStudio. Hadley Wickham also has a book on creating R packages. Bert Gunter Sent by: "R-help" 06/03/2016 02:27 PM To suparna biswas , cc r-help Subject Re: [R] Request for help

Re: [R] Request for help

2016-06-03 Thread Bert Gunter
See the "Writing R Extensions" manual that ships with R. You might also want to consider Hadley Wickham's roxygen2 package, which allows one to include the Help information as specially formatted comments within the code files themselves. The package will then generate the Help files from this inf

[R] Request for help

2016-06-03 Thread suparna biswas
Dear Sir/Madam Myself Suparna Biswas, a research scholar from the department of Mathematical Sciences, Tezpur University, Assam, India. I am working under the supervision of Dr. Santanu Dutta, Associate Professor, Department of Mathematical Sciences, Tezpur University, Assam,

[R] Request for Help with Specifying Priors for MCMC Logit

2015-02-18 Thread Dinesh Mathur S
Hello, I am working on a research project at the University of Maryland and as part of this project I am trying to perform a bayesian analysis. I am facing difficulty specifying priors using the MCMClogit package. My question is how do we specify a column vector as a prior mean and a square matrix

[R] Request for help regarding RWeka

2013-12-31 Thread Takatsugu Kobayashi
Hi Rusers, I am having a hard time understanding/finding a solution to this error message of RWeka. I just want to use Xmeans clustering command but when I typed "XMeans" then I get the following message: Error value[[3L]](cond) : Required Weka package 'XMeans' is not installed. So I tried to

Re: [R] request for help in R

2013-09-26 Thread John Kane
John Kane Kingston ON Canada -Original Message- From: atta_...@yahoo.com Sent: Wed, 25 Sep 2013 23:16:48 -0700 (PDT) To: jrkrid...@inbox.com Subject: Re: [R] request for help in R hi, i have data for 15 gauging stations of different rivers and for monthly maxmimum flows data, i want to

[R] request for help in R

2013-09-24 Thread atta ahmad
respectd sir,  i am working on regional frequency analysis of flood flow data and want to use packages lmomRFA, lmom, imomco,etc andby using these i want to find RMSE , errorbounds and absolute biase but could not make it clear to use, please help regards atta muhammad asif assistant professor at

Re: [R] Request for Help on Named Vectors

2013-05-22 Thread arun
Hi, May be this helps: month.dayslong<-rep(31,7)  names(month.dayslong)<- c("January","March","May","July","August","October","December") month.dayslong # January    March  May July   August  October December  #     31   31   31   31   31   31   31  unname(month.

[R] Request for help on manipulation large data sets

2012-01-26 Thread Chee Chen
Dear All, I would like to ask for help on how to read different files automatically and do analysis using scripts. 1. Description of the data 1.1. there are 5 text files, each of which contains cleaned data for the same 100 SNPs. Observations (e.g., position on gnome, alelle type, ...) for SN

Re: [R] Request for Help: y-axis label overlapped by x-axis in subplots in big plot

2011-11-06 Thread Duncan Murdoch
On 11-11-06 3:19 PM, Chee Chen wrote: Dear All, I would like to seek for help on this issue: 1. I set par(mfrow=c(2,2)), hoping to plot 4 subgraphs in a whole graph 2. Each subgraph has its own x,y axes and each has x-axis label and y-axis label 3. moreover, subgraphs in the left column of the

[R] Request for Help: y-axis label overlapped by x-axis in subplots in big plot

2011-11-06 Thread Chee Chen
Dear All, I would like to seek for help on this issue: 1. I set par(mfrow=c(2,2)), hoping to plot 4 subgraphs in a whole graph 2. Each subgraph has its own x,y axes and each has x-axis label and y-axis label 3. moreover, subgraphs in the left column of the whole graph are all 3D, and have z axes

Re: [R] Request for Help: remove zero in fraction from tick labe

2011-11-06 Thread Ted Harding
On 06-Nov-11 14:50:18, David Winsemius wrote: > > On Nov 6, 2011, at 9:07 AM, Chee Chen wrote: > >> Dear All, >> I would like to know how to do the following: >> 1. suppose I have x values from the ordered from 0, 0.5, 1, and >> would like to label these three points on the x-axis. >> 2. Howeve

Re: [R] Request for Help: remove zero in fraction from tick labeling

2011-11-06 Thread David Winsemius
On Nov 6, 2011, at 9:07 AM, Chee Chen wrote: Dear All, I would like to know how to do the following: 1. suppose I have x values from the ordered from 0, 0.5, 1, and would like to label these three points on the x-axis. 2. However, R labels them as 0.0, 0.5, 1.0. But I wan5 them to be 0, .5,

[R] Request for Help: remove zero in fraction from tick labeling

2011-11-06 Thread Chee Chen
Dear All, I would like to know how to do the following: 1. suppose I have x values from the ordered from 0, 0.5, 1, and would like to label these three points on the x-axis. 2. However, R labels them as 0.0, 0.5, 1.0. But I wan5 them to be 0, .5, 1, since the former way uses limited space of a mu

Re: [R] Request for Help

2011-03-14 Thread Joshua Wiley
Dear Caesar, Welcome to R. This is a great opportunity for you to start learning R and practicing writing your own code. The first thing I would do is go to: http://cran.r-project.org/doc/manuals/R-intro.htmland read the introduction to R manual. It has a lot of helpful information about us

[R] Request for Help

2011-03-14 Thread Caesar Nkambule
Good Day The attached document refers. I have recently attended an introduction course to R, and now wish to apply the program into my work analysis. The spreadsheet contains water quality data sampled from different locations within a catchment. I wish to group the variables per point (Poi

[R] Request for help with nls error

2007-10-28 Thread Trena Phipps
Hi. I am attempting to run my code to get estimates for a nonlinear model. Unfortunately, when I run the code, I keep getting the following errors (they switch back and forth depending on when I run it): Error in nlsModel(formula, mf, start, wts) : singular gradient matrix at initial p