Displaying 20 results from an estimated 300 matches similar to: "Oh apply functions, how you confuse me"
2010 Mar 10
3
Help with aggregate and cor
Hello,
I do not understand the correct way to approach the following problem
in R.
I have observations of pairs of variables, v1, o1, v2, o2, etc,
observed every 30 seconds. What I would like to do is compute the
correlation matrix, but not for all my data, just for, say 5 minutes
or 1 hour chunks.
In sql, what I would say is
select id, date_trunc('hour'::text, ts) as tshour,
2005 Sep 14
4
*** saving files ***
Hi,
I need help :o(
I want that my function saves result files in a for()-loop while it runs
automatically.
the filenames must be saved like:
file_1 -> for 1. result
file_2 -> for 2. result
file_3 -> for 3. result
and
.
.
.
file_n -> for n. result
the file names are the same identified by _1, _2
2007 Sep 05
4
Mocking to spec a sort_by method
Hello,
I have a question regarding the use of Mocha with rSpec to spec one of
my methods.
My spec contains the following
vehical1 = mock()
vehical2 = mock()
vehical1.stubs(:mph).returns(150)
vehical2.stubs(:mph).returns(250)
comparer.add_vehical([@vehical1, @vehical2])
comparer.sort_by(:mph)
The comparer is an object that has a basic "stack like" functionality,
add_vehical is the
2005 Feb 16
4
festival text for weather report
http://www.srh.noaa.gov/fwd/productviewnation.php?pil=OKXZFPOKX&version=
0
can anyone suggest how I could set up asterisk@home to read out allowed
the following text when I dial extension 850?
815 PM EST WED FEB 16 2005
.OVERNIGHT...MOSTLY CLEAR. LOWS 30 TO 35. NORTHWEST WINDS 15 TO 20
MPH WITH GUSTS UP TO 30 MPH...DIMINISHING TO 10 TO 15 MPH LATE.
.THURSDAY...PARTLY CLOUDY. COOLER
2008 Dec 21
2
data format issue
Dear all-
I have a dataset (see a sample below - but the whole dataset is June
2005 - June 2008). The "LST" format is "YYMMDDHHmm" and I would like to
get the hourly average of the "mph" for the summer months (spanning all
years). I have been trying to use "aggregate" but am not having much
success at all! any thoughts would be greatly appreciated.
2003 Mar 10
1
1 minute wait on a share / call_trans2qfsinfo takes 60 seconds
Hi
I have a linux mdk 8.0 w/ custom 2.4.19-16 kernel, acls, quotas etc
I have a samba 2.2.7 serving several shares on LVs
everything's fine but with one share :
whenever a windows client accesses this share his file manager is locked
out for exactly one minute. this happens when the client requests the
directory listing (or when an automatic refresh takes place)
i can't see any reason
2013 May 01
4
Selecting several columns/rows of a dataframe?
Sorry, the use of rows/columns I found so far was rather
contradictive, both refering to what can be gotten via subset()
instead of what I'm looking for.
Is there a way to get multiple colums/rows? Something like
corpus.df${mph,mgl,eng}
Thanks in advance for any answers.
--
Joel Prokopchuk
2009 Jun 01
1
t.tests by unique groupes
My data (slength) look like this:
Plant Block Treat Genotype Source MPH
1 1 1 w 05-AZM sp 160 NA
2 2 1 w 12-50 463 NA
3 3 1 w 12-51 sp 150 0.0508982
4 5 1 w 29-42 567 0.9017094
5 6 1 w KNG-KNG 811 NA
6 7 1 w 02-02 1 NA
Treat column
2009 Jan 04
1
POSIXct and chron issues with tz
Dear All-
I am trying to merge two data files - they have different date formats
and different times zones. I need to match up the date/time of the
datasets and then invoke a conditional statement, such as: if dataC$mph
is >= 12 then keep dataM$co23 for the corresponding time/date stamp.
snippets of data files:
*dataC.txt*
LST in mph Deg DegF DegF2 % volts Deg
2005 Jul 15
2
Page Views & Icecast logs
hi
i was involved in a webcast for the UK Make Poverty History event on July
2nd and have analyzed my Icecast logs using Sawmill
(http://www.sawmill.net/) which supports Icecast logs:
http://www.sawmill.net/formats/ice_cast.html
looking at the data below i have been asked what the difference is between
'Page Views' and 'Visitors' with regard to Icecast logs:
Page Hits Page
2009 Mar 31
5
how to increase the limit for max.print in R
Hi All,
I am using DNAcopy package in R for copy number analysis of 500K chip.
The final output which I get from DNA copy is too big to be printed in a
file.
So I am getting an error as "reached getOption("max.print") -- omitted
475569 rows "
Can somebody please provide me the pointers with how to increase the limit
for max.print .
Thanks,
Pooja
DISCLAIMER\
2011 Dec 12
3
windrose color ramp issue
Greetings!
I'm having an issue with the windrose produced by the windrose
function from the circular package. For our weather stations in North
Carolina I'm helping with a script which takes hourly wind speed and
direction data to create windroses for our end users. One of the
stations in the mountains frequently reaches wind speed of 40 to 60
mph and in storms can reach wind speed over
2012 Dec 20
3
Optmatch Package Question
Hello ,
My optmatch package is loaded on R and otherwise running fine.
I get an error after lcds successfully completes a logistic regression and
I then try to obtain a propensity score:
pdist <- pscore.dist(lcds)
Error: could not find function "pscore.dist"
Does anyone know if pscore.dist is part of the optmatch package,
or is it contained in another package that I need to
2004 Feb 25
2
LOOCV using R
Can someone help me with performing leave-out-one cross validation using
R (model built is a Cox model)? Thanks.
---------------------------------------------
David Verbel, MPH
Senior Biostatistician
Aureon Biosciences
28 Wells Avenue
Yonkers, NY 10701
Phone: (914) 377-4021
Fax: (914) 377-4001
---------------------------------------------
[[alternative HTML version deleted]]
2009 Dec 05
4
paste adjacent elements matching string
Hi all,
I would like to combine elements of a vector:
vec <- c("astring", "b", "cstring", "d", "e")
> vec
[1] "astring" "b" "cstring" "d" "e"
such that for every element that contains "string" at the end, it is
combined with the next element, so that I get this:
2009 May 13
2
Help with a cumullative Hazrd Ratio plot
Hi R-masters
I need help to make modified cumulative hazard ratio plot.
I need create a common plot but with the number of subjects in risk each
ticks times for two different groups in bottom of plot (I put one
example in attach).
Do you know a routine for this?
Is possible create a routine for this?
In this case with how commands?
Thanks in advance!
--
Bernardo Rangel Tura, M.D,MPH,Ph.D
2009 May 13
2
Multiple ANOVA tests
Hello!!!
I'm trying to do multiple ANOVA tests with R (testing the affect off
different factors on the same response). As a result I get many ANOVA
tables, and I want to extract a list of the "Pr(>F)" from all the tables.
Maybe someone have an idea how to do this?
Thanks
Imri
--
View this message in context:
2008 Jul 18
3
How to cut data elements included in a text line
Hello,
assume I have an "unstructured" text line from a connection. Unfortunately,
it is in string format:
R> x
[1] "\talpha0\t-0.638\t0.4043\t0.4043\t-2.215\t-0.5765\t-0.137\t501\t2000"
How can I extract the data included in this string object "x" in order to
get the elements for the parameter vector called "alpha0", i.e.
-0.638 0.4043 0.0467
2008 Oct 02
4
Load a program at the front end
I want to run a R program, prog.R, interactively. My question is, is
there a way I can start prog.R on the shell terminal when invoking R,
instead of using source() inside R?
TIA,
Gang
2010 Mar 11
2
logistic model diagnostics residuals.lrm {design}, residuals()
I am interested in a model diagnostic for logistic regression which is normally distributed (much like the residuals in linear regression with are ~ N(0,variance unknown).
My understanding is that most (all?) of the residuals returned by residuals.lrm {design} either don't have a well defined distribution or are distributed as Chi-Square.
Have I overlooked a residual measure or would it be