Displaying 20 results from an estimated 4000 matches similar to: "Interpolating variables into quoted strings"
2001 Dec 19
2
Interpolating variables into quoted strings
Hello
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). This seems to be necessary when writing a
script that must print out strings (for example plot legends) whose content
is calculated during the execution of the script.
In perl I could write:
$name =
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 =
2009 May 25
3
Interpolating variables within (RODBC library) SQL statements for MySQL
Hi everyone,
I am desperately looking for a method to interpolate strings within an SQL
statement as follows:
I get a lot of rows out of a database (in my example POSITION_to_ZIPCODE
Database with holds records for German ZIP Code <--> Gauss-Krueger
Coordinate System ) and want this to be selected and computed individually
row by row as follows:
library(RODBC)
channel <-
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,
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],
2006 Jan 25
0
Interpolating spline problems and akima
Hi everyone
I was using spline to interpolate single or two consecutive missing data points
in time series. However, when it comes to longer gaps in the data the spline
function generate new data for both my known and unknown data (see below).
Aside from not understanding why this happens, I thought thought I might try
function "aspline" in library (akima). However, I cannot install or
2008 Jul 28
1
Interpolating a line and then summing there values for a diurnal oxygen curve (zoo object)
#I would like to interpolate a straight line between 06/08/06 04:16:00 -
06/08/06 20:31:00 with values and then sum them. This is an estimate of
ecosystem #respiration and I will be using this in a larger context(48 days
of these diurnal curves), but for right now I am just trying to figure out
how to do it for this one #day example. I have some other code for
Ecosystem (stream) Metabolism that
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
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
2006 Dec 12
2
how do you interpolate a gaussian grid to a standard 2.5 degree grid?
Dear R-help community,
I have looked on the R search site and archives but cannot find mention of a way
of interpolating a gaussian distribution of data to a standard 2.5 degree grid.
I have two global dataset and I need to correlate - unfortunately one is a 2.5
degree grid dim[longitude=144,latitude=72] and one is gaussian
dim[longitude=192,latitude=94].
I would rally appreciate hearing
2002 Feb 20
1
Bug in "[<-.matrix"? (Was: Feature Request: "matrix[1:10,1:10, block=F] <- 1:10")
Thanks to David Meyer [david.meyer@ci.tuwien.ac.at] and David Brahm
[brahm@alum.mit.edu] who suggested:
m[ cbind(index.i, index.j) ] <- vals
This works fine for the example I gave.
Unfortunately, this approach doesn't extend to using the row and column
names to make assignments:
> m <- matrix("",ncol=3,nrow=3)
> dimnames(m) <-
2004 Sep 07
1
interpolation of lost frames
Hi,
When an audiopacket is received too late I could interpolate this frame. The problem is that I don't know if it is a true bufferloss or just the last audiopacket of a talkspurt. Now my question is if it's harmfull for the audioquality that at the end of the talkspurt one frame is interpolated? Or would this be almost inpossible to hear since the last audiopacket in the talkspurt
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.
2000 Feb 08
1
DEC cc doesn't like c++ comments (PR#416)
Full_Name: Albrecht Gebhardt
Version: 0.99.0
OS: alpha, osf4.0
Submission from: (NULL) (143.205.180.40)
DEC cc doesn't like c++ style comments // like this one
Please use standard cc comments or #if 0 ... #endif
A quite large patch follows
(I hope it will pass mailing with not too much wrapped lines):
--- ./src/main/g_her_glyph.c.dec-cc.patch Mon Feb 7 14:48:10 2000
+++
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) <-
2006 Jan 06
2
sudoku
Any doubts about R's big-league status should be put to rest, now that
we have a
Sudoku Puzzle Solver. Take that, SAS! See package "sudoku" on CRAN.
The package could really use a puzzle generator -- contributors are
welcome!
-- David Brahm (brahm at alum.mit.edu)
[[alternative HTML version deleted]]
_______________________________________________
R-packages mailing list
2006 Jan 06
2
sudoku
Any doubts about R's big-league status should be put to rest, now that
we have a
Sudoku Puzzle Solver. Take that, SAS! See package "sudoku" on CRAN.
The package could really use a puzzle generator -- contributors are
welcome!
-- David Brahm (brahm at alum.mit.edu)
[[alternative HTML version deleted]]
_______________________________________________
R-packages mailing list
2016 Nov 01
1
Samba-tool SUBDOMAIN Problem
Hi,
i have setted up a DC ESC.LAN, if i try to do "samba-tool domain join
MUNICH.ESC.LAN SUBDOMAIN -Uadministrator" i get the following error, how
can i build up a AD Subdomain (Domain Tree)
[root at MUC-PDC ~]# samba-tool domain join MUNICH.ESC.LAN SUBDOMAIN
-Uadministrator
Administrator password will be set randomly!
Finding a writeable DC for domain 'ESC.LAN'
Found DC