Displaying 20 results from an estimated 1000 matches similar to: "need a solution to an R-problem: consultant available?"
2010 May 18
2
Function that is giving me a headache- any help appreciated (automatic read )
note: whole function is below- I am sure I am doing something silly.
when I use it like USGS(input="precipitation") it is choking on the
precip.1 <- subset(DF, precipitation!="NA")
b <- ddply(precip.1$precipitation, .(precip.1$gauge_name), cumsum)
DF.precip <- precip.1
DF.precip$precipitation <- b$.data
part, but runs fine outside of the function:
days=7
2009 Oct 06
1
ggplot2 applying a function based on facet
Look at the bottom of the message for my question
#here is a little function that I wrote
USGS <- function(input="discharge", days=7){
library(chron)
library(gsubfn)
#021973269 is the Waynesboro Gauge on the Savannah River Proper (SRS)
#02102908 is the Flat Creek Gauge (ftbrfcms)
#02133500 is the Drowning Creek (ftbrbmcm)
#02341800 is the Upatoi Creek Near Columbus (ftbn)
#02342500 is
2017 Dec 01
0
R-help: ActivPALProcessing
Hi,
I am having trouble with the function process.AP in the ActivPALProcessing package. Based on the detailed instruction attached by the author, it is my understanding that process.AP will use the information provided in the log of subjects to batch process AP events files saved in the working directory. Results of the batch processing will be summarized in three files: 1) Sleep Wake Wear
2012 Jul 30
2
distance matrix and hclustering
Dear R Users,i am very new to R. I want your help on an issue regarding distance matrix and cluster analysis
i had discharge data of 4 rivers(a,b,c,d) in 4 vectors each having 364 values
> dput(qmu)structure(list(a = c(0.26, 0.25, 0.25, 0.25, 0.24, 0.23, 0.22, 0.21, 0.21, 0.21, 0.2, 0.19, 0.19, 0.19, 0.19, 0.18, 0.18, 0.18, 0.17, 0.17, 0.17, 0.17, 0.17, 0.17, 0.17, 0.17, 0.17, 0.17, 0.17, 0.17,
2009 Feb 18
1
rbind: number of columns of result is not a multiple of vector length (arg 1)
i have the following constructed and running very well,, thanks to Gabor
Grothendieck for his help.
>data.info <- c("station.id", "year", "date", "max.discharge")
>
> for(i in 1:num.files) {
+ station.id <- substring(data[i], 1,8)
+ DF <- read.table(data[i], sep=",", blank.lines.skip = TRUE)
+ z <- zoo(DF[,4],
2002 May 15
1
can't get rcmd to work on windows2k....
I'm trying to make sure my R package will install properly (build help
files, etc) and when I try to run the rcmd check (or any rcmd option) I get
the following error. Does dcf.pm stand for perl module? If not, why do I get
this message?
C:\systemfit\r_code>rcmd check --help
Can't locate R/Dcf.pm in @INC (@INC contains: c
\PROGRA~1\r\rw1041\share\perl; /usr/lib/perl5/5.6.1/cygwin-multi
2011 Apr 21
1
Rearranging columns with cbind
I'm getting an error that I don't understand when trying to rearrange my data
columns with cbind. My data is in 27 columns, like so:
> data <- read.table("CalledFeatsNimblegen.csv", header=T, sep=",")
> names(data)
[1] "MF_not_mC" "MF_promoter" "MF_genebody"
"FF_not_mC"
[5]
2013 Feb 19
1
data format
Hi,
Try this:
el<- read.csv("el.csv",header=TRUE,sep="\t",stringsAsFactors=FALSE)
?elsplit<- split(el,el$st)
?
datetrial<-data.frame(date1=seq.Date(as.Date("1930.1.1",format="%Y.%m.%d"),as.Date("2010.12.31",format="%Y.%m.%d"),by="day"))
elsplit1<- lapply(elsplit,function(x)
2013 Mar 14
0
reshape
Hi Elisa,
You need to check your data.? For some 'st', the data is repeated/duplicated (I am assuming, didn't check it) especially for a particular year.
dat1<-read.csv("elisa.csv",sep="\t")
dat1$st<- as.character(dat1$st)
?str(dat1)
#'data.frame':??? 506953 obs. of? 5 variables:
# $ st?????? : chr? "AGOMO" "AGOMO"
2008 Sep 09
1
Linear Modeling the best alternative
I have a data set of mean velocity, discharge, and mean depth. I need
to find out which model best fits them out of log linear, linear, some
other kind of model... Using excel I have found that linear is not
that bad and log10(discharge) vs. the other two variables (I am trying
to predict velocity and depth from discharge) is not that bad either.
How do I test and see which one of these models
2011 May 11
1
filtering out unwanted words in a Term Document Matrix
Hi Y'all,
I am using the text mining package (tm). I am trying to filter out all of the words in a Term Document Matrix that are not in a list of words that I am interested in. I am using the following code:
z<-tm_intersect(txt.dtm, c("communications", "safety", "climate", "blood", "surface", "cleanliness",
2009 Feb 17
2
annual maximum value
hi everyone!
hope you can help me here.
i am a new R user. what i am trying to do is to find the maximum annual
discharge from a daily record. i have a data.frame which includes date and
the discharge. somewhat like this..
10/1/1989 2410
10/2/1989 2460
10/3/1989 2890
...
...
...
12/31/2005 5730
i have been browsing through the archives and fount out about the aggregate
2011 Mar 18
1
Difficulty with 'loess' function
Hi,
I am trying to create a loess smooth from hydrologic data. My goal is to
create a smooth line that describes discharge at a certain point in time. I
have done this using the 'lowess' function and had no problem, but I'm
having some difficulty with loess. I am inputting the date ('date') and
discharge ('q') values using the 'scan' function, then inputting
2015 May 28
0
New controller card issues
On Thu, May 28, 2015 4:25 pm, Gordon Messmer wrote:
> On 05/28/2015 11:13 AM, Valeri Galtsev wrote:
>>
>> I do not want to start "software" vs "hardware" RAID wars here
>
> I'm not saying that hardware RAID is bad, entirely. Software RAID does
> have some advantages over hardware RAID, but my point has been that
> 3ware cards, specifically, are
2014 Dec 19
1
Changing self test date
On Dec 18, 2014, at 9:16 AM, Frantz de Germain <frantz at info.univ-angers.fr> wrote:
> What is the difference between "test.battery.start.deep" and
> "test.battery.start.quick" command (upscmd) ?
The intent for the quick test is to only discharge the battery a little bit, whereas the deep test would discharge until the low battery threshold is reached (or the
2007 Dec 12
3
Adding data labels to Lattice plots
Hi,
I am new to lattice graphics and have the following question. I have a
dataframe d2:
cat PointsInTime MeanScore
1 Parent Intake 26.25000
2 Youth Intake 9.75000
3 Worker Intake 20.63636
4 Parent Discharge 24.00000
5 Youth Discharge 15.60000
6 Worker Discharge 23.90909
and to produce a plot I am using the following code
print(xyplot(MeanScore ~
2020 Jan 11
4
System with MGE UPS shuts down too early
OK. I'll try it, but it really puzzles me how the battery could have
gone bad for just 15 months. The online power is pretty stable, so the
battery hasn't gone through many charge/discharge cycles...
Regards,
--
Georgi
On 11.1.2020 at 14:24, Manuel Wolfshant wrote:
>
> indicates that the UPS thought that battery was close to depleted and decided to shutdown. I suggest to fully
2012 Jul 05
2
function curve() swap axes
Dear all,
I'm using the curve() function to plot discharge Q against water depth a.
However, I would like to have a graph of water depth a plotted against
discharge Q. How can this be done?
Minimal working example:
S0 = 0.004
n = 0.04
tanalpha = 1.4/1.5
par(mar = c(5,5,1,1)) # b, l, t, r
2004 Jul 07
3
KalmanSmooth problem
Hello,
In R I am trying to use Kalman filtering to find a solution for an hydrological problem. With Kalman Filtering I want to estimate the discharge comming from three storage bassins. I have programmed a function in R which can run KalmanSmooth. When I'm asking for the function and putting in values, R detects the following error: "Error in as.vector(data) : Argument "S1" is
2008 Jun 27
1
Problems exporting graphs
I have trying to figure this out all day so hopefully the answer isn't too
obvious. I am able to view a graph in the viewer window. However, I need to
export graph outside of the viewer window. Here is the script I am using:
> png("Compare.png")
> plot(compare$DepthSLI, compare$DischargeSLI, col="blue", xlab = "Average
Water Depth (cm)", ylab =