Displaying 20 results from an estimated 4000 matches similar to: "batch mode in linux"
2000 Sep 07
3
plot with two y axes
I'm trying to make a transition from S-plus under Windows to R under
Linux. My immediate aim is to produce a scatter plot with two y-axes
with different scales. That can be done in S-plus with a command of the
following form:
guiPlot( PlotType="Scatter", DataSet="execon",
Columns="years,hstart,ship", AxisType="Multiple Y" ),
where years, hstart, and
2007 Dec 31
1
Program output to file using a batch command file
If I copy the following commands in my batch file to the R console, R
creates a file named "basicStatsIBM.lis" with the program output in it:
Sortie <- file(description = "basicStatsIBM.lis", open = "wt", blocking =
TRUE,
encoding = "UTF-8")
sink(file = Sortie, append = FALSE, type = "output", split = FALSE)
basicStats(ibm)
close(Sortie)
2008 Aug 12
1
fPortfolio constraints, maxsumW
Running R version 2.6.1 under Gentoo Linux and using the fPortfolio
package, I am having trouble specifying a sector constraint. One of the
constraints to be imposed is that assets 1 and 2 together account for no
more than 13.63% of the portfolio. My attempt at coding that
constraint, "maxsumW[1:2Assets]=13.63" fails. The relevant section of
my code file and the resulting error
2007 Aug 20
1
rv package, rvnorm function
In an attempt to learn to use the rv package, I have been working
through the examples in Jouni Kerman and Andrew Gelman's "Using Random
Variables to Manipulate and Summarize Simulations in R" (July 4, 2007).
I am using a Dell Precision 380n computer running Gentoo Linux and R
2.2.1 (the latest available through Gentoo's portage/emerge system).
Everything worked well until I
2008 Aug 15
1
map("state" ...) Is the USA cracking up?
Running R version 2.6.1 under Linux, I'm trying to use the maps and
mapdata packages and the state database to produce a thematic map of the
USA. My problem is that cracks (white spaces) appear between some
states--e.g. between Colorado and Utah and between Michigan and Indiana.
The resulting visual impression is that the country is breaking up.
This occurs in all the projections I have
2008 Aug 04
2
thematic map of USA
My goal is to prepare a thematic map of the US, with states shaded
according to their values for a variable of interest. I would like to
include an inset for Alaska in the upper left and an inset for Hawaii in
the lower left. If possible, I'd like to use Albers conic projection, or
something similar. Thus far I have tried using the maps package with
its state database (which omits
2003 Aug 11
4
subscripts in lists
I am tying myself in knots over subscripts when applied to lists
I have a list along the lines of:
lis<-list(c("a","b","next","want1","c"),c("d", "next", "want2", "a"))
>From which I want to extract the values following "next" in each
member of the list, i.e. something along the lines of
2008 Apr 30
1
R isn't finding tcltk
On a x86 machine operating under Gentoo Linux, I'm having persistent
difficulty in getting R version 2.6.1 (the latest available through
Gentoo's portage system) to use tcltk. The R command library(tcltk)
elicits the following response:
Error in firstlib(which.lib.loc, package) :
Tcl/Tk support is not available on this system
Error in library(tcltk) : .First.lib failed for
2009 Dec 31
3
XML and RCurl: problem with encoding (htmlTreeParse)
Hi,
I'm trying to get data from web page and modify it in R. I have a
problem with encoding. I'm not able to get
encoding right in htmlTreeParse command. See below
> library(RCurl)
> library(XML)
>
> site <- getURL("http://www.aarresaari.net/jobboard/jobs.html")
> txt <- readLines(tc <- textConnection(site)); close(tc)
> txt <- htmlTreeParse(txt,
2006 Mar 01
3
Voice Activation Level (speex 1.1.11.1)
Sorry.
I forgotten the words volume or loudness.
But it is know as microphone stroke too, i think.
If something can tell me something about that
procedure it would complete my pleasure.
To bring back memories,
i only wanted to know wheather i can change a
variable that holds the sound intensity (loudness)
needet to start "encoding >> sending" if the speex codec
is in voice
2008 Jul 03
1
subset function within a function
Hi,
I am using this subset statement and it works
outside a function.
LIS[[i]]<- lapply(LI, subset, select=cov[[i]])
However, wrapped inside a function this statement
produces the same values for every LIS[[1]] which
is only the first subset of LI.
Does anyone know why is not working correctly inside
a function?
ff = factor(covariate)
nLev <- nlevels(ff)
cov <-
2012 May 02
4
[LLVMdev] [cfe-dev] Odd PPC inline asm constraint
On Tue, 2012-05-01 at 19:58 -0500, Peter Bergner wrote:
> On Tue, 2012-05-01 at 17:47 -0500, Hal Finkel wrote:
> > By default it should build for
> > whatever the current host is (no special flags required). To
> > specifically build for something else, use:
> > -ccc-host-triple powerpc64-unknown-linux-gnu
> > or
> > -ccc-host-triple
2006 Mar 10
2
lapply and list attributes
Hi
I have a list that has attributes:
attributes(lis[2])
$names
[1] "150096_at"
I want to use those attributes in a function and then use lapply to
apply that function to every element of the list, eg for simplicity's
sake:
my.fun <- function(x) {
attributes(x)
}
Then
l2 <- lapply(lis, my.fun)
It seems that "attributes(x)" within the function is not the
2003 Dec 17
1
Rsync 2.5.7 hangs after completion
I am having a problem with rsync hanging after completion. The command I
am using is: rsync -vaz --delete /banproc/ backenp650:/banproc (thanks jw
for the syntax correction)
There were 56 deletions on the destination and ~ 1380 files copied total (I
gathered these stats by using grep and wc -l on a saved file of my ssh
session to the source host). Below is the last couple of lines on my ssh
2008 Aug 12
1
separate maps in one figure
My aim is to create a figure consisting of three maps: Alaska in the
upper left corner, the 48 contiguous US states in the center right, and
Hawaii in the lower left corner. In some ways the figure I'm trying to
create is analogous to figure 1.5 in Paul Murrell's excellent "R
Graphics", which combines a map of New Zealand with a map of the world.
I tried adapting the code
2014 Jan 03
2
[LLVMdev] How to update LiveInterval information of newly inserted machine basic block
On Jan 3, 2014, at 11:01 AM, Andrew Trick <atrick at apple.com> wrote:
>
> On Jan 3, 2014, at 4:58 AM, Haishan <hndxvon at 163.com> wrote:
>
>>
>> At 2014-01-01 04:36:21,"Andrew Trick" <atrick at apple.com> wrote:
>>
>> On Dec 31, 2013, at 3:52 AM, Haishan <hndxvon at 163.com> wrote:
>> My update steps are shown
2018 Sep 26
2
Liveness Analysis
So what is the status about LiveVariables. Is there a plan to remove it?
After searching in old lvm-dev-mails it is mentioned that LiveVariable
still exists due to one pass needing it. And a comment in
TargetPassConfig.cpp indicates that the pass in question is
TwoAddressInstruction:
// FIXME: Once TwoAddressInstruction pass no longer uses kill flags,
// LiveVariables can be removed
2013 Feb 05
0
[LLVMdev] Asserts in bundleWithPred() and bundleWithSucc()
On Feb 4, 2013, at 3:44 PM, "Sergei Larin" <slarin at codeaurora.org> wrote:
> Seems like an easy solution for this case... But let me ask you a more
> general question.
> The reason I kept on hanging on to the MBB->splice was (probably outdated)
> assumption that it will one day properly update liveness for instructions it
> moves... That is a serious matter
2008 Jul 01
5
trivial list question
Dear experts,
For the makeGenotype function I need a list as in the example. However,
since my list needs to be 184 long there must be an easy way to make it.
>list(1:2,3:4,5:6,7:8)
[[1]]
[1] 1 2
[[2]]
[1] 3 4
[[3]]
[1] 5 6
[[4]]
[1] 7 8
I have tried
lis<-1:184
dim(lis)=c(92,2,1)
as.list(lis)
and several other options. Any suggestions?
many thanks
Marco
[[alternative
2004 Aug 31
2
enter browser on error
Is there a way I can get R to automatically enter the browser inside a user-defined function on the generation of an error? Specifically, I'm trying to debug this:
Error in as.double.default(sapply(lis, FUN)) :
(list) object cannot be coerced to double
In addition: There were 38 warnings (use warnings() to see them)
> traceback()
8: as.double.default(sapply(lis, FUN))
7: