search for: cuichang

Displaying 11 results from an estimated 11 matches for "cuichang".

2005 Jan 26
3
plot function
...ge of axises. I want my graph from a certain range [a, b], instead of from the min to max of of datas? if i want draw a line instead of dots, should i use both plot and lines function. for example: plot(x, y); lines(x, y); things seem not working if i only use lines(x, y). Thank you so much. Cuichang Zhao Jan 25, 2005 --------------------------------- [[alternative HTML version deleted]]
2005 Apr 16
2
String in data frame
...a = bal, lelvels:bal namelist <- c(namelist, a); #this does not outptu (NA, bal), instead it outputs (NA, 1), if i keep #adding a to the namelist, it keeps adding 1 to the namelist instead of bal. However, i want to add bal to the namelist, not 1, so how i can do this? Thank you very much. Cuichang Zhao April 15, 2005 --------------------------------- [[alternative HTML version deleted]]
2005 Mar 30
4
how i can get input from "user input"
Hello, Could you please tell me how i can get an input from the user in R? C-Ming Mar 29, 2005 --------------------------------- [[alternative HTML version deleted]]
2005 Jan 25
4
more question
Hello, thank you very much for your help in last email. it is very helpful. right now, i have more questions about my project, 1. solve can i remove the NA from a vectors: for exmample, if my vector is: v <- (NA, 1, 2, 3, 4, 5) how can I remove the NA from vector v 2. how I can get input from the user? 3. can I read more than one data files in one program? and how i can write something
2005 Jan 26
2
modular in R
hello, i wonder what command should i used in R to do the modular. right now i have a vector v <- c(3, 4, 5, 6), but i have tried v%2 or v mod 2 or mod(v, 2) or modular(v, 2), and none of these works. Also, how can i find more function command online, i have to search in the mailing list questions, but it is not enough, is that a better website i can search more about R online. Thank you
2005 Feb 15
2
Could anyone answer for the following question
Hello , could anyone answer for the following question for me: I am using R 2.0.1 under Windows XP. I want to write a function that makes four graphs and stores each of them in graphics history. When the function finishes, in other words, I want its graphical output to be stored in a way that I can look at it using PgUp and PgDn. I think I need commands I can put in a function that
2005 Feb 11
2
table in R
Hello, I want to build some tables in my project using R, does R have some tables form that I can use? if i use the internal R table, how can initial a table before I use it? I want to my tables to have some columns, for example: (trial, x, y, goal) I want to put these columns into my tables, for i want to put data into each entry one by one. I have no idea about how big the table would be, so
2005 Apr 13
1
how to separate a string
hello, i wonder how is string represent in R. if i have a string s= "hello", how can i refer to first character in the string s? also if i have s1 = "hello.1", s2 = "ok.1", how can i separate the s1 into "hello" "1" and s2 into "ok" and "1"? I have tried to use the substring function, but i don't where i can get the index
2005 Apr 15
1
how can get rid of the level in the table
hello, 1. when i get a column data from a table, it always follows with the level. for exmaple if i have a table = (v1, v2), and table$v1 = (1, 2, 3); and col1 <- table$v1; then there is level assign to the table, with 1 is level1 and 2 is level2 3 is level3 ect. however, when are want to get col1[3], which is 3, by when i add the col1[3] to a list, the is actually appears as 33 instead of
2005 Feb 14
1
how can i make my program faster
Hello, right now, i have a program to collect data into a table. right now, my table is table1 <- data.frame(trial = NA, x = NA, y = NA) for each time when i want to add data into my data, i have to copy data of table into an array for each column, and then i add new data into my array, then i copy my array into the table one column by one column. For example temptrial <- table1$trial;
2005 Jan 23
1
read data from a file and vector expansion
hello, if i need to read data from a file one line and one how can do? I am using lines <- ("input.txt") so that now the variable lines holds all the data in my file and i am using for loop to loop each lines[i] to get each line. for exmaple, right now my lines[i] = "1 2 3 44 54 23 24" I am wonder how can i get each integer from ines[i], and how can i put each ingeter