Displaying 20 results from an estimated 5000 matches similar to: "R sequence function (was: Re: [R] Recursive decreasing sequences)"
2006 Oct 20
2
Recursive decreasing sequences
Hello fellow R's,
I'm sure there must be an easy way to do this. But after digging in the
documentation and thinking about it for a while I couldn't figure it
out. I need to get a decreasing recursive vector in. I mean something
like this: if starting at 2, and ending at 6, the vector should be
2 3 4 5 6 3 4 5 6 4 5 6 5 6 6
An easy way would be to do this
x <-
2006 Nov 23
0
W3C Range specification conceptually flawed?
hi all!
check this one:
<html>
<head>
<title>Range test</title>
</head>
<body>
<div id="myText">FooBarBaz</div>
<script type="text/javascript">
myText = document.getElementById(''myText'').firstChild;
var range1 = document.createRange();
range1.setStart(myText, 3);
range1.setEnd(myText, 6);
var
2012 Jun 20
2
passing function parameters into a 'with' statement to dynamically pick out columns
Hi,
I've built a function to generate plots and would like to be able pass in column names as a parameter. Here's a boiled down version of what I have right now:
pmts <- data.frame(date=c(1,2,3), all=c(5,6,7),maj=c(4,5,6),ind=c(3,4,5))
perc.mktshare <- function(df){
range1 <- floor(min(with(df, 100*ind/all)))
range2 <- ceiling(max(with(df, 100*ind/all)))
2004 Mar 30
1
Where: package licenses
Thanks Thomas and Marc that is what I was looking for.
-Jason
The DESCRIPTION file for a package lists the license; this is also given
in the CRAN entry for each package.
-thomas
Marc Schwartz <MSchwartz@MedAnalytics.com>
03/30/2004 09:02 AM
Please respond to MSchwartz
To: Jason.L.Higbee@stls.frb.org
cc: R-Help
2004 Mar 30
0
Where: package licenses
Note that package.descripton() is deprecated in R-1.9.0. You have to use
packageDescription() instead.
Jim
James W. MacDonald
Affymetrix and cDNA Microarray Core
University of Michigan Cancer Center
1500 E. Medical Center Drive
7410 CCGC
Ann Arbor MI 48109
734-647-5623
>>> Sundar Dorai-Raj <sundar.dorai-raj at PDF.COM> 03/30/04 10:51AM >>>
You can access this from
2011 Oct 21
1
replicating SAS's "proc rank" procedure
Hi try this function ive written
it should be self explantory but let me know if you have any problems.
I've only been using R for a few eeeks so apologies if its not the most
efficient!
rankit2<-function(rankvar,cuts,data,factor) {
ranker<-rankvar
ranker<-0
range<-c(1:cuts)
range2<-range/cuts
range3<-quantile(factor,range2)
over<-length(factor)
for (i in 1:over){
2009 May 23
2
as.numeric(levels(factor(x))) may be a decreasing sequence
Function factor() in the current development version (2009-05-22)
guarantees that levels are different character strings. However, they
may represent the same decimal number. The following example is derived
from a posting by Stavros Macrakis in thread "Match .3 in a sequence"
in March
nums <- 0.3 + 2e-16 * c(-2,-1,1,2)
f <- factor(nums)
levels(f)
# [1]
2006 Oct 11
0
FW: impossible escape?
D'oh!
I've been using cat() but somehow never got the bigger picture.
Thanks!!!
Charles Annis, P.E.
Charles.Annis at StatisticalEngineering.com
phone: 561-352-9699
eFax: 614-455-3265
http://www.StatisticalEngineering.com
-----Original Message-----
From: Marc Schwartz [mailto:MSchwartz at mn.rr.com]
Sent: Wednesday, October 11, 2006 1:45 PM
To: Charles.Annis at
2013 Jul 15
0
ayuda con stringr
Hola,
Una forma de hacerlo es así...
Pensando en que el separador de cada palabra es el "." y que la provincia
es la cuarta palabra.
> cad.ena <- c(
+ 'm.1.p.Álava'
+ ,'m.1.p.Albacete'
+ ,'m.2.p.Alicante'
+ ,'m.1.p.Almería'
+ ,'m.3.p.Asturias'
+ ,'m.1.p.Ávila'
+ ,'m.1.p.Badajoz'
+ ,'m.1.p.Baleares (Illes)'
+
2002 Sep 06
1
Main R Project and CRAN sites down?
I am still having a problem accessing CRAN here in Florida (at 9:00 AM EST
Friday morning):
+ install.packages(select.list(a[,1],,TRUE), .libPaths()[1], available=a)}
trying URL `http://cran.r-project.org/bin/windows/contrib/PACKAGES'
unable to connect to 'cran.r-project.org'.
Error in download.file(url = paste(contriburl, "PACKAGES", sep = "/"), :
2000 Jun 26
1
postscript error
I'm using R version 1.1.0 with Redhat 6.2 in a Dual-Pentium
When I type
postscript()
I have the next error:
-- Error in old$command == "default" : comparison (1) is possible only
for vector types
I have updated R next week using the rpm package
http://www.stat.math.ethz.ch/CRAN/bin/linux/redhat/6.x/i386/R-base-1.0
.0-2.i386.rpm
I know that postscript() has new features, but I
2004 Dec 20
1
RE: [R] SAS or R software
What version of GCC?
We user GCC 3.4.0.
-G
> -----Original Message-----
> From: Marc Schwartz [mailto:MSchwartz@MedAnalytics.com]
> Sent: Monday, December 20, 2004 4:30 PM
> To: Warnes, Gregory R
> Cc: Paul Murrell; Jain, Nitin; R-Devel; Frank E Harrell Jr
> Subject: RE: [Rd] RE: [R] SAS or R software
>
>
> On Mon, 2004-12-20 at 16:13 -0500, Warnes, Gregory R wrote:
2001 Dec 12
1
Re: R-Help List Transmit Time
I answer publicly, since this is something like a moderatly FAQ
>>>>> "Marc" == Marc Schwartz <MSchwartz at medanalytics.com> writes:
Marc> Question: Is it typical for messages posted to the R
Marc> help list to take on the order of 2.5 hours to be
Marc> transmitted to some subscribers after being sent?
yes, it is.
Marc> The reason
2004 Jun 09
0
gregmisc 1.11.2 including read.xls()
Release 1.11.2 of the gregmisc() package of functions is now available on
CRAN at http://cran.r-project.org/src/contrib/Descriptions/gregmisc.html for
both Unix and Windows systems.
The most notable enhancement provided by this release is:
- read.xls(), a function to read Microsoft Excel files by
translating them to csv files via the xls2csv.pl script has
been added. I've also provided
2004 Jun 09
0
gregmisc 1.11.2 including read.xls()
Release 1.11.2 of the gregmisc() package of functions is now available on
CRAN at http://cran.r-project.org/src/contrib/Descriptions/gregmisc.html for
both Unix and Windows systems.
The most notable enhancement provided by this release is:
- read.xls(), a function to read Microsoft Excel files by
translating them to csv files via the xls2csv.pl script has
been added. I've also provided
2007 Jun 21
1
mgcv: lowest estimated degrees of freedom
Dear list,
I do apologize if these are basic questions. I am fitting some GAM
models using the mgcv package and following the model selection criteria
proposed by Wood and Augustin (2002, Ecol. Model. 157, p. 157-177). One
criterion to decide if a term should be dropped from a model is if the
estimated degrees of freedom (EDF) for the term are close to their lower
limit.
What would be the
2003 Apr 03
1
Re: Outbound e-mail slow from R servers?
>>>>> "Marc" == Marc Schwartz <mschwartz@medanalytics.com>
>>>>> on Thu, 03 Apr 2003 09:24:20 -0600 writes:
Marc> Martin,
Marc> Not sure if you are aware of this, but since yesterday
Marc> there seems to be multi-hour delays in outbound e-mail
Marc> from r-help and r-devel. Inbound mail seems to show
Marc> up
2003 Apr 03
1
Re: Outbound e-mail slow from R servers?
>>>>> "Marc" == Marc Schwartz <mschwartz@medanalytics.com>
>>>>> on Thu, 03 Apr 2003 09:24:20 -0600 writes:
Marc> Martin,
Marc> Not sure if you are aware of this, but since yesterday
Marc> there seems to be multi-hour delays in outbound e-mail
Marc> from r-help and r-devel. Inbound mail seems to show
Marc> up
2004 Aug 17
2
Re: Thanks Frank, setting graph parameters, and why social scientists don't use R
First, many thanks to Frank Harrell for once again helping me out. This actually relates to the next point, which is my contribution to the 'why don't social scientists use R' discussion. I am a hybrid social scientist(child psychiatrist) who trained on SPSS. Many of my difficulties in coming to terms with R have been to do with trying to apply the logic underlying SPSS, with dire
2003 Jun 12
0
SP? Re: Rounding problem R vs Excel
Hi again Sam,
Sorry for not replying sooner. I have been ignoring everything for a
while to work on the AMMP analysis tool and the continuing saga of
migrating the legacy AMMP data. Our consultant has written some
programs that take a VERY long time to run :(
Anyway, I now know Java and a certain amount of JSP.
I hope to be able to get around to this soon. It is all a bit hard
now with our