search for: alexandersokol

Displaying 5 results from an estimated 5 matches for "alexandersokol".

2004 Nov 25
2
Turning strings into expressions
Hello, I am running R 1.9.1 om Windows 2000 SP4. My problem is as follows: Say I have a dataframe my.frame with column names A and B. I have a string, >my.string [1] "A==1 & B==2" And I would like to retrieve the subset corresponding to my.string, that is, from my.frame and my.string I would like to get the result of subset(my.frame,A==1 & B==2) So I need to find a way
2004 Nov 25
4
Creating lists from matrices
Hello, I am using R 1.9.1 on Windows 2000 SP4. I have the following problem: Say I have a matrix, >my.matrix [,1] [,2] [,3] [1,] "A" "B" "C" [2,] "D" "E" "F" [3,] "G" "H" "I" I would like to apply an operation to this matrix which returns a list my.list containing the
2004 Nov 04
5
Conversion of strings to expressions
Hello, I'm not sure how to state my question in a technically accurate manner, so I'll use a short example to clarify my problem: Say I have a vector, vec<-c(1,2,3,2) I would like to be able to "reference" the vector by using the string containing the name of the vector - that is, I would like to know of some function which is able to convert the string "vec"
2004 Nov 11
11
Logical "and"
Hello, I have the following very simple problem: Say I have two vectors, a<-c(1,7,4,5,9,11) b<-c(7,4,9) I would like to create a vector containing the elements in a which are not in b. Obviously, this is possible by writing a[a!=b[1] & a!=b[2] & a!=b[3]] But I would like a solution which is applicable to the situation where the number of elements in b is unknown. I have
2004 Oct 28
1
Problem with "outer" function
Hello, I am having a problem with the "outer" function. I am using R 1.9.1 on Windows 2000. My problem may be described as follows: I have a function f of 3 variables and 3 vectors, aa, bb and cc. I would like to evaluate this function in a 3-dimensional grid of points corresponding to all combinations of the elements of the 3 vectors. For example, if aa<-c(1,2) bb<-c(3,4)