Displaying 20 results from an estimated 4000 matches similar to: "strip white in character strings"
2007 Dec 04
6
Is R portable?
Recently I came across an interesting web site:
http://portableapps.com/. The idea is simple, this is software that
is possible to install and run on some type of USB memory, a stick or
one of these hard disks. I can think of a number of situations where
this could be handy. In addition memory sticks are getting cheaper
and more powerful by the day.
So: Is it possible to run R off one of
2007 Apr 30
3
Read every second line from ASCII file
Dear all,
I have an ASCII file where records are separated by a blank. I would like to
read those data; however, only the data in rows 1, 3, 5, 7, ... are
important; the other lines (2,4,6,8,....) contain no useful information for
me.
So far I used awk/gawk to do it:
gawk '{if ((FNR % 2) != 0) {print $0}}' infile.txt > outfile.txt
What is the recommended way to accomplish this in R?
2008 Feb 13
4
writing a simple function
Dear lists,
any suggestion on how to write a function to return a TRUE if interval [a,b] overlaps the interval [c,d]. I've tried it but an error occur saying that 'could not find function v ; in addition warning message occur'. Below is my codes.Please help me sort this problem as i'm in process of learning of writing a function. Many thanks
overlap<-function(m,n){
2008 May 29
3
Datasets in R
I?m trying to find datasets that will give me residuals, after applying
the lm function, with no normality, non linearity, and heteroscedacity
so I can try to exemplify
those cases in the linear regression model. Can you give any advice on
what datasets would be appropiate? I can?t use the ones in the alr3
package because those have
already been seen in class.
Thank you very much :-)
natorro
2008 Feb 01
1
display pictures
Dear all,
is there a possibility to display pictures (jpegs, pngs, ...) in R?
Maybe the following (hypothetical) code makes it clearer what I have in
mind:
plot(x=0:100, y=0:100, type="n")
rect(xleft=25, xright=75, ybottom=30, ytop=95, fill="apicture.png")
Thank you,
Roland
[[alternative HTML version deleted]]
2007 Feb 09
3
two perspective plots in in plot
Dear all,
I would like to put two perspective plots into one plot. The help page
for ?persp shows how one can add points and lines but not another
perspective plot.
data(volcano)
z <- 2 * volcano # Exaggerate the relief
x <- 10 * (1:nrow(z)) # 10 meter spacing (S to N)
y <- 10 * (1:ncol(z)) # 10 meter spacing (E to W)
## Don't draw the grid lines : border = NA
persp(x,
2008 Aug 12
7
ignoring zeros or converting to NA
Hi everyone,
I have a matrix that has a combination of zeros and NAs. When I perform
certain calculations on the matrix, the zeros generate "Inf" values. Is
there a way to either convert the zeros in the matrix to NAs, or only
perform the calculations if not zero (i.e. like using something similar to
an !all(is.na() construct)?
Thanks,
rcoder
--
View this message in context:
2002 Sep 20
1
Trouble in running Rcmd --check on Windows 2000.
Hi!
My Platform:
Windows 2000
R version >1.5
Active Perl 5.6
Rtools at the start of the PATH.
I am trying to build a package. The functions are written only in R (no C code). I am trying to proceed as described in R-exts.pdf
But instead to get a build package i am getting (see below). At first glance it seems to me that i understand the output. At something similar i am looking most of my
2012 May 21
16
Contactos en Madrid-ayuda con instalación
Hola a todos,
Mi nombre es Juanjo. Llevo un tiempo intentado hacer funcionar un programa
que necesita de la instalación de RPROJECT y REXCEL. He mirado varias guías
e instalado los programas pero obtengo varios errores.
El principal es que tras instalar RProject, Rexcel y statcon y al intentar
correr esta macro desde Visual Basic…
Sub Start()
RInterface.StartRServer
2001 Nov 22
2
Using rsync from Windows
I've just installed the Cygwin version of rsync, with an aim of
syncing to the development version, as recommended on
<http://cran.r-project.org/sources.html>. Could someone give an
example of the syntax to invoke it? From the man page, I expected
rsync rsync.rproject.org::
to give me a file listing, but I get:
unknown host: rsync.rproject.org
Other network utilities (e.g. ssh)
2013 Apr 15
6
how to transform string to "Camel Case"?
Dear all,
Given the following vector:
> (z <- c('R project', 'hello world', 'something Else'))
[1] "R project" "hello world" "something Else"
I know how to obtain all capitals or all lower case letters:
> tolower(z)
[1] "r project" "hello world" "something else"
> toupper(z)
[1] "R
2003 Jul 08
3
Characters and Numeric Values in One Matrix
Dear R-Users,
I want to ask a question for a colleague of mine. He wants to put a
character vector and a numeric vector into one matrix and still have the old
character and numeric type for the respective columns.
Unfortunately, I am just starting using R and I could not help him.
Is there an easy and straightforward way to do this in R?
Maybe a little example facilitates understanding our
2006 May 17
5
Convention difference in tseries.maxdrawdown (PR#8872)
Full_Name: Brian K. Boonstra
Version: 2.2.1
OS: WinXP, OSX
Submission from: (NULL) (63.172.178.137)
The maxdrawdown function in tseries defines the maximum drawdown in terms of
absolute dollars (or whatever units the input is in). Industry convention is to
do this in percentage terms. I have written the code below as
maximumdrawdown(), which retains backward compatibility with the current
2009 Mar 18
1
lm function (PR#13608)
Full_Name: Michael Aaron Karsh
Version: 2.8.0
OS: Windows XP
Submission from: (NULL) (75.61.109.172)
I tried using the lm function to regress the third column listed below on the
second column listed below. It gave me an error message. My code is below.
> HDISWLSdata=read.table("RHDISWLS.txt")
> HDISWLSdata
V1 V2 V3
1 DENMARK
2008 Feb 18
0
HAML: strip white space from output?
Hi all
Is there an option for HAML that strips all unnecessary white space,
line breaks etc. from the output to save some bandwidth? For SASS I
found such configuration, but not for HAML...
Thanks for info.
Josh
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on
2005 Oct 25
0
Can anyone please tell me how to strip the white spaces f rom a character vector?
If you are interested in trimming leading and trailing whitespace (and not
interior whitespace), you can use the 'trim' function from the 'gdata'
package.
-G
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of roger bos
> Sent: Tuesday, October 25, 2005 8:52 AM
> To: (r-help at
2005 Jan 03
1
Black and white graphics and transparent strip panels with lattice under Sweave
What is the most elegant way to specify that strip panels are to have
transparent backgrounds and graphs are to be in black and white when
lattice is being used with Sweave? I would prefer a global option that
stays in effect for multiple plots.
If this is best done with a theme, does anyone have a lattice theme like
col.whitebg but that is for black and white?
I'm using the following
2008 Feb 26
1
How can I call cheap to UK cell phones
Greetings,
How can I call cheap to UK cell phones. I am located in Toronto, Canada, but
need to call UK cell phones both from Toronto and London.
--
Zeeshan A Zakaria
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080226/480f7a28/attachment.htm
2009 Mar 30
1
Comparing Points on Two Regression Lines
Dear R users:
Suppose I have two different response variables y1, y2 that I regress separately on the different explanatory variables, x1 and x2 respectively. I need to compare points on two regression lines.
These are the x and y values for each lines.
x1<-c(0.5,1.0,2.5,5.0,10.0)
y1<-c(204,407,1195,27404313)
x2<-c(2.5,5.0,10.0,25.0)
y2<-c(440,713,1520,2634)
Suppose we need to
2012 Mar 14
3
Problem installing RMySQL package!
I am facing issues while installing RMySQL package on windows(32 bit) installation of R-Project.
I am getting the following warning messages.
Warning messages:
1: running command 'C:/PROGRA~1/R/R-213~1.2/bin/i386/R CMD INSTALL -l "C:/Program Files/R/R-2.13.2/library" D:\DOCUME~1\nagga002\LOCALS~1\Temp\RtmpLZndlE/downloaded_packages/RMySQL_0.9-3.tar.gz' had status 1
2: In