Displaying 20 results from an estimated 1000 matches similar to: "Add Columns and Order for Rbind?"
2005 May 24
2
Missing Data Line Type?
I have a general question. Is there a setting that can be used for a
multiple line type? The situation is that I want a solid line between x
and y points but if the y point is missing, I want a dashed line type to
the next point. In other words, if point 1 to 2 exists, make that line
solid, otherwise, make it dashed up to the next existing x/y point.
Additionally, what plot type would you
2005 Jun 10
2
Default Format for Dates?
Is there anyway to preset date formats? I have a date from a cover.dbf
that is shown as this:
> cover$FINALREPOR
[1] "2003-06-24"
The numeric value in cover$FINALREPOR is 12227. I'd rather not create
another vector to hold the properly formatted date.
When I put this in a WordPerfect merge, I want the date to be June 24,
2003. I could take care of the problem in a
2005 May 13
3
List and Column Names in a Function?
In this simple function, how can I pass strings for index and column names
to the function? I've posted this type of question before and received no
response.
Maybe this example will be easier to understand and troubleshoot.
ds <- function(myds, vec) {myds[[vec]]*2}
ds1 <- c(X=list(1:10), Y=list(11:20))
ds(get("ds1"),get("Y"))
khobson at odot.org
Kenneth Ray
2005 Jun 23
1
Stop Warnings for Invalid Factor Level, NAs generated?
How can I stop the following warning from occuring?
invalid factor level, NAs generated in: "[<-.factor"(`*tmp*`, iseq, value =
structure(1, .Label = "12", class = "factor"))
The Label messages are for "5", "8", "12" and "46". I want the NAs to be
generated as needed.
Is this causing R to slow down by generating the warning
2005 Apr 29
2
Windows List of Folders?
For windows, how can I list only the folders in some folder?
I was thinking that dir() and file.info() with isdir==TRUE being something
that might work.
These folders or directories are numerically named with no dot extension
names or other characters. Typically, these are 3132, 3334, ...
Here is what I tried. The last line is where I need more work.
pData="C:/Myfiles/R/Data/"
setwd
2005 Apr 29
0
Windows list of Folders
Hi Kenneth:
I tried:
list.files(path="c:\\pctexv4\\samples")
and that worked just fine.
Hope this helps!
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: hodgess at gator.uhd.edu
From: khobson at fd9ns01.okladot.state.ok.us
Subject: [R] Windows List of Folders?
X-BeenThere: r-help at
2005 Apr 22
2
Hoaglin Outlier Method
I am a new user of R so please bear with me. I have reviewed some R books,
FAQs and such but the volume of material is great. I am in the process of
porting my current SAS and SVS Script code to Lotus Approach, R and
WordPerfect.
My question is, can you help me determine the best R method to implement
the Hoaglin Outlier Method? It is used in the Appendix A and B of the fo
llowing link.
2005 Jul 01
4
R integration with Microsoft Powerpoint
Please allow me an unusual question.
Is there any way that R can be closely integrated with a Microsoft
Powerpoint presentation? I would like to embed R calculations in
Powerpoint so that I will start Powerpoint, be prompted to enter some
parameters, and an R function will run and return values and graphs.
Thanks,
John
R 2.1.1
windows 2k
John Sorkin M.D., Ph.D.
Chief, Biostatistics and
2005 Jun 30
1
how to call egarch of sas in R
I use R to generate data and I need to estimate the data by egarch (that
doesn't have in R). So how I can call egarch from SAS in R.
Regards,
luck
2005 Jun 29
3
return NA
A<-c(1,2,NA,7,5)
B<-c(3,4,1,4,1)
C<-c(6,5,6,NA,9)
D<-c(8,7,4,6,2)
df1<-cbind(A,B,C,D)
for(i in seq(1,ncol(df1)-1, by=2)) {
ifelse(df1[,i]=="NA",df1[,i+1]=="NA",df1[,] ) }
Tried several variations but none worked. I wish to find any NA's in
column's 1 or 3 and change the numerical value to the right of the "
NA"'s . In this case I
2005 Jul 01
2
the format of the result
I write a function to get the frequency and prop of a variable.
freq<-function(x,digits=3)
{naa<-is.na(x)
nas<-sum(naa)
if (any(naa))
x<-x[!naa]
n<-length(x)
ta<-table(x)
prop<-prop.table(ta)*100
res<-rbind(ta,prop)
rownames(res)<-c("Freq","Prop")
cat("Missing value(s) are",nas,".\n")
cat("Valid case(s)
2005 Jun 07
1
Function inside tapply
I'm new to R and not an experienced writer of programs, which may help
explain my question. I wish to create a table or data frame which
contains the quantiles of the columns in the data frame DF. I wish to
produce a table T where T[1] shows me the quantiles of column DF[1] right
up through the entirety of DF. Tried several approaches with limited
success. This looked like the best
2005 Jun 17
1
Data comparison
Question : Is it possible to create a function, using a for ifelse
function, inside sapply, to compare the values in one data frame to a set
of upper and lower limits in another data frame, same number of columns.,
Take the values which meet the requirements "TRUE" and create a new data
frame or table containing the filtered data? Can you give me a shove in
the correct direction?
2005 Jun 16
3
Excel files first row not being read
hi,
i am using the RODBC package to read excel files using
odbcConnectExcel and susequently sqlFetch to read the contents of the
file.
the file that i use is just a matrix of numbers thats all. no headers
and column names. what happens is that the sqlFetch is not reading my
first row of numbers.
i have tried different combinations of colnames and rownames logical
values but that first row is not
2010 Oct 20
2
Job for senior quantitative analyst in Dublin
Senior Quantitative Research Analyst
Based in Irish Life Investment Managers, Lower Beresford Place, Dublin 1
Irish Life Investment Managers (ILIM), the investment management company within the Irish Life & Permanent Group manages assets of circa EUR30bn and provides fund management services to a large domestic and multi-national client base. We provide investment products to both
2004 Nov 16
2
changing character to a vector name
Dear R People:
I would like to generate a vector/variable name from within a loop to be
passed to a table
function.
This is what I have so far:
>assign("p1",paste("raw3.df$",rw2$V1[3],sep=""))
>p1
[1] "raw3.df$CITIZEN"
>
Essentially, I want to use the raw3.df$CITIZEN along with another value to
generate a table.
However, I'm stuck here. I
2012 Aug 07
1
Unable to download R package
Hi,
I'm new to R. I'm using the R Gui and have tried to install additional packeges.
When I choose Packages/Install package(s) I get the following error...
utils:::menuInstallPkgs() Warning: unable to access index for repository http://cran.ma.imperial.ac.uk/bin/windows/contrib/2.15
Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.15
2004 Nov 29
2
proper way to process dataframe by rows
This is a best practices / style question.
The way I use RODBC is I something like this:
> foo <- sqlQuery(db, "select * from foo")
> apply(foo, 1, function{...})
That is, I use apply to iterate over each result -- row -- in the
RODBC-produced dataframe. Is this how one generally wants to do this?
My concern is that when apply iterates over the rows, it uses
as.matrix()
2005 Apr 29
3
generalized matrix product ?
Is there available in R a generalized inner product or matrix product,
similar to 'outer(x,y, fun)', where one can specifiy an arbitrary function
in place of ordinary multiplication?
Here's my application. I frequently analyze user questionnaires from our
HR/training department. These have questions of the form
"please rate your skill in task X",
and other questions
2004 May 16
4
X100P Ireland Red Alarm (AR Tarzi)
Ahhh this could be my problem! I just checked which
wires on the RJ11 cable had a voltage across them and
it was the yellow and green (3 & 4?). From what
someone posted the other day it's supposed to be
Bumble Bee and Christmas Tree.
I did have to get a technician out to fix my line when
it was first installed because it was dead. Maybe he
wired it up incorrectly or maybe they just do it