search for: vbmorozov

Displaying 8 results from an estimated 8 matches for "vbmorozov".

Did you mean: morozov
2002 Jun 26
3
Help with concatenation and arrays
Dear R-guRus: I have 2 questions 1) I have 2 variables, e.g. x<-5; y<-"Char" How do I create a new variable which would have both these values in a string (e.g. "5Char", or "5 Char", etc ) ?? 2) if i have an array x[1:100], and I do x[x==345.123], how do I get position j in the array of those x[j] which are equal to 345.123 ? Thank you very much, Vlad.
2002 Aug 03
2
variable scope
Dear R-guRus: I would like to pass variables to a function in R in "by reference", e.g Fortran style. For example, suppose I have the following code x<-c(1:10) y<-1 MyFunc<-function(x,y) {y<-sum(x); return(NULL)} MyFunc(x,y) print(y) in this case print(y) will produce "1" instead of 55 (which is sum(x)) - how do I make sure that afte the function is run, y
2002 Aug 03
2
variable scope
Dear R-guRus: I would like to pass variables to a function in R in "by reference", e.g Fortran style. For example, suppose I have the following code x<-c(1:10) y<-1 MyFunc<-function(x,y) {y<-sum(x); return(NULL)} MyFunc(x,y) print(y) in this case print(y) will produce "1" instead of 55 (which is sum(x)) - how do I make sure that afte the function is run, y
2002 Jul 17
9
problem formatting data frames
Dear R-guRus: I have a problem with the format of my data in R. Let's say I have a HUGE text table which consists of columns of numerical data, separated by tabs, but in some places rows of text (error messages, etc) are inserted in between rows of numerical data. Because the data file is so huge and because I have thousands of these files, it's unpractical to try and go thru these
2002 Jul 01
1
a little statistics help
Dear R-guRus: I am stuck with the following problem in R: Let's say i have a data.frame with columns X,Y & Z. X is a column of numbers, Y is a column of N factors "A", "B", "C", "D", etc and Z is a column of n factors "a", "b", "c", etc if i do MyLm<-lm(X~Y*Z - 1) i get all N coefficients for Y-factors, but only
2002 Aug 06
1
re| `By reference'
David Brahm <brahm at alum.mit.edu> wrote: >VBMorozov at lbl.gov wrote: >> I would like to pass variables to a function in R in "by reference"... >Just in case the ensuing discussion got too esoteric, here's one simple answer: >R> x <- 1:10 >R> MyFunc <- function(x, zz) assign(deparse(substitute(zz)), sum(x)...
2002 Oct 21
2
overlaying plots
Dear R-gurus: How do I overlay 2 plots in the same frame in R? Or, if I have a histogram, and I want to plot a function in the same frame - how do I do it? Thank you very much, Vlad -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or
2002 Jun 20
1
Help: sorting data frames
Hello everyone: I have a data frame with two columns of data. I want to create a new data frame, in which the first column is sorted in accending order, and the elements of the second column are properly re-ordered (to be in the same row with their corresponding first column elements) Could you tell me how to do it? I'd like to avoid "for" loops, etc., since my data frame is