search for: yuling5

Displaying 14 results from an estimated 14 matches for "yuling5".

Did you mean: ruling
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 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:
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 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 Feb 13
0
handle date variables
...odes work? And how users should pass the date arguments to the function? fun1 <- function(firstdate, lastdate) { for ( i in firstdate:lastdate) { do something.... } } fun1(2001/01/22, 2001/01/27) --- Douglas Bates <bates at stat.wisc.edu> wrote: > Yu-Ling Wu <yuling5 at yahoo.com> writes: > > > 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 > > > ------...
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 Feb 28
1
print()
Hi, I've two questions. Please help me. Thanks! --- Question (1) --- When I type: print("School Name") the output is: [1] "School Name" How to get rid of the '[1]' and the double quotes "" and make the output like this: School Name --- Question (2) --- I got the following output by typing "summary(data)". dstuser dstmethod
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")
2001 Mar 30
1
Date format
Hi, I try to convert a string into date format. Please see the following two examples. When the time is midnight (i.e. 00:00:00), R can't convert it correctly and get a value of "NA". How to make it work and get the value of "2001-03-23 00:00:00"? Thanks!! =Example 1===================================== > S <- 20010323120000 > sTime <- strptime(paste(S),
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 Mar 16
1
combine dataset
Hi, I have two data sets look like below: ========================== state count1 percent1 CA 19 0.34 TX 22 0.35 FL 11 0.24 OR 34 0.42 GA 52 0.62 MN 12 0.17 NC 19 0.34 state count2 percent2 FL 22 0.35 MN 22 0.35 CA 11 0.24 TX 52 0.62 ========================== How to combine these two data set and make it look like below?
2001 Feb 13
2
run R under DOS prompt
Hi, I have a xxx.R file. In order to run this file, I have to go to R, and type -- source("xxx.R"). Two questions: 1. How to run file xxx.R under DOS prompt instead of entering R environment? 2. There are several functions in file xxx.R, how to pass the arguments to the function when I try to run this file via source() function (or under DOS mode)? Thanks, Yu-Ling Wu
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 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=",")