Displaying 20 results from an estimated 30000 matches similar to: "About scan"
2010 Nov 20
10
An empty grey diagram
Hi folks,
Win7 64bit
R 1.12.0
I run following command on R:-
> ToothGrowth
> attach(ToothGrowth)
> plot(dose,len)
> matrics=lm(len~dose)
> abline(metrics)
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :
plot.new has not been called yet
Only a grey diagram is displayed without content
> plot(abline(metrics))
Error in int_abline(a = a, b = b, h = h, v
2011 Apr 07
2
error reading data help please
Dear Readers,
Sorry to bother you.
Have been try to read my data into R (something I have done in the past) but
having an error message with this one.
Any possible help please?
Thanks.
Oz
This is the error I am getting (please see bold):
> setwd("D:/Replication/")
>library(gmp)
> dataFrame2=read.table("data.txt",header=T)
Error in scan(file, what, nmax,
2010 Nov 14
3
How to permanently remove [Previously saved workspace restored]
Win 7 64 bit
R version 2.11.1 (2010-05-31)
How to permanently remove;
[Previously saved workspace restored]
> rm (list = ls( ))
On next start it still displays;
.....
[Previously saved workspace restored]
There is a file keeping the previous data on Linux
.Rdata
How about on Windows?
TIA
B.R.
Stephen L
2010 Nov 04
5
Logical vectors
Hi folks,
Pls help me to understand follow;
An Introduction to R
2.4 Logical vectors
http://cran.r-project.org/doc/manuals/R-intro.html#R-and-statistics
1)
> x
[1] 1 2 3 4 5
> temp <- x != 1
> temp
[1] FALSE TRUE TRUE TRUE TRUE
>
2)
> x
[1] 1 2 3 4 5
> temp <- x > 1
> temp
[1] FALSE TRUE TRUE TRUE TRUE
Why NOT
> temp
[1] TRUE FALSE FALSE FALSE
2010 Nov 04
5
Logical vectors
Hi folks,
Pls help me to understand follow;
An Introduction to R
2.4 Logical vectors
http://cran.r-project.org/doc/manuals/R-intro.html#R-and-statistics
1)
> x
[1] 1 2 3 4 5
> temp <- x != 1
> temp
[1] FALSE TRUE TRUE TRUE TRUE
>
2)
> x
[1] 1 2 3 4 5
> temp <- x > 1
> temp
[1] FALSE TRUE TRUE TRUE TRUE
Why NOT
> temp
[1] TRUE FALSE FALSE FALSE
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 Sep 17
2
Was the package installed correctly
Hi folks,
On R
> install.packages("TeachingDemos", dependencies=TRUE)
......
installing to /usr/local/lib/R/site-library/mapproj/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
* DONE (mapproj)
The downloaded packages are in
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
2010 Nov 02
5
Question about ggplot2
Dear All,
I am trying to graph a simple scatter plot where the x axis is year
and the y axis is a percentage (percentage of infant death). Instead
of plotting the raw data, I want to plot summary statistics such as
mean and median. Here is the problem: the value range of y is between
0 and 1, but since infant death is a rare event, the mean and median
is very low (something like 5%), which shows
2010 Oct 08
5
saving object function
Ok so if I have a function:
functest<-function(x){
a<-x+1
b<-x+2
c<-x+3
paste(a)
paste(b)
paste(c)
}
Now I know I can do cat(), or return() on one of them but if I was to run
the function with any number, how could I create objects to save so I could
do, I am wondering if I have more than one object within my function.
functest$a
2011 Jun 21
5
omitting columns from a data frame
Dear R People:
I have a data frame, xm1, which has 12 rows and 4 columns.
If I put is xm1[,-4], I get all rows, and columns 1 - 3, which is as
it should be.
Now, is there a way to use the names of the columns to omit them, please?
Thanks so much in advance!
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
2023 Feb 11
1
scan(..., skip=1e11): infinite loop; cannot interrupt
On Fri, 10 Feb 2023 23:38:55 -0600
Spencer Graves <spencer.graves at prodsyse.com> wrote:
> I have a 4.54 GB file that I'm trying to read in chunks using
> "scan(..., skip=__)". It works as expected for small values of
> "skip" but goes into an infinite loop for "skip=1e11" and similar
> large values of skip: I cannot even interrupt it; I
2012 Nov 12
2
how to enter a string value
hi,
I want to know just enter a string value
entering a numeric value is make with the function scan () or scan (nmax =
..)
but it does not work for string
my goal is to enter three string: name and surname and date of birth
I try with this code but it shows me errors
print ("enter the name")
name <- scan (nmax = 1)
print ("enter the first name")
firstName <- scan
2010 Jul 22
5
choosing a random sample by precentage
hi all
i have found the follwoing way to choose a random sample by sample size (200):
ten_per_T2000 <- F_T2000_All[sample(nrow(F_T2000_All), 200), ]
but i wondered if there is a way to choose a sample size by
precentage (10% etc..)
thx
ethan
2010 Oct 04
1
Error message with scan() function
Hi Everyone,
I am new R user and am trying to learn by reading the online manual "An
Introduction to R" from the R web site. I am trying to practice using the
scan() function as explained in the manual. For this I first created three
vectors (one a character vector and two numeric one) and saved file
"input.dat" in my working directory as:
> label <- c("Bill",
2005 Jul 26
1
error with scan
Hi:
I am trying to read a large (500000+ lines) with scan() as read.table
is unable to read it.
I get a strange error (below) which says that 'a real' was expected
and '5' was read. Can someone help?
Thanks,
jp
> type=list(a=0,b=0,c=0,d=0,e=0,f="",g=0,h=0,i=0)
> tmp2 <- scan(file="tmp2.txt", what=type, sep=",",
2011 Jul 16
4
Z-test
Hi,
please could you recommend a R package that computes a 2 sample z-test ?
thanks,
Bogdan
[[alternative HTML version deleted]]
2012 Feb 09
1
scan() doesn't like '1.#IND'
Hi,
Since C++ code compiled with g++ 4.6.3 on Windows (the version included
in latest Rtools) now can produce things like '1.#IND' when writing
doubles to a file (using the << operator), I wonder whether scan()
shouldn't support those things. Right now (with recent R devel and
latest Rtools) we get errors like:
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines,
2011 Feb 02
1
error in scan(...
I know it's a common error and there is a lot of help available but still
can't resolve the issue:
all i am trying to do is to read a csv file from my folder and this is what
i get:
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,
:
scan() expected 'a real', got
'1,m,a,F,165,240,26.5,31,0.738,0.704,1.095,0.606,0.847'
Can you help?
--
View
2011 Oct 10
5
multicore by(), like mclapply?
dear r experts---Is there a multicore equivalent of by(), just like
mclapply() is the multicore equivalent of lapply()?
if not, is there a fast way to convert a data.table into a list based
on a column that lapply and mclapply can consume?
advice appreciated...as always.
regards,
/iaw
----
Ivo Welch (ivo.welch at gmail.com)