Displaying 20 results from an estimated 2000 matches similar to: "Subsetting data by date"
2008 Jul 30
2
Bizarre - R crashes on merge
Hi all,
I have a large data.frame, 1530 observation with 6 columns. I want to
merge a 7th column, a transformation of the response variable (hospital
admissions), namely
trans<-sqrt(copd$admissions+0.25)
trans<-data.frame(trans)
And now when I do
copd2<-merge(copd,trans)
(copd being my original data.frame), R either crashes or is taking an
extremely long time to do the computation. I
2008 Jul 22
4
Opening files from R terminal - appologies
Dear all,
I appologise for cluttering up the list with such a basic question,
however I have been unable to find the answer I want (possibly through
my poor usage of the R help system).
As I am visually impaired and using assistive technology, I think I
would prefer to use R from the terminal mode, i.e. by running rterm.exe
found in the bin directory.
I have managed to set my working
2008 Aug 18
2
Using lag
Dear all,
I am having difficulties using the seemingly-simple function lag.
I have a dataframe with several weather variables (maxitemp,
windspeed, rainfall etc), and the response variable (admissions). The
dataset is fairly large (1530 observations). I simply want to model the
response against a lag of a couple of the explanatory variables, say
maxitemp and rainfall. I would like to look at
2008 Jul 24
4
Just 2 more questions - for now!
Hi all,
Thanks for the help with my previous post.
I have just two more questions for the minute.
I think I said in a previous post that I like to use the terminal,
i.e. run rterm.exe. On exiting the terminal, I am asked if I want to
save the workspace. If I hit y (yes), the workspace is just saved as
.rdata in my working directory, does anyone know how I can name it
directly from the
2008 Aug 21
4
Very confused with class
Hi all,
I am very confused with class.
I am looking at some weather data which I want to use as explanatory
variables in an lm. R has treated these variables as factors (i.e. with
different levels), whereas I want them treated as discretely measured
continuous variables. So I need to reassign the class of these
variables, right?
Indeed, doing
class(southwest$pressure)
(pressure being air
2023 May 17
1
Synthesize low batt (LB) fron SNMP UPS which doesnot support this?
Hi Gene,
On 5/16/23 21:08, gene heskett wrote:
> Take an extra vitamin b1 and start hacking ;o)
yeah ;-)
>
> Seriously, if its that important, do as I did when my last wife was
> dying of COPD.
:( sorry to hear
> Leave your ups setup as is but for under $10k (USD),
> have an automatic home sized standby generator installed to run the
> important stuff,
no room for
2008 Jul 23
6
Using if, else statements
Hi all,
Again I have searched the net and so on, without finding an answer to this
surely simple problem. A short bit of code would be appreciated.
I have a object named `data' with the following column headings.
Date, maxitemp, minitemp, admissions, d.o.w.
Where d.o.w. is day of the week, written "Sun" "Mon" etc.
I just need to scale the Monday admissions by
2007 Jun 12
1
Route Regex Requirement not working properly
I''m trying to get my routes to work properly. Here''s how I''m defining
one of my routes:
map.downloads '':category/downloads'', :controller => ''downloads'', :action
=> ''list_downloads_for_category'', :requirements => {:category =>
DownloadableFileCategory.category_regex}
And here''s the method
2023 May 16
1
Synthesize low batt (LB) fron SNMP UPS which doesnot support this?
On 5/16/23 14:09, Carsten Aulbert wrote:
> Hi Roger,
>
> On 5/16/23 17:00, Roger Price wrote:
>> Hello Carsten, That's what I did but for a much simpler setup. I live
>> in an area with a lot of lightning, and my shutdown criteria is to be
>> able to shut down repeatedly during an electrical storm.? The NOTIFY
>> and CMDSCRIPT and the upssched-cmd logic are
2008 Jul 24
4
Is there an equivalent * operator?
Hi all,
Is there an equivalent to the general * operator in R, where * can
represent any character?
I have a dataset, one column being date, date ranging between
April-September, 97-06. I would like to be able to acquire the data for
a specific month, say September, so that I can take average temperatures
for the month, etc. I thought I would be able to do something like
data.s1 <-
2007 Dec 31
3
Survival analysis with no events in one treatment group
I'm trying to fit a Cox proportional hazards model to some hospital
admission data. About 25% of the patients have had at least one
admission, and of these, 40% have had two admissions within the 12
month period of the study. Each patients has had one of 4
treatments, and one of the treatment groups has had no admissions for
the period. I used:
2008 Nov 10
0
Postdoc Positions Available at Leiden University The Netherlands
Two Postdoctoral fellows (fulltime)
Leiden University, Leiden, The Netherlands
Job description
________________________________________
TOP Institute Pharma (TI Pharma) has granted our proposal to set up a
mechanism-based PK-PD modelling platform. This platform focuses on the
transfer of knowledge from academia to the pharmaceutical industry and
is a collaborative effort of
2008 Sep 08
3
Saving functions
Hi,
Appologies for the simple nature of this question, I am unable to find
the answer in manuals (EG and introduciton to R).
I have written a function in a text editor and saved it with an .R
extension. It is saved in my working directory. How can I run it, do I
need to use source? If so, how do I supply the arguments to the
function? Or does it need to be saved in a particular directory?
2005 Nov 18
1
APC Matrix 5000 UPS
Hello,
I can get nut to work with this UPS using the apcsmart driver, but only
with limited functionality. It is only reporting the OL/OB status and
that's about it. None of the other useful variables such as run time,
load etc are reported and initiating battery tests does not work either.
Has anyone managed to get nut to report more than these variables with a
Matrix type UPS?
I see
2017 Oct 12
2
dual y-axis for ggplot
Hi,
To my knowledge, an excellent of ggplot with a second y-axis is
https://rpubs.com/MarkusLoew/226759
In this example, the author uses two colors for the two lines, but the
line shapes are the same -- both are solid. Could each line have its own
color as well as its own shape? For example, can I make the red line with
the linetype "twodash", while the blue line with the
2009 Jul 09
1
apcsmart and dual environmental sensors
Hi,
We have a several AP9612TH environmental cards (they have 2 probe
connectors) inserted into our APC UPS devices which monitor temperature
and humidity. The apcsmart nut module knows how to query the
ambient.temperature and ambient.humidity using the 't' and 'h' commands
of the UPS (refer to apcsmart.h). The results of the 't' and 'h'
commands are from probe 1.
2009 Mar 17
2
General help on sample size based on recurrent events
Hello,
I have a general help question that some of you might be able able to help.
I would like to design a study (a two group comparison) based on reduction on events(say hospital admissions). In a previous study hospital admission rate of 140 admissions per 72 patients (over a 4 month period) has been observed. That is rate is about 1.9. In order to see the admission rate reduction of 50% over
2008 Aug 29
0
Weighted Regression
Hello,
Firstly let me explain that the nature of what I want to do is actually
beyond my statistical knowledge, having only taken a second year
university stats course last year. Therefore I may have missed the
statistical essence of what I want to do as well as my lack of ability
to do it in R.
I am trying to fit some hospital admissions data to a series of
weather variables. Due to my lack of
2008 Sep 03
2
ANCOVA/glm missing/ignored interaction combinations
Hi
I am using R version 2.7.2. on a windows XP OS and have a question
concerning an analysis of covariance with count data I am trying to do,
I will give details of a scaled down version of the analysis (as I have
more covariates and need to take account of over-dispersion etc etc) but
as I am sure it is only a simple problem but I just can't see how to fix
it.
I have a data set with count
2017 Oct 12
0
dual y-axis for ggplot
Sorry let me clarify.
If I modify the line
p <- p + geom_line(aes(y = air_temp, colour = "Temperature"))
by
p <- p + geom_line(aes(y = air_temp, colour = "Temperature", linetype
="Temperature"))
and
p <- p + geom_line(aes(y = rel_hum/5, colour = "Humidity"))
by
p <- p + geom_line(aes(y = rel_hum/5, colour = "Humidity",