Displaying 20 results from an estimated 1100 matches similar to: "Interpolating variables into quoted strings"
2002 Sep 16
0
Interpolating variables into quoted strings
William M. Fitchen <William_Fitchen at oxy.com> wrote on 12/19/01:
> I am new to R and am coming from a Perl background. I have had trouble
> figuring out from the documentation how to interpolate a variable into a
> quoted string (if it's possible).... In perl I could write:
> $name = "John";
> print STDOUT "Hi $name, how's it
2012 Jun 28
3
would you give me your hand to standardize columns in a matrix?
Hi R User,
Would you give me your hand to standardize some columns in a matrix?
I have included the example table.
> dput(test)
structure(list(X = c(1, 2, 3, 4, 5, 6), Y = c(4, 5, 6, 7, 8,
9), temp = c(0.818, 0.113, 0.256, 0.587, 0.955, 0.207), oxy = c(0.797,
0.487, 0.727, 0.128, 0.514, 0.031)), .Names = c("X", "Y", "temp",
"oxy"), row.names =
2007 Mar 19
5
Problem well trying to run Need For Speed Porsche Unleased
So I have Need For Speed Porsche Unleased and I have ubuntu 6.06 LTS
and I have wine 0.9.90-ubuntu2 which I installed using the package
manager . So I simply use wine and I get to play NFS on ubuntu simple
right. I install NFS and everything goes fine. I then go to wincfg and
add NFS and change it to run in 98. Error one I run the shortcut on my
desktop in a terminal and I get this
2007 Sep 26
2
AIC questions
In accordance with Venables and Ripley, SAS documentation and other
sources AIC with sigma^2 unknown is calculated as:
AIC = -2LL + 2* #parameters = n log(RSS/n) + 2p
For the fitness data:
(http://support.sas.com/ctx/samples/index.jsp?sid=927), SAS gets an AIC
of 64.534 with model oxygen = runtime. (SAS STAT User's Guide. Chapter
61. pp 3956, the REG Procedure). This value of AIC accords
2011 May 05
2
quick question : interpolating file name in pipe command
Hi Guys
I am trying to read a bunch of files in the loop but pipe function
which I use to cut few columns is somehow unable to interpolate the
file variable.
eg:
> file="check.txt"
> data <- read.table(pipe("cut -f 2,3 file"), sep="\t", col.names=c('pos','cov') )
cut: file: No such file or directory
how can I pass variable file to pipe
2006 May 31
1
interpolating a lot of data at once
I have a big dataset containing a lot of values for 1970, 1980 and
1990. I want to interpolate values for the years in between, and also
if possible to extrapolate to 1968 and 1969. The method doesn't have
to be clever but I am looking for a function that will do all the data
at once. (Doing foreach, or apply, is just too slow!) Is there
something that will take
list(df$val.1970, df$val.1980,
2007 Oct 01
1
merging, interpolating two simulataneous time series
I have a time series for two variables measured simultaneously, but at
different intervals. The variables are not independent, so the patterns
in the times series are very similar (one variable goes up when the
other goes up, etc).
For example, let's pretend my data look something like this (but with
more noise)...
var1_times<-c(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
var1_values<-c(0,
2003 Nov 10
1
kmeans error (bug?)
Hello,
I have been getting the following intermittent error from kmeans:
>str(cavint.p.r)
num [1:1967, 1:13] 0.691 0.123 0.388 0.268 0.485 ...
- attr(*, "dimnames")=List of 2
..$ : chr [1:1967] "6" "49" "87" "102" ...
..$ : chr [1:13] "HYD" "NEG" "POS" "OXY" ...
> set.seed(34)
>
2011 Oct 20
1
stop R from rounding
Hello,
I have a column in a data frame that need to be 10 digits long. As such:
Decimal.Year
1 1994.25997
2 1994.26020
However, R keeps rounding the digits. As such:
Decimal.Year
1 1994.260
2 1994.260
*Is there any way to stop this from happening?*
Here is how I created the data frame:
x <- read.table('bats_1994_CTD.txt')
colnames(x) <-
2002 May 23
3
SMB sharing under Mac OS X Server
Hello all:
I've scoured the web for a solution to this problem to no avail, and thought someone on this list might be able to point me in the proper direction... I realize this isn't the best place for Macintosh help, but it is Samba related, so please bear with me :-)
Some quick background: I have a Power Mac G4 Dual GHz machine running Mac OS X Server 10.1.4, and have a Micronet SCSI
2011 Nov 16
3
Interpolating hourly basis
I have a huge data set in the form of
V1 V2 V3 V4 V5 V6
1 201005010000201005010000 1.68291.38 1 0
2 201005010000201005010300 0.93335.10 1 0
3 201005010000201005010600 2.25 57.38 1 0
4 201005010000201005010900 0.43 13.76 1 0
5 201005010000201005011200 0.74101.14 1 0
I am interested in interpolating it on an hour basis(it's for avery
2011 Dec 06
1
Vignette using parallel's makeCluster function has trouble building on Windows 7
Hi, all--
I've been working on a doParallel package to provide a foreach
parallel backend for the new parallel package, but I am having trouble
building the vignette. On my system, if I use the following minimal
vignette (call it buggyVignette.Rnw):
\documentclass[a4paper]{article}
\title{Sweave Example 1}
\author{Rich Calaway}
\begin{document}
\maketitle
In this example
2011 Jun 28
0
renaming multiple columns + interpolating temperature series
Greetings R Users,
I?m new to R but at least managed to read in multiple files:
filenames <- list.files(path=getwd())
numfiles <- length(filenames)
for (all_temp in c(1:numfiles)) {
filenames[all_temp] <- paste(filenames[all_temp],sep="")
assign(gsub("[.]ASC$","temp",filenames[all_temp]),read.delim2(filenames[all_temp],
2010 Jul 21
0
[Jobs] RoR Developer Needed - BarZ Adventures (Austin, TX)
Hello,
BarZ Adventures is an Austin-based start-up company that creates
location-aware tour technology. We are looking for a software
developer to work on our Ruby-on-Rails web application. The
application also serves mobile clients such as iPhone, Android through
web services. We have built a platform for creating location-based
applications. It will be a part-time contract position with
2006 Sep 19
1
--remove-sent-files errors with no output
I've been experimenting with the --remove-sent-files option with patchy
success.
Often --remove-sent-files will not remove the remote files. It copies
them locally but "apparently" failed to remove them remotely. After
some experimentation I was able to identify one problem as a permission
problem. I continue to have problems with rsync not removing some more
files. What troubles
2005 Nov 09
0
R CMD Rdconv file.Rd --type=Ssgm \code{x} should use <code> (PR#8290)
I'm trying:
R CMD Rdconv file.Rd --type=Ssgm
If file.Rd contains
\code{x}
then this is currently translated as
<s-expression>x</s-expression>
I suggest instead translating to
<code>x</code>
(provided that R CMD Sd2Rd is changed to support the <code>
tag; I just submitted that bug separately).
Note that this is an enhancement, not a bug.
This change would
2005 May 04
0
JOB: Financial Software Engineering position at Insightful
Dear R-users,
Insightful has a position open for a Senior Software Engineer in
computational finance. We are looking for someone with both solid software
engineering skills and experience in computational finance. It's a very
interesting position for the right person.
The job description is below.
Thanks,
Charlie Roosen
Software Engineering Manager
Insightful Corp
---------
2007 Jan 24
0
JOB: LARS internships
Insightful is seeking a pre-doctoral student and an undergraduate student for
two internship positions. The primary responsibilities are to assist in the
development of software for high-dimensional regression and machine learning
applications using least angle regression (LARS).
The pre-doctoral candidate should have a background and interest in
statistical methodology, algorithms, data
2005 Sep 08
1
Interpolating / smoothing missing time series data
The purpose of this email is to ask for pre-built procedures or
techniques for smoothing and interpolating missing time series data.
I've made some headway on my problem in my spare time. I started
with an irregular time series with lots of missing data. It even had
duplicated data. Thanks to zoo, I've cleaned that up -- now I have a
regular time series with lots of NA's.
2006 Aug 03
1
Is it possible to interpolating variables in YAML files?
I''m attempting to store a value that''s dependent on an environment
variable in a custom .yml file, like so:
job_folder: "#{RAILS_ROOT}/jobs"
Doesn''t seem to like that. Is there any way for me to have access to
the RAILS_ROOT environment variable from inside of my configuration
file?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.