similar to: grep in version 1.8 (PR#4231)

Displaying 20 results from an estimated 4000 matches similar to: "grep in version 1.8 (PR#4231)"

2004 Jun 06
4
Request help writing a function
I have been wrestling with this function for quite a while, and am not making headway. 1) I want to apply a function to the following columns of a dataframe: myfunction. <- apply(ph5028[,c(83:107)],2,function(x) ... 2) Within each of the above columns there is a single numeric code, 1, 2 or 3 or an NA. 3) My goal is to determine the percent of time each person used a 2 code. So if a person
2005 Aug 25
1
Attempting to recode elements contained in a list
Hello R-Masters, I have a list 's' with three elements, as shown below. I want to recode a.a, a.a2, and a.a3 to NA if the value in a.a is less than 3. I reivewed my Modern Applied Statistic Book, the online help and did some searching of R-help on the internet. I explored unlist and as.list.data.frame in an attempt to isolate the third element of the list s, but this was not helpful.
2003 Oct 07
3
Problem getting an ifelse statment to work
This is a "long" way; i.e., not necessarily efficient: > qs2 [1] 2 1 1 4 4 4 1 1 1 4 2 4 3 1 4 3 3 2 4 3 > qs9 [1] 4 4 1 3 4 3 1 3 1 4 1 2 3 3 4 4 1 4 2 3 > decision <- function(a, b) { + if (a == 1 || b == 1) return(1) + if (a == 2 || b == 2) return(2) + if (a == 3 || b == 3) return(3) + if (a == 4 || b == 4) return(4) + NA + } > mapply(decision,
2004 Apr 03
3
Seeking help for outomating regression (over columns) and storing selected output
Hello, I have spent considerable time trying to figure out that which I am about to describe. This included searching Help, consulting my various R books, and trail and (always) error. I have been assuming I would need to use a loop (looping over columns) but perhaps and apply function would do the trick. I have unsuccessfully tried both. A scaled down version of my situation is as follows:
2003 Aug 18
1
Would like to apply a weight variable to the summary function in Hmisc
Hello, In the Hmisc package, functions describe and summarize can explicitly take a weight variable. My question is can a weight variable be applied when using 'summary'? For example, using...summary(var1 ~ var2) I would like to weight the data by var 3 (same length). Is this possible? Thanks a lot. Greg Blevins The Market Solutions Group, Inc.
2004 Dec 21
2
How to display each symbol in a different color using plot with summary.formula.reverse
Dear R Masters, I have searched high and low (the help archives and my various R reference material and help files) for a solution to what appears to me to be quite a simple problem. In the following syntax, variable n10 has three levels. I would like the symbols that appear in the graph for these three levels to be different colors. The best I have been able to do is to have the Key display
2004 Mar 04
4
A file manipulation question
Hello R experts, The following problem outstrips my current programming knowledge. I have a dataframe with two fields that looks like the following: ID Contract 01 1 01 1 02 2 02 3 02 1 03 2 03 2 03 2 03 1 03 1 03 1 etc... I would like to end up with a dataframe with one row per ID where the value in the contract field would be the
2004 Oct 06
8
Dataframe manipulation question
Hello, I have a data frame that has three fields. Resp# ActCode ProdUsed 100 3 2 100 3 2 100 4 3 100 4 3 101 3 6 102 2 1 102 3 1 103 5 1 103 5 1 103
2006 May 15
1
Trying to get values to display on horizontal barchart
Hello, R 2.3.0 Windows XP I have spent quite a bit of time trying to resolve my problem below, which included a R site search. The "vertical bars" syntax below produces a vertical bar chart with the values displayed above each bar. I want to cast this graphic horizontally, but I have not been able to arrive at a suitable outcome. The best I have been able to do, using the second block
2005 Dec 09
1
local source packages install from within R session - cross-platform
I realize that others have struggled with this issue...i.e. http://tolstoy.newcastle.edu.au/~rking/R/help/05/01/9826.html i am on os.x 10.4 w/ R2.2, and am (perhaps foolishly) also on this quest... i would like to be able to install downloaded source (tar.gz'd) files from within an R session, and have it work in a X-platform way..i am often not connected to the internet and have libraries
2003 Jan 06
2
R and file size
I will be involved with an analysis based on a file that will be roughly 25 meg. Assuming I have enough memory, is their any limitations to using R on a file this large. Thank you, Gregory L. Blevins Vice President, Partner The Market Solutions Group, Inc. gblevins at marketsolutionsgroup.com Office phone: 612 392-3163 Cell phone: 612 251-0232
2009 Jan 08
1
library error on start up, error on update packages
Hello, I am unable to update packages. I am running R version 2.8.1 (2008-12-22) under VISTA. When I start R I get the following error: Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. Error in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,
2004 Jul 15
2
contriburl argument to install.packages
Dear list members, I can't figure out how to specify the contriburl argument to install.packages() properly when the packages to be installed are in a directory on my local machine. I have in mind a command something like install.packages(missing.packages, contriburl=directory, lib=.libPaths()[1]) Where missing.packages is a character vector of package names (without versions) and
2011 Sep 20
2
update.packages() as ordinary user, /usr/lib/R/site-library is not writable
I am moving from windoze on a Dell laptop to Debian but I seem to have hit a snag for R. I managed to find the information to point an /etc/apt/sources.list entry at my local CRAN repository and have installed R 2.13.1 for squeeze from the Bristol UK repository. I installed a number of the additional R packages using synaptic which reported no errors but when I run my first
2008 Jul 16
1
Help Updating and Installing R Packages
Hi Everyone, I have a few fairly basic questions about upgrading and installing R packages. First off, I am using Ubuntu Hardy Heron and have R 2.7.1 installed and working perfectly. I usually access R via Emacs ESS interface which I am still trying to get the hang of. My questions and issues are as follows: Question 1: I started R and wanted to upgrade the installed R packages. So, I issue the
2005 Mar 14
2
Problem updating mgcv package
Hi All: I tried to update the package mgcv from my current version 1.1-8 to mgcv version 1.2. Using the command update.packages("mgcv") to update mgcv failed in my computer and the returning message was: "Error in old.packages(lib.loc=lib.loc, contriburl=contriburl, method=method, :no installed.packages for (?invalid) lib.loc=mgcv" When I typed installed.packages(), I got
2005 Apr 26
1
Problems installing and updating packages for 2.1.0 on Windows 2000
Hello, I am running R 2.1.0 on Windows 2000. When I attempt to install or update packages, regardless of whether I use the menu or command line, I get the following error. > utils:::chooseCRANmirror() > utils:::menuInstallPkgs() Warning message: unable to connect to 'cran.cnr.Berkeley.edu' on port 80. Warning: unable to access index for repository
2006 Apr 27
1
deleting rows with the same ID if any meet a condition
Hello R masters, This request is being made after searching through archive mailing list. I have a "many" table in a medical application where each injury a person suffers is recorded as a separate row. In my toy example below it means respondent #1 had three injuries and so on. If x2 equal 2 then I want to delete all the rows for that person from the dataframe--see Before and After
2010 Jul 12
1
errors from update.packages()
Running R.2.11.1, debian linux, I tried to update.packages as root within R and get errors for cairoDevice and latticeExtra I don't know how to fix. For cairoDevice, I don't know what gtk+2.0 is; for latticeExtra, I'm surprised that R cannot find RColorBrewer built for R 2.10+ What to do? > old.packages() Package LibPath Installed Built
2004 Mar 06
1
problem with install.packages and update.packages
Dear all, I am working with MS Windows XP Pro (latest update) and a pre-compiled version of R: > version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 1 minor 8.1 year 2003 month 11 day 21 language R I meet a strange problem with install.packages and update.packages (called from the menu), that did not occur until