Displaying 20 results from an estimated 20000 matches similar to: "'scan' in a script?"
2009 Jul 03
5
What command lists everything in a package?
Hi,
Two easy questions I'm sure.
1) As an example if I use the code
require(zoo)
then once it's loaded is there a command that lists everything that
zoo provides so that I can study the package?
Certainly help(zoo) gives me some clues about what zoo does but I'd
like a list. Maybe there's a way to query something but in Rgui under
Win Vista ls() returns nothing after zoo
2009 Jul 24
4
Include files?
Hi,
I have 15 or 20 functions I've written to convert the sort of data
I'm working with. They are currently in their own R file which I load
by hand in Rgui before loading and running my main programs.
Is there any way to have this file included in my R program like
#include might in C?
If not is there a simple newbie-type example of how to create a
package so I could just say
2005 Apr 28
4
wine-20050419 - where to set audio driver type?
Hi,
In a completely clean account that's never run Wine before I run
wine --version. Wine installs a new .wine directory but this Wine
directory has no config file. I looked in the 3 obvious files but none
of them seem to have an option for changing between OSS, Alsa and
JAck. where do I make this setting change now?
Thanks,
Mark
2005 Oct 23
1
Re: winebuild problems - wine-20050930 [SOLVED]
Sorry for the noise.
On 10/23/05, Mark Knecht <markknecht@gmail.com> wrote:
> On 10/23/05, Mark Knecht <markknecht@gmail.com> wrote:
> > Hi,
> > Does anyone know what happened to the --debug option in winebuild?
> > It seems to have disappeared in more recent versions of Wine.
> >
> > I am attempting to build a program that uses winebuild with
2009 Jul 22
5
Multi-line comments?
Hi,
I looked in the language definition and was surprised. Is there
really no multi-line/block comment defined in R?
I wanted to comment out 20 lines that I'm moving to a function but
didn't want to delete them. Is there no defined way to get around
using a # on each of the 20 lines?
Thanks,
Mark
1999 Nov 24
2
scan error (PR#342)
It seems to me the following should work (in fact, it comes from
someone's SPlus file). Instead, it reads the first 8 lines and then
spits out syntax errors. Using nlines=36 works. Using nmax does not.
Intel RH5.2 with R90.0. Debugging shows it must be internal. Jim
junk <- scan(file="",list(i=0,r1=0,r2=0,lull="",day=""),n=5*36)
1 3 5 no 1
2 1
2009 Jul 10
2
ReShape/cast question - sum of value in table
Hi,
I've tried to capture the basics of this problem I'm having. Been
working on this for a couple of days and just cannot get past it. As a
test of this list software I've attached is a small text file zipped
up. I hope it gets through but if it doesn't I'll post the actual text
which is only 26 lines. Put it somewhere sensible and change the first
line in the code to point
2009 Jul 02
2
Plot two graphs with different ranges in one
Hi, I'm trying to plot two variables in one graph. One ranges between 0 and
1, while the other ranges between 50 and 500. Can I plot them in one graph
with similar scale?
Thanks
Harry
[[alternative HTML version deleted]]
2009 Jul 26
2
More complicated multi-plot layouts?
Hi,
I made the attached picture by mocking up three separate plots sort
of like how I'd like to make a new plot. Hopefully it will get through
to the list.
Is there a way to do this directly using par somehow? Or one of the
other plotting packages? Basically, multiple larger plot above
multiple groups of smaller plots? The smaller plots are just
par(mrow=c(2,3)) things, and I can
2012 Dec 02
6
Warning message: In scan(file, what, nmax...)
Dear R-users,
When i try -
Data1<-read.table("/Users/kama/Analysis/GDP10.csv",header=TRUE,sep=";") i
am getting this error: Warning message: In scan(file, what, nmax, sep, dec,
quote, skip, nlines, na.strings, :
number of items read is not a multiple of the number of columns
I wonder what Iam doing wrong. i guess it is something simple, however, i do
not understand
2010 Feb 27
2
scan and skip - without line breaks in the input file
Dear all,
I am trying to read in big amounts of data with scan. It's only one variable, numeric values, separated by tabs,.. and it's many of them. So I was thinking that I could use the skip option and read in 100000 values at a time - but skip doesn't work, probably because I don't have line breaks in the txt file. So any value specified for skip makes the scan function jump to
2009 Jul 11
1
sort data.frame by specific date column
I have a data.frame that was built from a number of smaller
data.frames with rbind. Each ssmaller data.frame bound together runs
over the same date ranges. The format of the whole thing looks like
this:
Trade PosType EnDate EnTime ExDate ExTime PL_Pos
1 1 1 1040107 915 1040107 1300 164
2 2 1 1040108 909 1040108 1300 184
3 3 1 1040115
2010 Aug 18
1
About scan
Hi folks,
I followed an online example to input data;
> x = scan(1,2,3,4,5)
Error in scan(1, 2, 3, 4, 5) :
either specify 'nmax' or 'n', but not both.
It can't work.
> x = c(1,2,3,4,5)
> x
[1] 1 2 3 4 5
It works.
Whether "scan" is replaced with "c" ?
> ?c
.....
Usage:
c(..., recursive=FALSE)
TIA
B.R.
Stephen L
2009 Sep 09
3
lag a data.frame column?
Sometimes it's the simple things...
Why doesn't this lag X$x by 3 and place it in X$x1? (i.e. - Na's in
the first 3 rows and then values showing up...)
The help page does talk about time series. If lag doesn't work on
data.frame columns then what would be the right function to use to lag
by a variable amount?
Thanks,
Mark
X=data.frame(x=seq(1:10))
X$x1=lag(X$x, 3)
X
2009 Jul 06
2
ReShape chicks example - line plots
Hi,
In the examples from the ReShape package there is a simple example
of using melt followed by cast that produces a smallish amount of
output about the chicks database. Here's the code:
library(reshape)
names(ChickWeight) <- tolower(names(ChickWeight))
chick_m <- melt(ChickWeight, id=2:4, na.rm=TRUE)
DietResults <- cast(chick_m, diet + chick ~ time)
DietResults
My challenge
2009 Sep 20
2
Date/Time to date & time
Hi,
Can strptime (or some other function) help me turn the following
column of a data.frame into two new columns, one as date and the other
as time, preserving the AM/PM value?
Thanks,
Mark
> B
ENTRY DATE
1 3/23/2009 6:30:00 AM
2 3/23/2009 6:30:00 AM
3 3/23/2009 6:39:00 AM
4 3/23/2009 6:39:00 AM
5 3/23/2009 6:48:00 AM
6 3/23/2009 6:48:00 AM
7 3/23/2009 7:00:00 AM
2006 May 06
2
Winetools - Java?
Hi,
I wonder if I'm just missing it. Does Winetools have any built in
support for installing Java to run under Wine?
I want to use a web site (Streetsmart.com) that is restricted to
using IE. I've got IE running under Wine but now need Java support to
continue forward.
Thanks,
Mark
2009 Jul 07
4
Test for X=1 fails, test for >0 works, data in text file is 1
Hi,
I am apparently not understanding some nuance about either the use
of subset or more likely my ability to test for a numerical match
using '='. Which is it? Thanks in advance.
I've read a data file, reshaped it and then created MyResults by
keeping only lines where the value column is greater than 0. So far so
good. The data in MyResults looks good to me by eye.
The
2008 Apr 04
3
After years - goodbye to Wine-Users
After being on this list for years, mostly as a lurker and sometime
participant, I find that due specifically to the new changes in list
membership via the forums that it's time for me to unsubscribe. While
I think it's a very healthy in the long run to have more folks
participating in Wine's growth I also find the quality of the emails
coming across my desk to be significantly less
2009 Jul 19
3
ifelse choices in a data.frame?
Hi,
In my data.frame I wanted to essentially write
If(Test) c*d else c+d
but that doesn't work. I found I could do it mathematically, but it
seems forced and won't scale well for nested logic. I have two
examples below writing columns e & f, but I don't think the code is
self-documenting as it depends on knowing that Test is a TRUE/FALSE.
Is there a better way to do the