Displaying 20 results from an estimated 1148 matches for "mary's".
Did you mean:
mark's
2008 Nov 08
2
Data Manipulation, add frequency index
Hi, there,
I have a simple data manipulation question for you. Thank you for your help!
Suppose that I have this data about people appearing in a class
Mary
Mary
Mary
Sam
Sam
John
John
John
John
Then I want to find out what exact time(s) the student appears at the
moment such as
Mary 1
Mary 2
Mary 3
Sam 1
Sam 2
John 1
John 2
John 3
John 4
the fifth row shows tha Sam show the second times at the that moment.
How can I manipulate the data in this wa...
2009 Nov 22
2
Help with indexing
...issing something very elementary here, and I don't seem to get it from the help pages of the ave, seq and seq_along functions, so I wonder if you could offer a quick help.
To use an example from an earlier post on this list, I have a dataframe of this kind:
dat = data.frame(name = rep(c("Mary", "Sam", "John"), c(3,2,4)))
dat$freq = ave(seq_along(dat$name), dat$name, FUN = seq_along)
dat
name freq
1 Mary 1
2 Mary 2
3 Mary 3
4 Sam 1
5 Sam 2
6 John 1
7 John 2
8 John 3
9 John 4
What I need is another column assigning a number to ea...
2010 Oct 07
3
aggregate text column by a few rows
Hi, R function aggregate can only take summary stats functions, can I
aggregate text columns? For example, for the dataframe below,
> a <- rbind(data.frame(id=1, name='Tom',
hobby='fishing'),data.frame(id=1, name='Tom',
hobby='reading'),data.frame(id=2, name='Mary',
hobby='reading'),da...
2009 Mar 26
2
Analogy for %in% for the whole columns (rather than individual values)
Hello!
I have a matrix a with 2 variables (see below) that contain character strings.
I need to create a 3rd variable that contains True if the value in
column x is equal to the value in column y. The code below does it.
a<-data.frame(x=c("john", "mary", "mary",
"john"),y=c("mary","mary","john","john"))
a$x<-as.character(a$x)
a$y<-as.character(a$y)
a$equal<-NA
for(i in 1:nrow(a)) {a[i,3]<-a[i,1] %in% a[i,2]}
I was wondering if one can do it faster, without doing it row-...
2010 Mar 09
5
data frame select max group by like function
Hi, I have a data frame with 3 columns: ID, year and score. How can I
select for each unique ID, the year that has the max score? For
example, for data frame
ID, year, score
tom, 1995, 88
rick, 1994, 90
mary, 2000, 97
tom, 1998, 60
mary, 1998,100
I shall have
ID, year, score
tom, 1995, 88
rick, 1994, 90
mary, 1998,100
Thanks,
Richard
[[alternative HTML version deleted]]
2011 Jul 27
2
lmtp multiple recipients fail
...rrectly
but the next recipients do not. ?ltmp apparently tries to create a
link from the subsequent recipients' mail store to the first recipient
mail store and fails. This returns 451 smtp codes to the sender which
then resends at some later time. Please see below for users jerry,
steve, and mary. The message to jerry gets written but not steve or
mary:
ul 27 11:24:41 testmailserver dovecot: lmtp(12412): Debug: none:
root=, index=, control=, inbox=
Jul 27 11:24:41 testmailserver dovecot: lmtp(12412): Connect from 143.112.53.4
Jul 27 11:24:41 testmailserver dovecot: lmtp(12412): Debug: aut...
2007 Mar 26
1
data-frame adding/deleting column
Hallo,
I have got an existing data frame and want to add a new column. The
existing data frame was created like this:
> df <- rbind( c("Fred", "Mary", 4), c("Fred", "Mary", 7),
+ c("Fred", "Mary", 9), c("Barney", "Liz", 3),
+ c("Barney", "Liz", 5) )
> df <- data.frame(df)
> colnames(df) <- c("Father", "Mo...
2010 Apr 02
2
panel data
Hello, I have an unbalanced panel data set that looks like:
ID,YEAR,HEIGHT
Tom,2007,65
Tom,2008,66
Mary,2007,45
Mary,2008,50
Harry,2007,62
Harry,2008,62
James,2007,68
Jack,2007,70
Jordan,2008,72
That is, James, Jack, and Jordan are missing a YEAR.
Is there any command that will "fill in" the missing YEAR such that the end
result will be balanced and look like:
ID,YEAR,HEIGHT
Tom,2007,65...
2010 Jun 08
6
Out of Office
I will be out of the office starting
Wed June 9th and returning Wed June 16th.
Please contact Mary at mary at accessgate.net cell 407-267-1463
or Jonathan at jsnyder at accessgate.net cell 407-267-0056
or call our main number 888-227-9337.
2013 Apr 30
5
Unaible to create DomU Guest
...ooks
Done
No role scripts were specified.
Skipping
Creating Xen configuration file
Done
Setting up root password
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
All done
Logfile produced at:
/var/log/xen-tools/Marie-DHCP.log
Installation Summary
---------------------
Hostname : Marie-DHCP
Distribution : squeeze
IP-Address(es) : 192.168.1.3
RSA Fingerprint :
25:46:6c:76:3a:39:fc:7a:bb:7b:31:33:9c:7f:30:09
Root Password : N/A
A # locate Marie shows:
root@debian:/home/dorian/Téléchargements/xen-4.2.1# locate Marie
/de...
2011 Jul 04
1
placing multiple rows in a single row
Dear people from the R help list,
I have a question that I can't get my head around to start answering,
that is why I am writing to the list.
I have data in a format like this (tabs might look weird):
John A1 1 0 1
John A2 1 1 1
John A3 1 0 0
Mary A1 1 0 1
Mary A2 0 0 1
Mary A3 1 1 0
Peter A1 1 0 0
Peter A2 0 0 1
Peter A3 1 1 1
Josh A1 1 0 0
Josh A2
Josh A3 0 0 0
I want to convert it into a format where variable rows from a si...
2007 Oct 09
2
read sas data into R
Hi
I am having trouble using read.ssd. Can someone help?
The code that I have written is
*sashome<-"C:/Mary/Datasets"*
*read.ssd(read.ssd(file.path(sashome, "core", "sashelp"), "surv_1v",*
*sascmd = file.path(sashome, "sas.exe"))*
Here the path that I have given is correct, where the dataset
surv_1v.sas7bdat is kept. The message that R gives me is this:
*SAS...
2011 Feb 19
0
Samba ACLs and NFS ACLs:Differing results
I have two users on my network, Mary and Bob, who work together in a
shared share. They both belong to the group Accounting. Bob is a savvy
Linux user who accesses the share via NFS4. Mary toils away using
Windows accessing the share via the Samba server. Mary will create a
directory on the share and dump a number of files in which Bo...
2008 May 25
3
naming components of a list
Hi
I have a character vector with thousands of names which looks like this:
> V=c("Fred", "Mary", "SAM")
> V
[1] "Fred" "Mary" "SAM"
> class(V)
[1] "character"
I would like to change it to a list:
> L=as.list(V)
> L
[[1]]
[1] "Fred"
[[2]]
[1] "Mary"
[[3]]
[1] "SAM"
but I need to name the compon...
2012 Sep 13
1
Parsing "back" to API strcuture
...quot;01\",\"event_2_arm_1\",\"John\",\"2012-09-02\",\"abc\",\"123\",1\n\"01\",\"event_3_arm_1\",\"John\",\"2012-09-10\",\"\",\"\",2\n\"02\",\"event_1_arm_1\",\"Mary\",\"1951-09-10\",\"def\",\"456\",2\n\"02\",\"event_2_arm_1\",\"Mary\",\"1978-09-12\",\"\",\"\",2\n", "`Content-Type`" = structure(c("text/html", "utf-8"), .Names = c(&qu...
2005 Aug 11
2
Converting strings with internal delimiters into lists
...e not
yielded any hints.
I have many fields in my dataset that participants
entered as "free lists" - i.e., the field constitutes
a varying number of names each separated by a
delimiter. The resulting data frame might look
something like:
testtable<-
as.data.frame(cbind(c("Joe,Mary,Jane","Mary"),c("Fred,Joe","Pete,Joe,Mary,Fred")))
In actuality the names are typically multi-word
organization names, but you get the idea...
What I need to do is to convert these text strings
into lists comprised of the elements separated by the
commas so that...
2007 Jun 28
2
restructuring matrix
Hi all,
let's say I have matrix
People Desc Value
Mary Height 50
Mary Weight 100
Fanny Height 60
Fanny Height 200
Is there a quick way to form the following matrix?
People Height Weight
Mary 50 100
Fanny 60 200
(Assuming I don't know the length of people/desc and let's say these are...
2013 Apr 13
1
Reshaping Data for bi-partite Network Analysis [SOLVED]
...pink111@yahoo.com>
> Hi,
> Try this;
> library(reshape2)
> res<-dcast(Input,people~place,value.var="time")
> res[is.na(res)]<-0
> res
> # people beach home school sport
> #1 Joe 5 3 0 1
> #2 Marc 0 4 2 0
> #3 Mary 0 0 4 0
>
> #or
> xtabs(time~.,Input)
> # place
> #people beach home school sport
> # Joe 5 3 0 1
> # Marc 0 4 2 0
> # Mary 0 0 4 0
>
> A.K.
>
>
>
> ________________________________
&...
2013 Apr 13
2
Reshaping Data for bi-partite Network Analysis
Hello
I have a dataset of people spending time in places. But most people don't
hang out in all the places.
it looks like:
> Input<-data.frame(people=c("Marc","Marc","Joe","Joe","Joe","Mary"),
+ place=c("school","home","home","sport","beach","school"),
+ time=c(2,4,3,1,5,4))
> Input
people place time
1 Marc school 2
2 Marc home 4
3 Joe home 3
4 Joe sport 1
5 J...
2010 Oct 06
3
tapply output
...om the tapply function
formatted so that it can be made into a nice table. Below is my question
written in R code. Does anyone have any suggestions? Thank you. Geoff
#Input the data;
name <- c('Tom', 'Tom', 'Jane', 'Jane', 'Enzo', 'Enzo', 'Mary', 'Mary');
year <- c(2008, 2009, 2008, 2009, 2008, 2009, 2008, 2009);
group <- c('A', 'A', 'B', 'B', 'A', 'A', 'B', 'B');
class <- c(0, 0, 0, 0, 1, 1, 1, 1);
height <- c(62, 63, 59, 58, 67, 66, 70, 71);
#Combin...