Displaying 20 results from an estimated 10000 matches similar to: "R for Windows: Is there a function/package that enables Win32 API Calls?"
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 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 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 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 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
2012 Mar 18
2
Removing session variables
If I create a data.frame using session variables as follows:
classResults<-data.frame(subjEnglish,gradeEnglish,subjFrench,gradeFrench,row.names=studentName)
How can I remove the variables? I tried
> rm(names(classResults))
Error in rm(names(classResults)) :
... must contain names or character strings
Also, how can I include the row.names variable. I tried
> names(classResults)
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
2009 Nov 20
6
How to: highlight R syntax on webpages ?
My question if in the Subject, but if to extend: I am specifically curious
about WordPress blogs. But any solution will give me a lead.
Thanks,
Tal
----------------------------------------------
Contact me: Tal.Galili@gmail.com | 972-52-7275845
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
www.r-statistics.com/ (English)
[[alternative HTML version deleted]]
2010 Jan 01
4
How to use read.table with Hebrew column names ?
Hello dear R help group,
I am trying to read a .txt file, with Hebrew column names, while keeping the
column names looking well in R - but without success.
I uploaded an example file to:
http://www.talgalili.com/files/aa.txt
And am trying the command:
read.table("http://www.talgalili.com/files/aa.txt", header = T, sep = "\t")
This returns me with:
X.....ª X...ª......
2010 Nov 09
3
Is there a way to have 'comment' keep a list?
Hello all,
I recently discovered the "comment" command.
I see it can only hold a vector of characters.
Is there a way (or an alternative), to make it possible to have it keep a
list?
(for example, to keep different pieces of information like date of creation,
information of each variable and so on)
The closest solution I can think of is using 'names' on the vector, like
this:
2009 Nov 18
2
Importing tRNA data into R ?
Hello dear R help group,
I would like to download the tRNA data on:
http://gtrnadb.ucsc.edu/download.html
And then import it into R.
Can anyone direct me as to how to do so?
Thanks,
Tal
----------------------------------------------
My contact information:
Tal Galili
E-mail: Tal.Galili@gmail.com
Phone number: 972-52-7275845
FaceBook: Tal Galili
My Blogs:
http://www.talgalili.com (Web and
2010 Nov 25
3
Is there an implementation for "URL Encoding" (/format) in R?
Hello all,
I would like some R function that can translate a string to a "URL encoding"
(see here: http://www.w3schools.com/tags/ref_urlencode.asp)
Is it implemented? (I wasn't able to find any reference to it)
Thanks,
Tal
----------------Contact
Details:-------------------------------------------------------
Contact me: Tal.Galili@gmail.com | 972-52-7275845
Read me:
2009 Dec 07
2
Are there free R webinar recordings somewhere ?
Hi all,
A friend just sent me this:
http://www.mathworks.com/company/events/webinars/index.html?id=&language=en
<http://www.mathworks.com/company/events/webinars/index.html?id=&language=en>And
asked me if there is something of the like in the R community.
Does anyone know of such a think ?
Cheers,
Tal
----------------Contact
2012 Feb 17
1
R's list data structure
Given
dayOfWeekName<-c("Mon","Tue","Wed","Thu","Fri","Sat","Sun");
dayOfWeekOrdinal<-c(1,2,3,4,5,6,0);
dayOfWeekWorkDay<-c(TRUE,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE);
weekProfile<-list(dow=dayOfWeekName,dowI=dayOfWeekOrdinal,dowW=dayOfWeekWorkDay)
1. How can I conditionally get dow, dowI, and dowW from weekProfile?
2011 Dec 29
3
Is it possible to "right align" text in R graphics?
Hello all,
The following line of code includes a right-to-left language text, yet the
R graphics engine displays it from left to right. One problem this causes
is when there are parenthesis in the test, here is a basic example?
plot(1:10, main = "שלום (טקסט)")
Is there a way to make sure the text is displayed from right to left?
Many thanks for any suggestions,
Tal
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,]
2010 May 22
2
Capturing R console output into a file (sink+savehistory ??)
After reading more, I understand I didn't formulate my last question
correctly, so please allow me to rephrase:
What I am looking for is a way to save the R console session output.
That is, a command that would combine the results of using:
?sink # And
?savehistory
My motivation for this is that doing it will allow someone who is a blind
user of R to be able to easily export his results to
2010 Jul 02
3
Combining several plots besides a dendrogram?
Hello all,
I would like to recreate the plot shown here (from a useR 2009
presentation):
http://www.agrocampus-ouest.fr/math/useR-2009/abstracts/pdf/Hocking.pdf
I downloaded the code for that image, and discovered that it relies on
external web services, and also having PERL installed on the computer.
I believe this could be done "locally" using the "seqLogo"
2011 Apr 18
2
Windows 7, update.packages problem: "unable to move temporary installation"?
Hello all,
I am using R 2.13.0 with windows 7, after giving my user full privileges to
the R folder (as described
here<http://www.r-statistics.com/2011/04/how-to-upgrade-r-on-windows-7/>
).
This allows me to install new packages just fine.
However, when using update.packages(), to update existing packages, I keep
getting the following error (for example, when updating the MASS package):