Displaying 20 results from an estimated 100 matches similar to: "Recoding dates to session id in a longitudinal dataset"
2009 Apr 21
3
Deleting rows or cols that do not meet cut off
How can I delete both rows and columns that do not meet a particular cut off value.
Example:
> d <- rbind(c(0, 1, 6, 4),
+ c(2, 5, 7, 5),
+ c(3, 6, 1, 6),
+ c(4, 4, 4, 4))
> f <- as.matrix(d)
> f
[,1] [,2] [,3] [,4]
[1,] 0 1 6 4
[2,] 2 5 7 5
[3,] 3 6 1 6
[4,] 4 4 4 4
I would like to delete all
2007 Mar 06
2
how to edit my R codes into a efficient way
Hello, Everyone,
I am a student an a new learner of R and I am trying to do my homework
in R. I have 10 files need to be read and process seperately. I really
want to write the codes into something like "macro" to save the lines
instead of repeating 10 times of similar work.
The following is part of my codes and I only extracted three lines for
each repeating section.
data.1 <-
2013 Dec 17
3
In-string variable/symbol substitution: What formats/syntax is out there?
Hi,
I'm try to collect a list of methods/packages available in R for doing
in-string variable/symbol substitution, e.g. someFcn("pi=${pi}"),
anotherFcn("pi=@pi@") and so on becomes "pi=3.141593". I am aware of
the following:
** gsubfn() in the 'gsubfn' package, e.g.
> gsubfn( , , "pi = $pi, 2pi = `2*pi`")
[1] "pi = 3.14159265358979,
2006 Nov 29
1
Extract some character from a character vector of length 1
the content of th character vector (of length 1) is as follows:
a <- "something2 ....pat1 name1 pat2 something2....pat1 name2
pat2....pat1 name3 pat2 "
I would like to extract the character bewteen pat1 and pat2. That's to
say, I would like to get a vecter of c("name1", "name2","name3").
What I did is use strsplit() twise. But I wonder if there
2003 May 14
2
number of patients in a hospital on a given date
Dear R-users!
I am using R 1.7.0, under Windows XP.
Having some hospital discharge data (admission date and discharge date for
each patient), I want to get the number of patients in the hospital on a
given date.
My data look like (simple example):
> x <- data.frame(patid=c("pat1", "pat2"), adm.date = c("15.03.2002",
"16.03.2002"),
2010 Mar 29
1
how to prove that the factor makes no difference
Dear R-helper,
Please suggest some methods for my question below.
We measured the amount of protein A in patient blood in pre-treatment and
post-treatment condition from 32 patients.
--------------------------------------------
Pre-treatment Post-treatment
Pat1 25 28
Pat2 19 15
Pat3 94
2007 Jan 24
2
keep track of selected observations over time
Dear all,
Attached is a description of my data, graph and the problem which I need help with. Hope you have time to open the file and help me out.
Many thanks,
Jenny
---------------------------------
2009 Oct 26
1
regular expressions
Dear list,
I have the following text to parse (originating from readLines as some
lines have unequal size),
st = c("START text1 1 text2 2.3", "whatever intermediate text", "START
text1 23.4 text2 3.1415")
from which I'd like to extract the lines starting with "START", and
group the subsequent fields in a data.frame in this format:
text1 text2
2010 Oct 21
2
nested anova
Hello all,
Can any of you R gurus help me out? I?m not all that great at stats to
begin with, and I?m also learning the R ropes (former SAS user).
Here?s what I need help with? I have a nested sample design and ran a
nested anova, but I don?t know how to interpret the results
habitat (four different types) is nested in site (three types), and site is
nested in gear (two types)
2011 Oct 04
1
Question about linear mixed effects model (nlme)
Hi,
I applied a linear mixed effect model in my data using the nlme package.
lme2<-lme(distance~temperature*condition, random=~+1|trial, data) and then
anova.
I want to ask if it is posible to get the least squares means for the
interaction effect and the corresponding 95%ci. And then plot this values.
Thank you
Panagiotis
--
View this message in context:
2009 Dec 03
3
Three-dimensional (3D) movement using 'R'
Hi Everyone,
I have a question regarding the construction of 3D graphs in 'R', BUT
these graphs also need to illustrate movement (with time) of the
prostate gland (using radiological techniques). I am not sure how to do
this in 'R' although I'm sure there is some way of doing it.
Below, I have copied and pasted some of the data with which I'm working
on. The data
2005 Jan 13
6
Voice Mail Notification
Hi,
Here's the deal. When someone leaves me a voicemail message I want Asterisk to call me on my cellphone by dialing my cellphone number and tell me I have a message. Is this possible? Can anyone cite examples? Most commercial voicemail systems produced in the last 10 years can do this. Any help would be much appreciated.
Regards,
Mike
-------------- next part --------------
An HTML
2005 Nov 16
1
PPC package-ppc.read.raw.nobatch (PR#8316)
Full_Name: Martin O'Gorman
Version:
OS:
Submission from: (NULL) (84.176.63.149)
I have been looking at the PPC package and have a question. As the input data is
comma separated, shouldn?t the command to read in the raw (no batch) mass spec
data indicate that sep=?,? (marked below) ? Otherwise, the data read in is the
pair of values (m/z,intensity). It is not obvious why that should be.
2006 Aug 15
0
Help with workaround for: Function '`[`' is not in thederivatives table
Earl F. Glynn asks:
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Earl F. Glynn
> Sent: Tuesday, 15 August 2006 8:44 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Help with workaround for: Function '`[`' is not in
thederivatives table
>
> # This works fine:
> > a <- 1
2007 Jan 25
1
X-UID gaps cause Dovecot/IMAP to hang
Hi,
When the Dovecot 1.0.rc19 IMAP server encounters X-UID headers with
gaps in them, it hangs indefinitely. I've attached a sample mailbox (in
mbox format) which repeatably exhibits this behavior. The mbox contains
only three messages with the following X-UIDs in order: 774, 785, 787.
If I remove the X-UID headers from each message, Dovecot handles the
mailbox without any problems. UW-IMAP
1999 Jul 01
2
Samba shares accessible from Win98 but not WinNT
The subject line says it all really. I'm running Samba 2.0.4.b on FreeBSD,
sharing a tree as I normally do (we use samba on about a dozen machines so
I'm reasonably familiar with it). This one particular machine is not
accessible from Windows NT Workstation 4.0 clients. It works fine for
Windows 95 and Windows 98 clients.
The machine does not show up in the Network Neighborhood for
2009 Jan 27
5
v1.1.10 released
http://dovecot.org/releases/1.1/dovecot-1.1.10.tar.gz
http://dovecot.org/releases/1.1/dovecot-1.1.10.tar.gz.sig
v1.1.9 wasn't such a great release. Once again: Would be great if
someone started a proper testing suite so releases could be tested..
- Maildir: Keyword handling was somewhat broken in v1.1.9
- userdb prefetch was broken with blocking passdbs in v1.1.9
- dict process didn't
2009 Jan 27
5
v1.1.10 released
http://dovecot.org/releases/1.1/dovecot-1.1.10.tar.gz
http://dovecot.org/releases/1.1/dovecot-1.1.10.tar.gz.sig
v1.1.9 wasn't such a great release. Once again: Would be great if
someone started a proper testing suite so releases could be tested..
- Maildir: Keyword handling was somewhat broken in v1.1.9
- userdb prefetch was broken with blocking passdbs in v1.1.9
- dict process didn't
2003 Jun 11
8
Voicemail notification
Besides email notification, is there another way to get asterisk notify
the user that they have a message?
Example: Some analog phones have a blinking light that lets the user
know that they have a voicemail message.
Is asterisk capable of doing this?
2005 Aug 11
8
Newbie Question: Building an Asterisk system to replace an old PBX but using existing phone
I have a brief from a local hotel to build a PBX using Asterisk but they
want to use their exisiting telephones and wiring from an old PBX that
no longer works.
Basically, I can build the system but an looking for a card that will
allow for upto 20 extensions to be wired into the back of the PC. Doeas
anyone know of a solution to this
Sean--
ICQ: 679813 FidoNet: 2:263/950
Jabber: