Displaying 20 results from an estimated 800 matches similar to: "How to obtain a sequence of dates consisting of only weekdays"
2008 Sep 04
1
text file imported incorrectly
Dear R-users,
When I tried to import a text file (tab delimited) which has 2000+ rows with the following command (With the importData in S, it works though),
x <- read.table(textfile, sep= "\t", skip=5, stringAsFactors=F)
I received the following warning message: Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,: number of items read is not a multiple of
2008 Sep 04
0
Any function to calculate returns
Hi,
Sorry if this may be a simple question. Is there any function to calculate returns (percentage or non-percentage) directly like the function getReturns() in S Finmetrics?
Thanks.
Best Regards,
wy
**********************************************************
The information provided in this e-mail is confidential and is for the sole use of the recipient. It may not be disclosed, copied or
2007 Nov 08
1
Bug (?) in read.fwf
Hi,
I'm trying to use read.fwf
temp = read.fwf ("Raw data.txt", widths = c (11, 21, 10, rep
(16, 6)) ,skip = 2, n = 2, stringsAsFactors = FALSE, strip.white = TRUE)
but no matter what I do the strings are turned into factors. I believe
it's the "n=2" parameter that causes the problem as it seems to work
without this. Am I missing something?
Thanks in advance,
2008 Aug 11
1
A zoo question / problem
Hi
I'm having a problem using the zoo library and I can't see what I'm
doing wrong. For example setting up the data
> t1 = zoo (matrix (1:12, nrow = 3), order.by = as.Date
(c("2008-08-01","2008-08-02","2008-08-03")))
> colnames (t1) = c ("A", "B", "C", "D")
> t2 = zoo (matrix (1:12, nrow = 3), order.by =
2008 Apr 09
11
Number of words in a string
Hi R,
A quick question: How do we find the number of words in a string?
Example:
C="Have a nice day"
And the number of words should be 4. any built in function or?...
Thanks, Shubha
Shubha Karanth | Amba Research
Ph +91 80 3980 8031 | Mob +91 94 4886 4510
Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com
This e-mail may contain
2011 Jun 21
2
Documentation
I am new in R.
Can anyone tell :
1. how we can write our own functions in R ?
2. how we can save those functions and recall to use them?
3. what extensions are used for saving a file?
--
Siddharth Arun,
4th Year Undergraduate student
Industrial Engineering and Management,
IIT Kharagpur
[[alternative HTML version deleted]]
2010 Oct 27
2
Which version control system to learn for managing Rprojects?
Gabor
As someone trying to the rest of my team using Subversion (which I have used for a while, but more as a backup / record of changes), have you a neat / automated way of building a package from a subversion repository?
Thanks
David Jessop
--------------------------
David Jessop
Global Head of Quantitative Research
UBS Investment Research
+44 20 7567 9882
----- Original Message -----
2008 Jun 13
1
Switching the order of legend boxes in a lattice bar graph
I suspect there is a simple solution to this problem, but have been
unable to find it. Below is some code that I have run to create 3
lattice graphs. I have been asked to change the legend so that the
'No' and dark blue are above "Y" and light blue in the legend to
mirror the stacked bars in the graph which feature dark blue above light blue.
I have tried changing the data
2006 Sep 28
2
calling R from within Java, using jri
Hi,
I want to call R from within Java, using jri as per
http://www.rosuda.org/software/jri/
So I am following the instructions in the README file for JRI 0.2-4.
I have run 'sh configure.win' and 'make' and they seemed to be
successful.
(See below for the output from make, for example.)
But when I try 'run.bat rtest' (with and without R command line
arguments)
the output
2008 Apr 02
4
Security issue
Hello,
I am trying to convince our IT Manager that R is as safe as possible from IT security point of view - could you point me to something on the web / some reasons for why this is true? I do not think he has a specific concern but does not know the software and would like to understand the security implications.
Thanks in advance
Best Regards
Martin Hanek
Actuarial Analyst
Glacier
2010 Jun 20
6
Popularity of R, SAS, SPSS, Stata...
Hi All,
I've been fiddling around with various ways to estimate the popularity
of R, SAS, SPSS, Stata, JMP, Minitab, Statistica, Systat, BMDP, S-PLUS,
R-PLUS and Revolution R. It's not an easy task. You can see what I've
come up with so far at http://r4stats.com/popularity . I'm sure people
will have plenty of ideas on how to improve this, so please let me know
what you think.
2010 Jun 16
4
questions on some operators in R
Hi all,
I have two questions. Can some one give some help?
The first question is regarding the pair of operators "&" and "&&". What
is the
difference between the two?
The second question is regarding "<-" and "=". Usually we use
"<-" as the assignment operator. I saw some people use "=". Is there
any
2008 Jun 18
4
Editor for Mac OSX
Dear R-list
I am (forced) to change from Linux to Mac and am now looking for a new editor for R. I would like one that features a split window (console + editor) as well as syntax highlighting. Can anyone help? Especially the split-window feature does not seem to be easily available in the editors desribed on the R-help site, except Emacs, which I am reluctant to start using. I am on a MacBook Air
2007 Feb 05
2
Rconsole - setting the size and location of Windows help files (Rgui)
Hi,
Using the Rconsole file I can specify the size and location of the Rgui
windows on NT.
e.g.
# Dimensions (in characters) of the console.
rows = 51
columns = 100
How can I specify the size of the help windows that popups
when I ask for help? e.g. '?help'
I would like the popup window to have say rows = 51 and columns = 100,
just like the main window but a different location on the
2006 Mar 25
14
Creating a symbolic link within a Rails application?
Hi, how does one create a symbolic link within a Rails application? At this
time, I can perform this action at the command line but I''m not sure how to
do it within Rails. BTW, I''m doing the following command in Mac OS X:
ln -s $SITE_ROOT/common_directory/* $SITE_ROOT/new_directory
Thanks in advance,
-Conrad
-------------- next part --------------
An HTML attachment was
2008 Nov 25
3
Line color based on data values?
Hi all
Does anyone know if it is possible when plotting a line or scatter plot, to selectively color the data points based on the data value? i.e. if plotting say the percentage change in stock price movements, to color +ve points in green and -ve points in red? And extending this to a user-defined range of colors based on the quartile of the data points?
Thanks
Rory
Rory Winston
RBS Global
2011 May 02
7
ATA refuses to answer a call?
I'm kind of at a loss to diagnose problems like this, yet we get them a lot.
- The ATA (Thomson 784 in this particular case) is logged into the
Asterisk server. 'sip show peer' shows their IP address, port, and
useragent.
- The ATA is connected directly to the internet (no NAT, but the sip
configuration has nat=always) and logs in to our server, which is also
directly connected to the
Unable to figure out why a photo attribute of the paperclip plugin is not being passed in as a param
2011 May 20
4
Unable to figure out why a photo attribute of the paperclip plugin is not being passed in as a param
Hello all,
I am trying to implement a feature in my app where a user posts a
message along with an image.
This is something similar to what is there in `www.diasp.org` .
I dealing with a pretty much outdated configuration of Rails 2.0.2 and
Ruby 1.8.7 , both running on Ubuntu 10.04 OS for project specific
purposes.
Initially, I found a problem in finding an appropriate plugin for
paperclip
2012 Dec 06
3
Proper way to call variables from a parent class to a child class
I currently have a child class of a parent one. The parent defines
some variable that I need to use in the child class. I am also using
gepetto. Gepetto is complaining about the syntax of the child variable.
It is saying that "$parentVar" should be "$::parentVar" however, when
changing to what Gepetto wants to use this breaks my classes. Does anyone
know the proper
2004 Sep 29
2
defining a template for functions via do.call and substitute.
Hi,
Given a function
fun <- function(a, b) a + b
how do I generate the function 'function(x, y) x + y'?
Working from the help files and Bill Venables' R-news article (June 2002),
I have tried various permutations with substitute without success.
e.g.
do.call("substitute", list(fun, list(a = as.name("x"), b = as.name("y"))))
Regards,
John.