search for: scode

Displaying 20 results from an estimated 63 matches for "scode".

Did you mean: code
2012 Sep 05
2
Recoding categorical gender variable into numeric factors
I currently have a data set in which gender is inputed as "Male" and "Female" , and I'm trying to convert this into "1" and "0". I found a website which reccomended using two commands: data$scode[data$sex=="M"] <- "1" data$scode[data$sex=="F"] <- "2" to convert to numbers, and: data$scode <- factor(data$scode) to convert this variable to a factor. My issue is that, after I use the first command, *only* the female values get converted to...
2009 Jul 13
3
SweaveListingUtils question
...an not make it work... Below a minimal example. The problem seems to be the following line (generated by SweaveListingPreparations()?): \ifthenelse{\boolean{Sweave@gin}}{\setkeys{Gin}{width=0.6\textwidth}}{}% If I comment out this line, it works. What can I do about this? I am using the \begin{Scode} notation instead of Rnw files. May this be the problem? For some technical reason, I would like to stick on this notation. Any help appreciated, kind regards, Karsten. %%%% begin example \documentclass[9pt]{beamer} \usepackage{fancyvrb} \usepackage{listings} % choose language and char set \u...
2011 Aug 21
3
Sweave doesn't work
...*Runaway argument? {echo=FALSE} data<- read.csv("C:\\Users\\Daniele\\Desktop\\dati\\dati_england ! File ended while scanning use of \FV at BeginScanning. <inserted text> \par <*> ...le/Desktop/dati/LaTeX1.Rtex* The Sweave code in Latex is like this: *\begin{Scode}{echo=FALSE} data<- read.csv("c:\\Users\\Daniele\\Desktop\\dati\\dati_england.csv",header=T,sep=",") \end{Scode} \begin{figure}[!h] \centering \begin{Scode}{fig=TRUE, width=6, height=9, echo=FALSE} data1=matrix(0,ncol=4,nrow=4) .... .... \end{Scode} \caption{Data} \end{figure...
1999 Dec 27
2
help needed with smbclient with broken pipe
I am getting the following error from smbclient and am not sure as where the problem is. smb: \gcc\> dir write_socket_data: write failure. Error = broken pipe write_socket: Error writing 91 bytes to socket 3: ERRNO = broken pipe failed session setup Error writing 91 bytes to client. -1. Exiting This appears to be happening about a minute after I establish a session. Up until that time file
1999 Sep 18
1
Transfering large files
...it definitely a bug in samba (or, perhaps more likely, a bug in Windows that is triggered by samba)? [1] It will be upgraded pretty soon, but judging by the changelogs, this particular problem has not been addressed Thanks! -- / Peter Schuller PGP userID: 0x5584BD98 or 'Peter Schuller <scode@scode.webprovider.com>' Key retrival: Send an E-Mail to scode-getpgpkey@scode.webprovider.com E-Mail: scode@scode.webprovider.com Web: http://hem.passagen.se/petersch -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signa...
1999 Aug 29
0
smbpassword modification & logon scripts
...se? [1] If I remove a Unix user, but leave the samba entry behind, problems will arise if one later creates a new user by the same name. smbpasswd (the executable) will then refuse to change the password of the user. Thanks! -- / Peter Schuller PGP userID: 0x5584BD98 or 'Peter Schuller <scode@scode.webprovider.com>' Key retrival: Send an E-Mail to scode-getpgpkey@scode.webprovider.com E-Mail: scode@scode.webprovider.com Web: http://hem.passagen.se/petersch -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signa...
1999 Oct 01
1
Samba printer queues
...rinter that is printed on via a Linux server running Samba, but print jobs never show up on the client-side (as far as Windows is concerned, the queue is empty). It would be nice, albeight not vital, if this worked... Thanks! -- / Peter Schuller PGP userID: 0x5584BD98 or 'Peter Schuller <scode@scode.webprovider.com>' Key retrival: Send an E-Mail to scode-getpgpkey@scode.webprovider.com E-Mail: scode@scode.webprovider.com Web: http://hem.passagen.se/petersch -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signa...
2011 Mar 07
2
Sweave with scan()-ed data
....828 43: .776 .779 ^ Is there some switch or option for Sweave that will make this work? Below is the slide in question in an executable example: \documentclass[dvipsnames,pdflatex,compress,beamer]{beamer} \usepackage{Sweave} \definecolor{Sinput}{rgb}{1,0,0} \definecolor{Scode}{rgb}{0,0,0.56} \definecolor{Soutput}{rgb}{0,0,1} \DefineVerbatimEnvironment{Sinput}{Verbatim}{formatcom={\color{Sinput}},fontsize=\footnotesize,baselinestretch=0.9} \DefineVerbatimEnvironment{Soutput}{Verbatim}{formatcom={\color{Soutput}},fontsize=\footnotesize,baselinestretch=0.85} \DefineVerbati...
2007 Sep 01
1
Sweave rendering of simple character
Hi, When I compile the construction \begin{Scode}{eval=FALSE} ?HSP \end{Scode} with Sweave and latex, it outputs in the pdf as, > `?` (HSP) which is not incorrect but a bit more formal than I wanted for demonstrating the use of the help shortcut. I would like the output to look like, > ?HSP but I can't seem to make this work. I ha...
2012 Sep 18
2
problem with vignettes when S4 classes in packages overlap
...tgreSQL? seems equivalent to one from package ?RMySQL? and is not turning on duplicate class definitions for this class This can be reproduced by running R CMD Sweave --pdf Atest.Stex where the file Atest.Stex has the lines \documentclass{article} \usepackage{Sweave} \begin{document} \begin{Scode} library("RMySQL") library("RPostgreSQL") \end{Scode} \end{document} These warnings only happen in a vignette. They are not produced if the lines are entered in an R session. (Using R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows" on Ubuntu) Paul
2010 Feb 11
1
Sweave, lty = 3 line incorect in pdf output
...the Stex convention for Sweave. I saved the quartz window in a file called quartzSave.pdf after running the document through Sweave a first time without the \includegraphics{quartzSave} line. \documentclass[10pt]{article} \usepackage{graphicx} \begin{document} Test of lty = 3 argument. \begin{Scode}{fig=TRUE,eps=FALSE} x <- 1:10 plot(x, type = "l", lty = 3, lwd = 3) lines(x, 0.5 * x, type = "l") \end{Scode} Saved from Quartz window: \includegraphics{quartzSave} \end{document} I have attached the pdf created by Sweave (which is missing the dotted lines) in case it c...
2004 Sep 06
2
Sweave echoing comments (again)
Hello, I try to document some R scripts for my collegues and observed the problem, that Sweave strips comment lines away. As a small example I write in an Rtex file: \begin{Scode} ## a small example test() # line comment \end{Scode} ... the .tex file generated by Sweave only contains: \begin{Schunk} \begin{Sinput} test() \end{Sinput} \end{Schunk} ... and all the comments are lost. Looking into the archives, I found, that such a question appeared already some months a...
2004 Oct 28
1
read.csv(stdin(),...) with sweave
hello, i would like to read in a small amount of csv data directly from a sweave-enabled latex document. i tried \begin{Scode}{fig=FALSE,echo=TRUE} timeval <- read.csv(stdin(),nrows=2) t1,t2,t3,t4 24.23,26.79,23.47,23.97 \end{Scode} but apparently the stdin() approach doesnt't work as I get Writing to file test.tex Processing code chunks ... 1 : echo term verbatim Error: chunk 1 Error in parse(file, n, text, p...
2004 Jun 20
2
customflags considered a folder?
...ustomflags' does show up as a folder when using mutt. How would I go about preventing this problem? Thanks! -- / Peter Schuller, InfiDyne Technologies HB PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller at infidyne.com>' Key retrieval: Send an E-Mail to getpgpkey at scode.org E-Mail: peter.schuller at infidyne.com Web: http://www.scode.org
2003 Feb 11
2
krb5 + samba config
Hi, my W2K clients and users are authenticated by a native MIT Kerberos-V5 KDC, that is they get tickets and TGT, while user data are stored in an openldap directory. I use samba-3.0alpha21 which is still requiring userpasswords beeing stored in the DIT, although i have following directives in smb.conf realm = MY.REALM security = ads smb ist still not requiring and accepting tickets from KDC. How
2004 Sep 06
2
Sweave echoing comments (again)
Hello, I try to document some R scripts for my collegues and observed the problem, that Sweave strips comment lines away. As a small example I write in an Rtex file: \begin{Scode} ## a small example test() # line comment \end{Scode} ... the .tex file generated by Sweave only contains: \begin{Schunk} \begin{Sinput} test() \end{Sinput} \end{Schunk} ... and all the comments are lost. Looking into the archives, I found, that such a question appeared already some months a...
2002 Jun 10
1
Very strange problem with profiles
...e in another folder? After all, just because it's konceptually the same file, Windows doesn't know that. Thanks, -- / Peter Schuller, InfiDyne Technologies HB PGP userID: 0x5584BD98 or 'Peter Schuller <peter.schuller@infidyne.com>' Key retrival: Send an E-Mail to getpgpkey@scode.org E-Mail: peter.schuller@infidyne.com Web: http://scode.org
2009 Nov 12
1
Rearranging long tables, Sweave, xtable, LaTeX
Dear R-users, consider the two following outputs, ## 1 and ## 2 \begin{Scode}{Setup, echo = FALSE, print = FALSE, eval = TRUE} with(expand.grid(Fact1 = 1:3, Fact2 = 1:40), table(Fact1, Fact2)) ## 1 xtable(with(expand.grid(Fact1 = 1:3, Fact2 = 1:40), table(Fact1, Fact2))) ## 2 \end{Scode} The first line with(expand.grid(Fact1 = 1:3, Fact2 = 1:40), t...
2010 Aug 17
3
Sweave
Dear R users, I am using Sweave. I would like to use the width option for the graphics : \begin{figure}[h!] \centering \includegraphics[width=0.7\textwidth]{x} \end{figure} How do I get this ? Thank you very much, Randall [[alternative HTML version deleted]]
2008 Jul 27
2
Colors in Sweave
...senames]{colors} \definecolor{darkred}{rgb}{0.545,0,0} \definecolor{midnightblue}{rgb}{0.098,0.098,0.439} \DefineVerbatimEnvironment{Sinput}{Verbatim}{fontshape=sl,formatcom={\color{midnightblue}}} \DefineVerbatimEnvironment{Soutput}{Verbatim}{formatcom={\color{darkred}}} \DefineVerbatimEnvironment{Scode}{Verbatim}{fontshape=sl,formatcom={\color{blue}}} === which works in the sense that colors do show up in the processed pdf document, but extra spaces in between the input and output code chunks appear (which is not the case when colors are not specified), resulting in a long document with many bla...