Displaying 4 results from an estimated 4 matches for "intabl".
Did you mean:
intall
2005 Aug 22
3
read a table ignoring specific rows ?
...tion, surely quite naive.
(I searched on the R site but was unable to find by myself).
I have a table, called infile :
1 2 3
4 5 6
7 8 9
I would like to read it and ignore the rows with 1st element > 3
I do it now with a for loop, and it's ok,
but I was expecting something simpler, like :
intable = read.table(infile);
newtable = intable[isgoodrow(intable)];
where : isgoodrow = function(therow)
{if (therow$V1 > 3) return(F) else return(T);};
(... but this don't work).
So, could somebody please tell me if there is a way to read
a table ignoring specific rows, without using a for...
2012 Feb 15
1
Using R with Netezza
...e server, but cannot get any of the
Netezza-specific R functions to work that exist in the package called "nza".
Specifically I am trying to start with a simple function from this package,
for example "nz.corr".
I am typing the syntax as given in the manual as follows:
nz.corr(intable="mytable", X="x", Y="y", outtable="anothertable")
Here is my syntax:
nz.corr(intable="JMF_TEST_LOOP2",x="PAGE_REFRESH_ID",
y="PAGE_REFRESH_ID2",outtable="JMF_TEST_LOOP3")
but I receive the following error:
Error in n...
2005 Oct 03
3
Save output
Dear R-Mastermind
Within a while or a for-loop, is there a way that I can save to disk the
results of the previous calculations at the end of each loop with filenames
called "file01.Rdata", "file02.Rdata" etc?
So far, I have tried to write the outcome of each loop in a 3 dimensional
array and saved it just once after the loop. Or is there another way so that
I can keep
2005 Sep 22
7
Automatic creation of file names
Dear R-Help members,
I have a question about how to save to the hard drive the one thousand
datasets I generated in a simulation. The datasets are created in a
"for" loop that repeatedly creates normally distributed datasets, such
as the example below:
Library(MASS)
for (number in 1:1000) {
dataset = mvrnorm(n = 400, mu = c(0,0,0),
Sigma =