Displaying 15 results from an estimated 15 matches similar to: "loop to subtract arrays / error"
2012 Nov 18
0
subtract multiple columns from single column for Nash Sutcliffe efficiency
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
Vobsr <- as.matrix(Vobsr[,-1]) # remove column 1
2012 Nov 19
5
help on matrix column removal based on another matrix results
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 <- apply(Xjjh, 2, sum)
Yii <- (obs - mean(obs))^2
Yiis <- apply(Yii, 2,
2007 Dec 03
1
Plotting monthly timeseries with an x-axis in "time format"
I have the following timeseries "tab"
=====================================
> str(tab)
mts [1:23, 1:2] 79.5 89.1 84.9 75.7 72.8 ...
- attr(*, "dimnames")=List of 2
..$ : NULL
..$ : chr [1:2] "Ipex...I" "Omel...E"
- attr(*, "tsp")= num [1:3] 2006 2008 12
- attr(*, "class")= chr [1:2] "mts" "ts"
> tab
2017 Oct 15
2
Download data from NASA for multiple locations - RCurl
Dear all,
i am trying to download time-series climatic data from GES DISC (NASA)
Hydrology Data Rods web-service. Unfortunately, no wget method is
available.
Five parameters are needed for data retrieval: variable, location,
startDate, endDate, and type. For example:
###
2007 Dec 09
1
Setting the grid of a graph of timeseries
I have the following code
####################################################################
library(zoo)
miedate <- yearmon((2006)+seq(0,23)/12)
tab <- zoo(cbind(A = c(79.47, 89.13, 84.86, 75.68, 72.82, 78.87, 93.46,
78.18, 82.46, 77.25, 80.95, 84.39, 81.7, 74.76, 65.29, 60.3,
66.59, 73.19, 92.39, 65.76, 77.45, 74.22, 101.36, 100.01), B = c(77.95,
76.73, 51.2, 51.86, 51.29, 49.45,
2012 Nov 28
1
how to keep all zeros in 1st row (not NA)
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 they will remain
in the matrix.
In the previous post I mentioned that R makes the
2017 Oct 15
2
Download data from NASA for multiple locations - RCurl
Dear David,
This is amazing, thank you so much. If I may ask another question:
The output looks like the following:
###
dput(head(x,15))
c("Metadata for Requested Time Series:", "",
"prod_name=GLDAS_NOAH025_3H_v2.0",
"param_short_name=Tair_f_inst", "param_name=Near surface air temperature",
"unit=K",
2017 Oct 16
1
Download data from NASA for multiple locations - RCurl
I have done the following using readLines
directory <- "~/"
files <- list.files(directory)
data_frames <- vector("list", length(files))
for (i in seq_along(files)) {
df <- readLines(file.path(directory, files[i]))
df <- df[-(1:13)]
df <- data.frame(year = substr(df,1,4),
month = substr(df, 6,7),
day =
2017 Oct 16
0
Download data from NASA for multiple locations - RCurl
> On Oct 15, 2017, at 3:35 PM, Miluji Sb <milujisb at gmail.com> wrote:
>
> Dear David,
>
> This is amazing, thank you so much. If I may ask another question:
>
> The output looks like the following:
>
> ###
> dput(head(x,15))
> c("Metadata for Requested Time Series:", "", "prod_name=GLDAS_NOAH025_3H_v2.0",
>
2017 Oct 15
0
Download data from NASA for multiple locations - RCurl
> On Oct 15, 2017, at 2:02 PM, Miluji Sb <milujisb at gmail.com> wrote:
>
> Dear all,
>
> i am trying to download time-series climatic data from GES DISC (NASA)
> Hydrology Data Rods web-service. Unfortunately, no wget method is
> available.
>
> Five parameters are needed for data retrieval: variable, location,
> startDate, endDate, and type. For example:
2010 Aug 17
2
AIC in MuMIn
Hello,
I am using package MuMIn to calculate AIC for a full model with 10
explanatory variables.
Thanks in advance in sharing your experience.
Q1
In the AIC list of all models, each model is differentiated by model number.
Please kindly advise if it is possible to
find the corresponding explanatory variable(s) for the model number.
Q2 error message
I tried to display sub-model with only
2010 Aug 18
13
Poor creat/delete files performance
Hi,
We did some performance test and found the create/delete files performance
of btrfs is very poor.
The test is that we create 50000 files and measure the file-create time
first, and then delete these 50000 files and measure the file-delete time.
(The attached file is the reproduce program)
The result is following:
(Unit: second)
Create file performance
BtrFS Ext4
Total times:
2012 Nov 28
7
zeros in double matrix rather than character matrix
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 read in a .csv spreadsheet with counting the zeros
as a numerical or integer value?
Thank-you.
Irucka
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
Signed-off-by: Scott Seago <sseago at redhat.com>
---
AUTHORS | 17 ++++++
README | 10 +++
conf/ovirt-agent | 12 ++++
conf/ovirt-db-omatic | 12 ++++
conf/ovirt-host-browser | 12 ++++