Re: [R] Tranfer data from exel into R

2013-05-10 Thread iembry
Hi, you are very welcome! I'm glad that it works now. Irucka Embry <-Original Message-> >From: Hiep [via R] [ml-node+s789695n4666747...@n4.nabble.com] >Sent: 5/10/2013 6:27:23 AM >To: iruc...@mail2world.com >Subject: Re: Re: Tranfer data from exel into R > >Hi Irucka > >it works now,

Re: [R] Tranfer data from exel into R

2013-05-08 Thread iembry
Hi, how are you? You are welcome for my assistance. I'm sorry, but I made a mistake in my previous post. Is your .csv file in your working R directory? If so, then H<-read.csv("Book.csv", header=TRUE, sep=",") should work. I am assuming that your data is comma separated and that the names of

Re: [R] "[[i]]$" <- "" indexing and lapply

2013-03-21 Thread iembry
Hi Arun, thank-you very much! The 2nd option worked perfectly. That was what I wanted. Now, I have another question. I am using the R packages dataRetrieval and EGRET from https://github.com/USGS-CIDA/WRTDS. I have 2 objects Daily and Sample that have the naming convention (Names = "21NC02WQ.C10

Re: [R] how do I read certain files from a directory based on number of columns?

2013-03-21 Thread iembry
Hi Arun, thank you. I will look through that later on today when I get a chance. I have to complete another part of this project now. Irucka <-Original Message-> >From: arun kirshna [via R] [ml-node+s789695n4661145...@n4.nabble.com] >Sent: 3/12/2013 10:35:39 PM >To: iruc...@mail2world.c

Re: [R] subsetting with greater than and less than indexing

2013-02-20 Thread iembry
Hi Arun, thank-you for your assistance. I'm sorry that I did not provide a reproducible example. I will provide a reproducible example the next time. Using the next to last line of your code I was able to get what I needed without using the for loop. Thanks again. Irucka <-Original Messa

[R] how to keep all zeros in 1st row (not NA)

2012-11-28 Thread iembry
Hi, let me correct my previous post ("zeros in double matrix rather than character matrix"). I have included entries from the .csv file that has 4 columns of 1000 columns and 101 rows. The first column with the "Time (day)" will not be removed, but the row headers are the numbers 1 to 1000 and the

[R] GLUE (Generalized Likelihood Uncertainty Estimation) and Bayesian Updating

2012-11-28 Thread iembry
Hi, how are you? Has anyone used R to perform the Bayesian updating technique when using the GLUE procedure? If so, then what package did you use if you used a package? What general procedure did you follow? Thank-you very much! Irucka Embry -- View this message in context: http://r.789695

[R] zeros in double matrix rather than character matrix

2012-11-27 Thread iembry
Hi, how are you? I have 1000 total columns with 100 rows and I have shown 4 columns of 100 rows below. I want the zeros to be read in as numerical or integer values rather than a character. Right now I have a 100x0 character matrix rather than a 100x1000 double matrix. What do I need to do to re

[R] help on matrix column removal based on another matrix results

2012-11-19 Thread iembry
Hi everyone, now I am trying to finish writing the code (I had asked for assistance on subtracting arrays) This is what I what I am running in R: > source("/home/ie/Documents/TTU/GA_Research/GLUE/R-Project/R_GLUE_Example/NSEr.R") NSEr <- function (obs, sim) { {jjh <- (as.vector(obs) - sim)^2 Xjjhs

[R] loop to subtract arrays / error

2012-11-18 Thread iembry
Hi everyone, I am having trouble with creating a loop to subtract arrays. In R, this is what I have done: > Vobsr <- read.csv("Observed_Flow.csv", header = TRUE, sep =",") # see data > below > Vsimr <- read.csv("1000Samples_Vsim.csv", header = TRUE, sep =",") # see > data below > Vobsr <- as.matr

[R] subtract multiple columns from single column for Nash Sutcliffe efficiency

2012-11-18 Thread iembry
Hi everyone, I am having trouble using my own data in the Nash-Sutcliffe efficiency (NSE) function. In R, this is what I have done: Vobsr <- read.csv("Observed_Flow.csv", header = TRUE, sep =",") # see data below Vsimr <- read.csv("1000Samples_Vsim.csv", header = TRUE, sep =",") # see data below