Displaying 20 results from an estimated 40000 matches similar to: "run R under DOS prompt"
2001 Mar 07
3
export graph to Word/Excel
Hi,
I have a set of script like this:
----------------------
summary(data)
plot(time, users, type="o", xlab ="Time", ylab="Number
of Users")
----------------------
I type "rterm --slave < script.r > output.doc" and the
graphic doesn't
actually in the output.doc file. How to make the
graphic embedded in Word
or Excel file?
Thanks,
Yu-Ling Wu
2001 Apr 10
1
function not found
Hi,
I have a R script with a funcion in it. When I run
this
script under R enviornment, it works fine. But if I go
to DOS command prompt and type "rterm --slave < foo.r"
it says:
Error: couldn't find function "myFun"
Execution halted
Below is part of my code. Does anyone know why?
Thanks,
Yu-Ling Wu
================================================
2001 Feb 13
1
pass a string to a function
Hi,
I'd like to pass a string to a function as the value
of the argument.
Here is my code. However, it doesn't work. Please help
me with this.
Thanks,
Yu-Ling Wu
-----------------------------------------------------
library(RODBC)
odbcConnect("console") -> myConnect
fun1 <- function(dd1) {
h3 <- sqlQuery(myConnect, "select * from console where
byday =
2001 Mar 14
3
get statistics by group
Hi,
I have a data set look like this:
=================================
Fruit Quty
apple 20
banana 10
orange 17
apple 30
apple 15
orange 26
banana 15
.........and so on ..........
=================================
The level of fruit is 30, that is, there are 30
different fruits. I'd like to compute some simple
statistics for each different fruit and get output
like this:
2001 Feb 13
0
handle date variables
Thanks! This is helpful.
Three more questions.
1. How to convert a string into a numeric value. For
example, convert '20010122' to 20010122.
2. How to convert a string into a date value. For
example, convert 20010122
to 2001 Jan 22, and get its day of the week, i.e.
Monday?
3. How to handle date variables in a loop? How to make
the following codes work? And how users should pass
the
2000 Dec 21
1
RODBC install unsuccessfully
Hi,
I use R under Windows NT. I download "RODBC.zip" and
unzip it to
"e:/R/rm1011/lib/" in order to connect to MySQL. And
then I add an MySQL
ODBC data source in the Control Panel. When I type
"library()" under R,
I can see "RODBC" is one of the packages. However,
when I type "library
(RODBC)", I got an error message like this:
The procedure
2001 Mar 21
5
generate random number
Hi,
I want to pick 3 "integer" random numbers from 1 to
10. How to do this?
Thanks,
Yu-Ling Wu
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2001 Feb 09
1
link R to VB
Hi,
1. How to dynamic link the outputs from R to MS-Word
or MS-Excel?
2. I'd like to develop an VB application and use R as
the "backgroud calculator".
How do I call R and its function in VB?
Thanks,
Yu-Ling Wu
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
2001 Jan 11
4
read data into R with some constraints
Hi,
I have a big data file (over 30,000 records) looks
like this:
100, 20, 46, 70
103, 0, 22, 45
117, -1, 34, 65
120, 15, 0, 25
113, 0, -1, 32
142, -1, -1, 55
.....
I want to read only those records having positive
values in all of the four
columns. That is, I don't want to read record # 3, 5,
and 6 into R. However,
when I type:
read.csv("data.csv", sep=",")
2001 Mar 21
1
convert date/time to numeric
Hi,
I convert a numeric value to date/time format and do
some operations on it. How to convert it back to a
numeric value?
Thanks,
Yu-Ling Wu
==================================================
begin <- 200103131030
EndTime <- strptime(paste(begin), format="%Y%m%d%H%M")
+ 60
end <- ????
(I want end=200103131031 instead of "2001-03-13
10:31:00")
2012 Jul 24
4
Help from DOS Command Prompt
Hi all,
I am new to R.
I downloaded and installed R 2.15.1
I tried typing R.exe --help at the DOS Command line C:\", but I keep
receiving:
[quote]
R.exe is not recognized as an internal or external command
[/quote]
I tried many variations of R.exe --help, but roughly the same response
Any ideas?
thx
w
--
View this message in context:
2002 Jan 02
2
dos command line
All,
I am an Splus user trying to use R for a specific project where the client
needs the programs to be run in R. Before the holidays, I figured out how
to run an R file from the dos command line--it worked great! The command is
"Rterm something filename". I can't remember what it is now, and it is
driving me nuts. Anyone know? I know I'll feel pretty stupid once the answer
2003 Oct 09
1
plotting graphs with Rterm
Hello,
I need to execute R code contained in a file xxx.R from DOS.
The file is really simple, only:
> plot(rnorm(100))
When I launch Rterm from Dos command and then source the file xxx.R it
works, but I need to call the command from a DOS command file *.bat
Using Rterm --slave < xxx.R plots the graph in a postscript file Rplots.ps,
how can I do to get the graph in an R window.
Using a
2003 Jan 15
2
compile problems on solairs 8
Hello,
I am having a problem compiling R versions 1.6.1 or .16.2 on a Solaris 8
machine. It sees to have problems with an X11 module. Here is the
relevant output:
make[4]: Entering directory `/pkg-ling/src/R-1.6.2/src/modules/X11'
gcc -I. -I../../../src/include -I../../../src/include
-I/pkg/X11R5/include -I/usr/local/include -DHAVE_CONFIG_H -fPIC -g -O2
-c dataentry.c -o dataentry.lo
2003 Sep 16
7
Retrieve ... argument values
Dear R users,
I want to retrieve "..." argument values within a function. Here is a small
exmaple:
myfunc <- function(x, ...)
{
if (hasArg(ylim)) a <- ylim
plot(x, ...)
}
x <- rnorm(100)
myfunc(x, ylim=c(-0.5, 0.5))
Error in myfunc(x, ylim = c(-0.5, 0.5)) : Object "ylim" not found
>
I need to retrieve values of "ylim" (if it is defined
2001 Mar 07
0
export graph to Word/Excel):
Colleagues
----------------------------------
On 6 Mar 01,, Yu-Ling Wu wrote (re: [R] export graph to Word/Excel):
> I have a set of script like this:
>
> ----------------------
> summary(data)
> plot(time, users, type="o", xlab ="Time", ylab="Number
> of Users")
> ----------------------
>
> I type "rterm --slave < script.r >
2004 May 21
1
function for running MS-DOS on R
I had downloaded the program that runs on MS-DOS.
Is it possible for MS-DOS to be run in R such as WinBugs1.4?
I wonder whether there is the R function for running MS-DOS from R such as
the 'bug.r' function to make Winbugs practicable in R.
I had heard Rterm.exe that runs on MS-DOS.
However, What I need is to run MS-DOS in R but to run R in MS-DOS.
2004 Aug 13
2
lapply problem
R-help,
I wish to replace NULL elements(or missing) in the following list :
> z2
$cod
mean sd
62.56190 12.65452
$haddock
mean sd
36.61490 11.50365
$ling
mean sd
86.17949 20.43587
$saithe
mean sd
50.275847 5.453606
$whiting
NULL
$"norway pout"
mean sd
13.739623 1.393104
$"great silver smelt"
mean
2006 Nov 05
1
lme4 install error
Dear all,
I'm trying to install lme4 (after having installed R 2.4.0 from source, and
having installed the latest Matrix package). lme4 fails with the following
message:
pedigree.o definition of _lme4_xSym in section (__DATA,__common)
pedigree.o definition of _lme4_ySym in section (__DATA,__common)
make: *** [lme4.so] Error 1
ERROR: compilation failed for package 'lme4'
** Removing
2013 Mar 08
2
ggplot2: modifying line width and background fill color for stat_smooth()
In the example below, from
http://www.ling.upenn.edu/~joseff/rstudy/summer2010_ggplot2_intro.html
I'd like to make (a) the fitted line thicker and (b) change the
background fill color for the confidence
envelope around each fitted line to a low-alpha transparent version of
the same color used
for the separate fitted lines for GENDER, rather than grey for both.
How can I do this?