Displaying 20 results from an estimated 6000 matches similar to: "FW: R Version Problem in using write.foreign+SAS"
2006 Dec 20
1
R Version Problem in using write.foreign+SAS
Hi experts,
I have a problem in Write.foreign command (SAS).
I have a data frame called d.
>d
Datetime
2006-12-01 00:00:00
2006-12-01 00:10:00
2006-12-01 00:20:00
2006-12-01 00:30:00
2006-12-01 00:40:00
>class(d$Datetime)
[1] "POSIXt" "POSIXct"
Then I tried with,
write.foreign(d,"Z:\\try_i.sas7bdat"," Z:\\try_i.sas
2006 Nov 24
1
Fwd: Dates Conversion/write.foreign
---------- Forwarded message ----------
From: Shubha Vishwanath Karanth <shubhak at ambaresearch.com>
Date: Nov 24, 2006 7:54 PM
Subject: Dates Conversion/write.foreign
To: Shubha Karanth <shubhakaranth at gmail.com>, Shubha Vishwanath
Karanth <shubhak at ambaresearch.com>
Hi R experts,
I need an urgent help...
I have an a dataframe caled idat. Below i give a snapshot
2007 Feb 13
5
Fatigued R
Hi R,
Please solve my problem...........
I am extracting Bloomberg data from R, in a loop. R is getting fatigued
by doing this process and gives some errors. I introduced sleep
function. Doing this sometimes I get the results and sometimes not. I
even noticed that if I give complete rest for R (don't open R window)
for 1 day and then run my code with the sleep function, then the
2008 Oct 13
2
SAS Data
Hello everybody,
I would like to read a SAS Data data1.sas7bdat in R! Is this possible?
Thank you a lot in advance ;),
Stefo
2009 Jan 24
1
Calling R from SAS
Can I call R from SAS? I tried the below command in SAS, but not
working...
OPTIONS XWAIT XSYNC;
X "C:\Program Files\R\R-2.7.1\bin\R.exe --no-save -quiet
<""C:\TEMPO\program.r""> ""C:\TEMPO\program.log""";
Had done this before and it was working perfect... But now, not...
Sorry if this query was supposed to be put in SAS mailing
2008 Jul 23
18
Simple... but...
Hi R,
If
x=c(1,3,5)
y=c(2,4,6)
I need a vector which is c(1,2,3,4,5,6) from x and y.
How do I do it? I mean the best way....
Thanks, Shubha
This e-mail may contain confidential and/or privileged i...{{dropped:13}}
2008 Aug 12
7
Between the values
Hi R,
This is a very trivial one....
C=0.1
I want to check whether my value of C is between 0 and 1 exclusively....
I don't want to use (C>0 & C<1). And I can't use a single statement like
(0<C<1). Is there a between function? Or how do we specify from 0 to 1?
Does %in% help me?
Many Thanks,
Shubha
This e-mail may contain confidential and/or
2008 Apr 09
11
Number of words in a string
Hi R,
A quick question: How do we find the number of words in a string?
Example:
C="Have a nice day"
And the number of words should be 4. any built in function or?...
Thanks, Shubha
Shubha Karanth | Amba Research
Ph +91 80 3980 8031 | Mob +91 94 4886 4510
Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com
This e-mail may contain
2008 Jul 08
8
Sum(Random Numbers)=100
Hi R,
I need to generate 50 random numbers (preferably poisson), such that
their sum is equal to 100. How do I do this?
Thank you,
Shubha
This e-mail may contain confidential and/or privileged i...{{dropped:13}}
2006 Jul 13
1
writeForeignSAS and potential extensions
Dear R-devel,
I've made some potential extensions to writeForeignSAS
in 'foreign' that I wanted to pass along if anyone is
interested. I've attached the diff -u output against
the version found in foreign_0.8-15 and an .R file
with my changes. (In this .R file, the function is named
writeForeignSAS7 to simplify testing/comparisons.)
I've tried to alter the current
2008 May 06
2
To preserve the class "Matrix"
Hi,
Suppose
a=matrix(1:9,3,3)
> a
[,1] [,2] [,3]
[1,] 1 4 7
[2,] 2 5 8
[3,] 3 6 9
Now,
> class(a[1:2,])
[1] "matrix"
> class(a[1:3,])
[1] "matrix"
> class(a[,1:2])
[1] "matrix"
> class(a[,1:3])
[1] "matrix"
But,
> class(a[1,])
[1] "integer"
> class(a[,1])
[1]
2006 Dec 02
4
Fwd: Urgent Help in Paste Command
Hi Experts,
I want to see my object as below:
'C:\Program Files\R\R-2.4.0\bin\Rgui.exe'
So I use the paste command. None of the below is working. Could anyone help
me on this?
> paste("'C:\Program Files\R\R-2.4.0\bin\Rgui.exe'")
[1] "'C:Program FilesRR-2.4.0\binRgui.exe'"
> paste("'C:","\","Program
2006 Dec 19
1
Problem in Dates
Hi Experts,
I have a problem in Dates.
I have a zoo object called 'intra'. And the class of index(intra) is
("Chron" "Dates" "Time"). I need to put the index of this zoo object into a
data frame. So I used,
idat<-data.frame(Datetime=as.POSIXlt(index(intra),"GMT"))
But I get the values of 'idat' to be:
"01joulu2006
2006 Nov 16
5
<RBloomberg Package Problem>
Hi R-Experts,
I'm currently using R 2.4.0 in Windows XP. I'm trying to download data
from Bloomberg using the package "RBloomberg", but it fails to install
the three needed packages "zoo", "chron" and 'Rbloomberg". Moreover I
am not able to find "RBloomberg" package as windows binary in CRAN
site as only for MAC it's given. Please
2008 Jul 23
8
sequential sum of a vector...
Hi R,
Let,
x=1:80
I want to sum up first 8 elements of x, then again next 8 elements of x,
then again another 8 elements..... So, my new vector should look like:
c(36,100,164,228,292,356,420,484,548,612)
I used:
aggregate(x,list(rep(1:10,each=8)),sum)[-1]
or
rowsum(x,group=rep(1:10,each=8))
But without grouping, can I achieve the required? Any other ways of
doing
2010 Jan 03
2
Scores in Dimensions in Correspondence Analysis
Hi R,
I was experimenting with the CA package for correspondence analysis.
data(author)
ca(author)
plot(ca(author))
How can I get the values used by the plot for the two axis for biplot?
In other words, how will I be able to obtain the scores in the
dimensions (which are obtained by PCA) of the graphs? Thanks.
Thanks and Regards,
Shubha
This e-mail may contain
2008 May 14
2
dataframes to a list
Hi R,
I have the data frames, data1, data2....data50. Now I want to put all of
these in a single list. But,
>list(data1, data2,.........data50) is very big to write. How do I then
do it?
Thanks,
Shubha
This e-mail may contain confidential and/or privileged i...{{dropped:13}}
2008 Mar 25
3
Dimensions of a List
Hi R,
I have a list,
l=list(list(c(1,2),c(4,5),c(6,7)),list(c(11,22,33),c(44,55,66)))
> l
[[1]]
[[1]][[1]]
[1] 1 2
[[1]][[2]]
[1] 4 5
[[1]][[3]]
[1] 6 7
[[2]]
[[2]][[1]]
[1] 11 22 33
[[2]][[2]]
[1] 44 55 66
How do I know the dimensions of this list?... In other words, how many
sub-lists, sub-sub-lists etc...are there in l? How do I know this?
2010 Jun 17
3
R user interface
Hi R,
I have a an excel file with a lot of data. I need to create an user
interface in R, which has one single screen. It needs to contain a right
pane containing the click buttons for different countries (say). If the
user clicks a country, then a chart needs to be created for that
country, taking the data from Excel. Is this possible and which package
helps me in doing this? Many thanks in
2008 Aug 07
3
Downloading Yahoo data
Hi R,
I am trying to download the data from R. I give the below command.
> library(fImport)
> yahooSeries("IBM")
trying URL
'http://chart.yahoo.com/table.csv?s=IBM&a=7&b=08&c=2007&d=7&e=07&f=2008&
g=d&x=.csv'
Error in download.file(url = url, destfile = file, method = method) :
cannot open URL