similar to: R newbie example code question

Displaying 20 results from an estimated 5000 matches similar to: "R newbie example code question"

2009 Aug 24
1
unix like commands in R?
Dear List: I am trying to find a command in R which is like the unix command "less" or "more" to show the data in a object of R. did anyone can help me on this? Is there a collection of such unix-like commands in R? Thanks. -ZRL [[alternative HTML version deleted]]
2004 Feb 06
4
more or less pager
R-users, (forgive my return adres) I've been breaking my head why R---which i find fabulous, by the way---does not pipe interactive output through a pager (more or less), like it does with help(), or like GNU Octave does with arrays with more than terminal height rows. Maybe it is my installation (Debian/GNU Linux). Maybe it is my configuration, but i don't think so because with
2006 Jan 04
1
R newbie configuration
I think I did enough reading on my Own about startup ( part of the morning And most of this afternoon ) to not feel uncomfortable asking for confirmation of my understanding of this startup stuff. Obviously, the startup process is more complicated Than below but, for my R newbie purposes, It seems like I can think of the startup process as follows : Suppose my home directory =
2006 Jan 03
5
newbie R question
I'm sorry to bother everyone with a stupid question but, when I am at an R prompt in Windows, is there a way to see what packages you already have installed from the R site so that you can just do library(name_of_package) and it will work. I've looked at help etc but I can't find a command like this. Maybe there isn't one which is fine.
2006 Jan 11
2
a series of 1's and -1's
Does anyone know of a simple test in any R package that given a series of negative ones and positive ones ( no other values are possible in the series ) returns a test of whether the series is random or not. ( a test at each point would be good but I can use the apply function to implement that ) ? thanks.
2005 Dec 29
1
R and read.irts
I thought r-help let you attach asci files but I don't think it does now so below is a sample of my data set. Thanks again. 09:40:08.5238,67.00,33 09:40:09.1968,67.00,2 09:40:09.7945,67.00,2 09:40:09.7975,67.00,2 09:40:09.8318,66.99,-3 09:40:17.6335,66.95,3 09:41:09.3393,66.95,6 09:41:11.1482,66.95,-1 09:42:07.4552,66.90,-5 09:42:12.5823,66.85,-5 09:42:14.4329,66.80,-2
2005 Dec 28
1
FW: R and read.irts
I have never worked with R before so I am sorry if this is a bad question but I've tried and tried ( all day ) and I can't figure this problem out. I have the code below and I included the data file as an attachment. The code works in term of reading in the data correctly but when the graph gets created, the xaxis is really strangely/incorrectly labelled. I have been trying to understand
2006 Jan 05
0
.Rprofile files (was R newbie configuration)
Thanks a lot. setHook is Currently not in my knowledge set But it's great to save these Thing so I can look them up When I feel more comfortable. Just to add to that Stata versus R discussion : I believe, anyone who uses any other package than R, is probably missing out in the long run. It's truly unbelievable what has been done here. I feel like I fell asleep for 5 years ( by not using
2004 Jun 09
1
Re: R equivalent of Splus rowVars function
Mark Leeds <mleeds at mlp.com> wrote (to S-News): > does anyone know the R equivalent of the SPlus rowVars function ? Andy Liaw <andy_liaw at merck.com> replied: > More seriously, I seem to recall David Brahms at one time had created an R > package with these dimensional summary statistics, using C code. (And I > pointed him to the `two-pass' algorithm for variance.)
2005 Dec 30
1
ESS and Emacs
I have been using the document written by John Fox titled Sn Introduction to ESS + XEmacs for Windows Users of R. It's a very nice document and I went through it carefully but I got an error when I finished it and launched XEmacs. The error is "cannot open load file : ess-site". So, I did more investigation and it seems like there is a folder Program
2006 Jan 06
1
Using R in a production /real time windows environment
I just had a question for anyone who has done this. I am currently using R in a research environment but I was wondering if anyone has had experience using it in a production/real time environment where data is coming in quite quickly ( every second or so ) and things have to be calculated quickly and sent back out to some kind of front end.GUI environment Was this successful or difficult and
2006 Jan 12
1
I think simple R question
I have a vector x with #'s ( 1 or -1 in them ) in it and I want to "mark" a new vector with the sign of the value of the a streak of H where H = some number ( at the next spot in the vector ) So, say H was equal to 3 and I had a vector of [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 1 -1 1 1 1 -1 1 1 -1 -1 then, I would want a function to
2006 Jan 12
1
I think not so hard question
I'm sorry to bother this list so much But I haven't programmed in A while and I'm struggling. I have a vector in R of 1's and -1's And I want to use a streak of size Y To predict that the same value will Be next. So, suppose Y = 3. Then, if there is a streak of three ones in a row, then I will predict that the next value is a 1. But, if there is a streak of 3 -1's in
2006 Jan 11
1
complex matrix manipulation question
I've done stuff like this before but it's been a while and I'm stuck. Suppose I have a matrix with one column x and another column y and both are numeric and let the row index of the matrix be i Starting at index i ( i would equal on the first iteration ) when the cumulative sum of x_i+1 - x_i is greater than W = some constant, I want to mark that spot in the row, call it i^* and
2016 Oct 31
5
[PATCH 0/4] supermin: use dnf on Mageia
Hi, as pointed out by Neal Gompa, Mageia recently introduced dnf in the distribution (currently only in Cauldron, which is the future Mageia 6), and most probably it will replace urpmi in the future. As such, on Mageia make supermin prefer dnf over urpmi when found, using the same code already used for Fedora. Related change: make test-harder.sh work explicitly also on Mageia
2011 Sep 23
1
should dir(all=TRUE) return "." and ".."?
dir(all=TRUE) returns the file names "." and ".." while dir(recursive=TRUE, all=TRUE, include.dirs=TRUE) does not. I always filter out the "." and ".." entries and was wondering if anyone would mind if dir(all=TRUE) just omitted them? It might make recursive file operations like cleaning out a directory safer, as unlink(recursive=TRUE, dir(all=TRUE,
2014 Nov 24
5
[PATCH] rpm: use librpm's rpmvercmp
Bind and use rpmvercmp to compare versions of packages when sorting them, instead of an own string-based comparison function. --- src/librpm-c.c | 12 ++++++++++++ src/librpm.ml | 1 + src/librpm.mli | 1 + src/rpm.ml | 2 +- 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/librpm-c.c b/src/librpm-c.c index 1ae3bad..fc847d6 100644 --- a/src/librpm-c.c +++
2019 Feb 14
1
Proposed function file.backup
Dear R Core: In the kutils package, I wrote a function that is so handy that I would like to ask you put it in R itself. file.backup() will look at a file, find its last modification time, and create a new backup with a name that appends YYYYMMDD-HHMM to the file name. So now, whenever I worry that running write.csv or saving a graph might destroy something valuable, I use an idiom like fn
2003 Dec 20
1
rsync "hang"
Hello rsync list, I am running a Solaris 8 system and have rsync 1.6.2 protocal 14 installed. We have updated (wed 17-dec) to the latest Solaris 8 recommended patch set. When performing an rsync of two local UFS partitions rsync "hung", never completed, didn't exit. What I forced an exit via kill signal core dumped. Config of disks is that 1) Mirror by Solistice Disksuite rsync to
2011 Jul 13
4
use of MAILTO variable in crontab
I want to do something like this: 30 2 * * * MAILTO=testaddr at harte-lyne.ca; echo "this should be mailed" I have searched extensively and from what I have read I believe that this should work. But evidently I misapprehend how cron and MAILTO is supposed to work as my example does not cause any mail to be sent as far as I can determine from maillog. How does one specify unique