similar to: Removing session variables

Displaying 20 results from an estimated 70 matches similar to: "Removing session variables"

2012 Mar 08
2
Classification by range
Given studentNumbers<-10; subjEnglish<-sample(-1:100,studentNumbers,replace=TRUE); when subEnglish <=0, 'U'                         <=39, 'F'                         <=49 'D'                         <=59, 'C'                         <=69, 'B'                         <=79,'A'                         <=100 'A+' I
2007 Jul 15
1
does samba support non-flat /home
Hi all, I hope this is an easy one: We've just set up a samba server and We're using winbind with the idmap_rid backend option to authenticate users via AD. So far so good! Now we want window users to have there home shares on the samba server. When Winbind pulls a list of users from AD it appears to use the template homedir option in our smb.conf to figure out where users home
2012 Jan 18
5
Executable expressions
Given a<-"c(1,2,3,4,5)" How can  I evaluate the variable a to return a (numeric) vector comprising of 1,2,3,4,5? Thanks. [[alternative HTML version deleted]]
2012 Jan 16
2
R for Windows: Is there a function/package that enables Win32 API Calls?
I am looking for a means to call Win32 API calls from R for Windows. Is that possible? Thanks. [[alternative HTML version deleted]]
2012 Jan 19
2
What is a 'closure'?
The "R Language Definition" at http://cran.r-project.org/doc/manuals/R-lang.html states in the following section 4.3.2 Argument matching This subsection applies to closures but not to primitive functions. What are 'closures'? [[alternative HTML version deleted]]
2012 Jan 21
2
How to identify data structure?
data(AirPassengers) brings AirPassengers into the workspace. How can I  idenfity what the structure of AirPassengers is? Is it a data.frame, a table etc. etc. [[alternative HTML version deleted]]
2012 Jan 22
2
R interactive = FALSE
I haven't been able to find an example of using R with interactive = FALSE. How do I start R such that 1. it loads a workspace 2. then starts execution with a function (in that workspace) that I choose 3. exits on completion Thanks. [[alternative HTML version deleted]]
2012 Jan 26
2
What does [[1]] mean?
I know that [] is used for indexing. I know that [[]] is used for reference to a property of a COM object. I cannot find any explanation of what [[1]] does or, more pertinently, where it should be used. Thank you. [[alternative HTML version deleted]]
2012 Jan 29
2
Data Structure to Code
Given: data(AirPassengers) I get a ts data structure AirPassengers in the workspace. How can I generate the code that can create that structure? That is, given an example of a data structure, is there a way to generate the code that can greate that structure? Alternatively, is there a reference that provides a list of dta structures together with a full list of theor respective attributes?
2012 Mar 06
2
Why aren't row names in a data frame unique?
I expected the row names to be unique but a data frame appears to be able to hold duplicate row names. This makes me thing that there must be circumstances when it is necessary. However, I cannot think of any. Please enlighten me. [[alternative HTML version deleted]]
2012 Jan 27
2
How to write the entire session to file?
savehistory writes all the executed lines from the session. How can I write everything (executed lines and output) from the active session to a file? Using Edit | Select All then Edit Copy, I can copy everything to the clipboard and write the whole thing to a file manually. If I just used the clipboard, I can paste the whole content into another edittor (for documentation). Is there a way to
2012 Feb 20
3
Confused: Inconsistent result?
This is copy & paste from my session: > xyz<-as.vector(c(ls(),as.matrix(lapply(ls(),class)))) > dim(xyz)<-c(length(xyz)/2,2) > > allobj<-function(){ + xyz<-as.vector(c(ls(),as.matrix(lapply(ls(),class)))); + dim(xyz)<-c(length(xyz)/2,2); + return(xyz) + } > xyz       [,1]              [,2]        [1,] "a"               "character"  [2,]
2012 Jan 18
1
R Table
Given a table with colnames and rownames, print(mytable) displays the table nicely formatted. How can I capture all of what is displayed as a character matrix? Thanks. [[alternative HTML version deleted]]
2012 Jan 21
1
Enumerate the class of objects
ls() gives me the vector of objects in the workspace class(objName) gives me the class of objName class(ls()) just returns character as many times as there are objects. How do I get a vector of all objects in the workspace? [[alternative HTML version deleted]]
2012 Jan 24
1
List to Array: How to establish the dimension of the array
Given a variable aa in the workspace, some of its attributes are: > typeof(aa) [1] "list" > mode(aa) [1] "list" > length(aa) [1] 2 How do I retrieve the maximum indices, in this case 2,3,4? The variable itself is: > aa [[1]] [[1]][[1]] [[1]][[1]][[1]] [1] 37531.52 [[1]][[1]][[2]] [1] 62787.32 [[1]][[1]][[3]] [1] 5503.184 [[1]][[1]][[4]] [1] 33832.8
2012 Jan 29
1
How I assign the result of a plot to a variable?
I can write a plot to a files of a given format using this: x<-sample(c(1:100),10) bmp("c:/mygraph.bmp") plot(x) dev.off() and then show the image file in another application. This application can also display the image from the stream of numbers that define the image. How I can get the plot as a stream of numbers? [[alternative HTML version deleted]]
2012 Jan 30
1
User Interface Equivalent Code
When I plot, the plot's user interface offers me a choice: File | Copy to the Clipboard | as a Bitmap. What is the equivalent code for achieving this but without the plot interface becoming visible? Thanks. [[alternative HTML version deleted]]
2012 Feb 17
1
Dataframe subset - why doesn't this work?
data(mtcars) mtcars[rownames(mtcars)!="Valiant",] # fails mtcars[list(rownames(mtcars))!="Valiant",] # runs but I am not getting the expected result With the latter statement, I expected all rows except the one where the name is "Valiant". I must have got something simple wrong; what is it? Thanks. [[alternative HTML version deleted]]
2012 Mar 04
1
Changing the frequency of time series
I know how to do this when creating the time series variable in one expression, e.g. valuesTS1<-ts(values,start=2000); # Frequency naturally defaults to 1 How can I specify the frequency of a time series? > values=c(12,34,65,12); > values<-ts(values); > frequency(values); [1] 1 > start(values) [1] 1 1 > frequency(values)<-12; Error in frequency(values) <- 12 : could
2012 Mar 07
1
Can a matrix with several rows and columns ...
be sorted by row in ascending/descending order? Given this matrix:  57 91 31 61 16  84  3 99 85 47  21  6 57 91 31  61 16 84  3 99 I want to end with this:  21  6 57 91 31  57 91 31 61 16  61 16 84  3 99  84  3 99 85 47 The 'order' of the sort is: 3 1 4 2 Also, what R expression will give me the 'order'? Thanks. [[alternative HTML version deleted]]