similar to: x %>% y as an alternative to which( x > y)

Displaying 20 results from an estimated 5000 matches similar to: "x %>% y as an alternative to which( x > y)"

2009 Jul 16
3
Sylpheed-claws and virtual mailboxes
Hi! Has someone encountered the following problem? What am I doing wrong or does someone know a workaround? Dovecot 1.2.1 on Debian unstable, two namespaces: namespace private { prefix = location = maildir:~/res/Maildir:LAYOUT=fs inbox = yes list = yes } namespace private { prefix = gtd/ separator = / list = yes location =
2012 May 25
4
Problem sourcing file
Hi all, I created a file to define some functions. When I try to source this file, sometimes it works but sometimes I get the following error: >Source(‘File.R’) Error in srcfilecopy(filename, lines, file.info(filename)[1, "mtime"]) : unused argument(s) (file.info(filename)[1, "mtime"]) It works when I just started the R session, but after using some
2009 Jul 03
2
table () for more variables
Dear All, I want to create a table for several variables. As example. I have a dataframe with following data: Gender transport driving 1 0 1 0 1 0 1 0 1 Now I want to create a table in the following form: Gender
2006 Oct 03
1
New versions of Matrix and lme4 packages for R-2.4.0
Versions 0.9975-1 of the Matrix and lme4 packages will soon be available on CRAN for use with R version 2.4.0 or later. Purpose of the packages: The Matrix package provides S4 classes and methods for sparse and dense matrices. The lme4 package provides functions for fitting and assessing linear or generalized linear mixed effects models (also called multilevel models). Like the Matrix package,
2006 Oct 03
1
New versions of Matrix and lme4 packages for R-2.4.0
Versions 0.9975-1 of the Matrix and lme4 packages will soon be available on CRAN for use with R version 2.4.0 or later. Purpose of the packages: The Matrix package provides S4 classes and methods for sparse and dense matrices. The lme4 package provides functions for fitting and assessing linear or generalized linear mixed effects models (also called multilevel models). Like the Matrix package,
2011 Aug 16
1
Fit Gompertz' curve'
Hi, I build a graph taking into account the times: 1, 2,4,6,8,10,12,15,18,21,24,28,32 and 48. Be that the scale of the X axis does not look right. It seems equidistant. (graph attached) What changes have I to do in the following commands so that the scale be correct? interaction.plot(Tempo, Trat, Valor, ylim=c(0, 2), las=1, lty=c(1,2,3,4), lwd=3, bty='l',
2002 Nov 20
0
Plots by subject
Thomas, Thank you for your reply about the for () loop. The as.character advice worked. Sorry for the delay in getting back to?I had to set the project aside for a few weeks. This didn?t work exactly as is for (patient in as.character(1:n)){ pt <- MRN == patient (rest of the function) } But this did for (patient in as.character(levels(MRN))){ pt <- MRN == patient (rest of the function)
2011 Nov 08
1
passing dataframe col name through cbind()
Hi all --- I note that the column name of the first column in a dataframe does not necessarily get passed on when using cbind (example below)? I'm looking for help in clarifying why this behavior occurs, and how I can get all col names, including the first, passed on to the result?while I suspect it's obvious and documented to the cognoscenti, it's puzzling me? Many thanks for any
2005 Dec 24
2
grouping data
Hello R-users/experts, I am new to R- I have a simple question: Let say I have a data set as follows temp:[file attached] the data structure is a follows: sex age female 28 female 53 female 53 female 36 male 42 male 29 male 43 male 36 male 41 Here we are grouping all male value into male and all female value in to female
2010 May 01
2
Average Login based on date
Hi All, I have the data like this : >sample <- read.csv(file="sample.csv",sep=",",header=TRUE) > sample stdate Domain sex age Login 1 01/11/09 xxx FeMale 25 2 2 01/11/09 xxx FeMale 35 4 3 01/11/09 xxx Male 18 30 4 01/11/09 xxx Male 31 3 5 02/11/09 xxx Male 32 11 6 02/11/09 xxx Male 31 1 7 02/11/09
2008 Feb 12
3
help with bwplot
Dear list, I have following data set, which I want to plot the "Scale" variable on the x-axis and "Mean"´on the y-axis for each Ageclass and for each sex. The Mean value of each Ageclass for each sex would be connected by a line. Totally, there should be 6 lines, from which three present the Mean values of each Ageclass for respective sex. Are there any easy ways to do
2006 Jan 04
10
Is Webrick good enough?
Hi all, On the rails list I''ve seen that it''s hard to integrate Rails with Apache (especially apache2), that it''s hard to change the default port (3000), and that Apache runs Rails stuff slowly. Is it reasonable to run Rails stuff on Webrick while simultaneously running other stuff on Apache? How does one simultaneously run two rails applications on Webrick, when
2008 Jul 18
2
column wise paste of data.frames
Hi everybody! I'm sure that I overlook something and feel quite stupid to ask, but I have not found an easy solution to the following problem: Take e.g. the Orthodont data from the nlme package: > head(Orthodont) Grouped Data: distance ~ age | Subject distance age Subject Sex 1 26.0 8 M01 Male 2 25.0 10 M01 Male 3 29.0 12 M01 Male 4 31.0 14 M01 Male
2011 Mar 13
1
troubles with logistic regression
hello everyone, I working on the dataset for my project in class and got stuck on trying to run logistic regression. here is my code: data <- read.csv(file="C:/Users/fieder.data.2000.csv") # creating subset of men fieder.male<-subset(data,data[,8]==1) unmarried.male<-subset(data,data[,8]==1&data[,6]==1) # glm fit agesq.male<-(unmarried.male[,5])^2
2008 Aug 20
4
Removing
I'm trying to remove the elements "No" from the character vector
2008 Nov 17
5
how to calculate another vector based on the data from a combination of two factors
Hi, I have a data set similar to the following State Gender Quantity TX Male 1 NY Female 2 TX Male 3 NY Female 4 I need to calculate cumulative sum of the quantity by State and Gender. The expected output is State Gender Quantity CumQuantity TX Male 1 1 TX Male 3 4 NY Female 2 2 NY Female 4 6 I highly appreciate if someone can give me some hints on solving that in R. Hao -- View this
2013 Apr 18
6
count each answer category in each column
Hey, Is it possible that R can calculate each options under each column and return a summary table? Suppose I have a table like this: Gender Age Rate Female 0-10 Good Male 0-10 Good Female 11-20 Bad Male 11-20 Bad Male >20 N/A I want to have a summary table including the information that how many answers in each category, sth like this: X
2013 Jul 01
1
Male and female signs as subscript in plot
Hello, I'd like to add labels to my plot that include a male or female symbol as subscript. I'm working in Windows Vista and R 3.0.0. I am able to add the male symbol to the plot as regular text (NOT as subscript), e.g. with: mtext("Male\u2642") This displays the word "Male" followed by the male symbol on the plot. But "\u2642" does not work when I try to
2010 Oct 29
2
wilcox.test; data type conversion?
I'm working on a quick tutorial for my students, and was planning on using Mann-Whitney U as one of the tests. I have the following (fake) data grade <- c("MVG", "VG", "VG", "G", "MVG", "G", "VG", "G", "VG") sex <- c( "male", "male", "female", "male",
2017 Jun 16
3
duplicated factor labels.
To extwnd on Martin 's explanation : In factor(), levels are the unique input values and labels the unique output values. So the function levels() actually displays the labels. Cheers Joris On 15 Jun 2017 17:15, "Martin Maechler" <maechler at stat.math.ethz.ch> wrote: >>>>> Paul Johnson <pauljohn32 at gmail.com> >>>>> on Wed, 14 Jun