search for: newrus

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

Did you mean: newbus
2007 May 13
2
extracting text contained in brackets ("[ ... ]") from a character string?
I have a text string that contains text within two brackets. e.g. "testdata[3]" "testdata[-4]", "testdata[-4g]", I wish to "extract" the string enclosed in brackets? What is a good way to do this? e.g. fun(testdata[3]) = '3' fun(testdata[-4g]) = '-4g' --------------------------------- Moody friends. Drama queens. Your life?
2007 Jun 15
5
removing values from a vector, where both the value and its name are the same?
I have an array such as: x=c(sum=77, min=4,max=9, count=5, min=4,max=9, count=8 , test=77) I wish to remove values where both the name and the value are identical. eg. i wish to end up with: x2=c(sum=77, min=4,max=9, count=5, count=8, test=77) What is the "best" way to do this? --------------------------------- Park yourself in front of a world of choices in alternative
2007 May 12
1
function similar to "get" that works for both an object, and elements of an object?
#Is there a single function similar to "get" that works for both an object, and elements of an object ? #(I want the function to be able to return objects, and/or the deeper elements of an object.) #(i.e. elements of a dataframe and/or list)? #e.g. tempdf = data.frame(a=c(4,5,6) , b=c(10,11,12) ) templist= list(x=tempdf, y=c(1,2)) get('tempdf') #works as desired
2009 Jan 25
2
commercially supported version of R for 64 -bit Windows?
Can anyone please refer me to all firms that offer and/or are developing a commercially supported version of R for 64 -bit Windows? - Thanks [[alternative HTML version deleted]]
2010 May 14
1
Java API to pass commands to R console from Java Program
Hi all, I am a new user of R and we have to integrate R into Java. I have downloaded and installed R and rJava/JRI and set up the environment. I was able to run the rTest java programs successfully. I have to automate the process involving R. I have the following question regarding it. Instead of opening the console from java program and passing commands (like load) to this console manually, is
2007 May 10
1
how to pass "arguments" to a function within a function?
I have searched the r-help files but have not been able to find an answer to this question. I apologize if this questions has been asked previously. (Please excuse the ludicrousness of this example, as I have simplified my task for the purposes of this help inquiry. Please trust me that something like this will in fact be useful what I am trying to accomplish. I am using R 2.4.1 in Windows XP.)
2007 May 16
2
substitute "x" for "pattern" in a list, while preservign list "structure". lapply, gsub, list...?
I am experimenting with some of the common r functions. I had a question re:using "gsub" (or some similar functions) on the contents of a list. I want to design a function that looks at "everything" contained din a list, and anytime it finds the text string "pattern" replace it with "x". I also wish to preserve the "structure" of the original
2007 Feb 05
1
novice/beginner's reading list for non-programmers learning R?
Can someone please recommend a novice/beginner's reading list for non-programmers learning R? --------------------------------- 8:00? 8:25? 8:40? Find a flick in no time [[alternative HTML version deleted]]
2007 May 11
1
geeting name of an object to which a variable refers?
#Sorry for the convoluted subject line. #I have: a=c(1,2,3) x=a #example of user supplied input #Is there any function that will tell me the "name" of the object x refers to, referring only to x itself? #i.e. the "answer" I want is "a" #I want: #fun(x) == 'a' #(I don't think this is possible, but figured I'd ask.)
2007 May 31
0
loading several "samples" of data from hard-drive, run "lm", "rlm", etc, save results in a list
I have many "sample" datasets (e.g. sample 5, sample 6, etc), each identified by a number as a suffix. These datasets are saved as individual R objects on my hard drive. (e.g."Wind.5.r" . "Wind.6.r","Solar.5.r","Solar.6.r") For example purposes, I have written code that creates similar data files using the "airquality" dataset. (see
2007 May 14
2
creating a "list of 3 dataframes" from a "list of 2 dataframes" and a dataframe?
#I wish to create a "list of three dataframes" ("results2") from a "list of two dataframes" (temp) and a dataframe ("c")? #Please advise. a <- data.frame(x=c(1,2,3),y=c(5,7,9)) b <- data.frame(x=c(2,4,7,9),y=c(2,3,5,4)) c <- data.frame(x=c(22,34,7,9),y=c(52,63,5,4)) results1 <- list(a,b,c) #what I want #but this is how I need to get there