similar to: R command line and pipe using in Linux?

Displaying 20 results from an estimated 700 matches similar to: "R command line and pipe using in Linux?"

2001 Nov 01
3
Lost backslashes in parse()
I'm comparing R-1.3.0 on Solaris 2.6 to R-1.3.1 on WindowsNT. The following 5-line script returns TRUE on Unix but FALSE on NT: fnam <- tempfile() file.create(fnam) txt <- paste("file.exists(\"", fnam, "\")", sep="") expr <- parse(text=txt) eval(expr) The issue seems to be that backslashes get lost in the parsing. A workaround is to change
2011 Oct 24
3
Create a matrix with increment and element with zero subscript
Hello, Does anyone knows how to deal with zero subscript in R. I have this code: for (i in 1:nitems){ + for (j in 1:ncat-1) { + draw<-matrix(rnorm(nitems*(ncat-1),seed1,seed2),nitems,(ncat-1)) + d<-( sigma_d*draw ) + mu_d + draw<-matrix(rtnorm((nitems*(ncat-1)),mean = seed1, sd = seed2, lower = .1, upper = 1.5),nitems,(ncat-1)) +
2012 Aug 08
1
ggplot2 with separate average lines
Hi I'm just starting off with R but is this correct? I have this data set. > data Type ID Size 1 Reqd 244808 1024 2 Reqd 244045 512 3 Reqd 245427 800 4 Reqd 245423 1024 5 Reqd 244983 1024 6 Used 244808 615 7 Used 244045 33 8 Used 245427 261 9 Used 245423 461 10 Used 244983 1194 I want a scatterplot of the Size values grouped by the Type column. I also want 2 lines
2003 Jan 29
3
multinomial conditional logit models
A multinomial logit model can be specified as a conditional logit model after restructuring the data. Doing so gives flexibility in imposing restrictions on the dependent variable. One application is to specify a loglinear model for square tables, e.g. quasi-symmetry or quasi-independence, as a multinomial logit model with covariates. Further details on this technique and examples with several
2012 Sep 26
3
Reading multiple files
Hi, I have 35 data files for reading. I would like get a program for performing reading of 35 files at once. All are of the type: Dados1.raw, Dados2.raw and so on. If the files have the same number of columns, I can read with the following commands: rm(list=ls()) filenames = list.files(path="~/Silvano/Arq", pattern="Dados+.*raw") names = substr(filenames, 1, 7) for(i in
2013 Apr 10
1
Issue with Control-Z in a text file on Windows - readLines() appears to truncate
Working on Windows I have had to deal with CSV files that, unfortunately, contain embedded Control-Zs, i.e. ASCII character 26 in decimal, and the readLines() function in R on Windows (2.15.2 and 3.0.0) appears to truncate at the control-Z. There is no problem at all on Ubuntu Linux with R 3.0.0. Am I mistaken or is this genuine? # Create a small file with embedded Control-Z h3 <-
2008 Apr 08
3
Dovecot features
Hi, We would like to switch from courier-imap to dovecot. I have installed dovecot on a machine running FreeBSD 6.3 and now testing it. My questions are below: 1. Can I configure dovecot to delete all files that are older, say 10 days, from defined mail boxes (for example Trash or Spam). 2. After I access mail box (using web mail squirrel imap) all emails moved from 'new' directory
2004 Apr 25
2
nonparametric multiple sample comparison
Hello all, Here goes one of my first functions. I want to make a nonparametric multiple sample comparison with unequal sample sizes (see Zar?s Biostatistical Analysis, 3rd. Ed., pg. 201 Example 10.11, pg. 288 Example 11.10). In the real world, I want to compare samples of fish length captured with different fishing gears. After using the Kruskal-Wallis test I want to check the differences
2004 Mar 23
1
Which file to use?
To Whom It May Concern: We see three files, openssh-3.8pq.tar.ga, openssh-3.8p1.tar.gz.sig, and openssh-3.8p1-vs-openbsd.diff.gz Do we need one of these or a different file to load? Currently, we're running SCO UnixWare 7.1.1, and could upgrade to 7.1.3. Thanks for your help. -Tom Phan
2008 Jun 09
1
Questions about building R extensions from C, data/ and man/, sbml file
Hi, I am building the package in R using >R CMD build -force ./mypackage and check it using >R CMD check ./mypackage However I have a problem when running the examples in the manual files. The problem is that I used a specifice type of file that is not table, thus I guess data() can't be use to indicate the use of that particular file in the directory data/. Do you have any idea how
2008 Apr 04
2
Dovecot config
Hi, I've installed dovecot 1.0.13 on FreeBSD 6.3 RELEASE and now trying to configure it. Below is my config file: $ dovecot -n # 1.0.13: /usr/local/etc/dovecot.conf log_path: /var/log/dovecot.log info_log_path: /var/log/dovecot-info.log protocols: imap ssl_disable: yes disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/local/libexec/dovecot/imap-login
2012 Jan 17
2
How to loop on file names
Dear all, I need to do the same procedure on several files. But I don't know how to refer to the file name. Here is an example of what I am trying to do. List of files: file1(A,B,C, D1...Dn), file2(A,B,C,E1,...,En), file3(A,B,C,F1,...,Fn) Procedure I want to apply on each file: dft <- melt(df,id=c('A','B','C')) dft$X <- substr(dft$variable,1,3) dft$Y <-
2007 Mar 18
1
Dependancy sequencing problem
Hi, I have this code here: $filepackages = $operatingsystem ? { debian => [ "tar", "gzip", "bzip2", "diff", "sed", "wget" ], default => [ "tar", "gzip", "bzip2", "diff", "sed", "wget" ] } package { $filepackages: ensure => latest
2006 Mar 20
1
type in daisy
Hi, I'm a PhD student and I want to use the function 'daisy' from the package 'cluster' to compute dissimilarities. My variables are of mixed types so I use the argument 'stand' in daisy to define the type of my variables. I have the following error message : Warning message: binary variable(s) 13, 16, 17, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
2012 Nov 21
1
Puppet IPA client setup
Hi everyone, I have already started documented and building this privately. However I refuse to believe that there is not a module for setting up a FreeIPA client server on RHEL to authenticate against an existing IPA authentication server. Has anyone actually already done this? If not I will probable post a link to this email with the puppet module I have built. Regards John -- You
2004 Aug 12
3
Menu for PXELinux
I'd like to add a user-friendly menuing system to pxelinux replacing/enhancing the default on the pxelinux.cfg/default Where can I find instructions on how to get started? Regards, Conrad Lawes Sr. Technical Analyst Argon Technology
2007 Sep 08
3
Configure extension by software
Before an IP Phones can be registered to an Asterisk server, the extension for it must be configured in Asterisk. Usually, Asterisk adminintor must add the extension by hand. Is there any library, API to do this by software??? For example, i want to develope a software that add new extensions to Asterisk system, sothat, any IP Phones can use that extensions to establish a call. I'm digging
2011 Jan 04
1
[LLVMdev] Function-level metadata for OpenCL (was Re: OpenCL support)
On Mon, Jan 03, 2011 at 12:52:02PM -0600, Villmow, Micah wrote: > Sorry for the late reply, as I have been on vacation for awhile. > > One method which I haven't seen mentioned is to separate out the kernel semantics from the function definition. > > All the kernel attribute does is specify that this function is an entry point to the device from the host. So, why not just
2004 Jun 17
2
using "= matrix (...)" in .C calls
Dear R-devel, I am trying to alter rpart so that it makes additional calculations when growing the tree. In the "rpart.s" there is a call to the C routine: rp <- .C("s_to_rp2", as.integer(nobs), as.integer(nsplit), as.integer(nodes), as.integer(ncat),
2011 Aug 16
1
PBSmapping, where is Ireland?!
Hi folks, I've been using 'PBSmapping' to make a map of Europe with some labels. I've been using the 'worldLL' PolyData, as my computer is too slow to make my own from the GSHHS files. The only problem is this PolyData does not seem to include Ireland. I have no idea why this should be so, other European islands such as Sardinia etc. are included.