Displaying 20 results from an estimated 7000 matches similar to: "write.csv + appending output (FILE I/O)"
2006 Apr 24
6
Handling large dataset & dataframe
Hi,
I have a dataset consisting of 350,000 rows and 266 columns. Out of 266 columns 250 are dummy variable columns. I am trying to read this data set into R dataframe object but unable to do it due to memory size limitations (object size created is too large to handle in R). Is there a way to handle such a large dataset in R.
My PC has 1GB of RAM, and 55 GB harddisk space running
2004 Sep 09
1
Confused about loading other packages from a package
In my package, I create a new method for plot with the following signature:
setMethod("plot", signature(x="marrayNorm", y="formula"), plot.ma)
where marrayNorm is a class defined in the marray package. After
building and installing my package, I get the following warnings when
I load my package (with library(maVis)):
Warning messages:
1: In the method signature
2006 Jun 26
2
write.table & csv help
Hi,
How can I produce the following output in .csv format using write.table function.
for(i in seq(1:2))
{
df <- rnorm(4, mean=0, sd=1)
write.table(df,"C:/output.csv", append = TRUE, quote = FALSE, sep = ",", row.names = FALSE, col.names = TRUE)
}
Current O/p:
x 0.287816 -0.81803 -0.15231 -0.25849 x 2.26831 0.863174
2006 Feb 03
2
rgl install problem on Solaris 10 X86
Hi,
Could you help me to install the rgl package on Solaris 10 x86?
I tried and got the following error messages.
When I compiled my R as 64bit, I used the SUN ProW compilers.
However, gcc seems to being used below as well as missing some information.
Thank you in advance,
Dongseok
> install.packages("rgl")
--- Please select a CRAN mirror for use in this session ---
*
2008 Mar 24
6
vlookup in R
Hi,
Is there are function similar to excel vlookup in R. Please let me know.
Thanks,
Sachin
____________________________________________________________________________________
[[alternative HTML version deleted]]
2006 Dec 17
2
question
Dear R users,
I'am using marray and Limma packages to analyze genepix output.
1) how can I filter bad spots from my data (data contains 3 types of bad
spots).
my experiment contains 12 samples and the bad spot are not associated to the
same probes
2) how can I remove control probes from my data ?
I'm sorry, i'm new with R and I can't find answer in packages doc.
best regards,
2006 Sep 01
1
problem with png
I cannot generate png files running R2.2.1 on a SunOS 5.9 machine. See
below. I did a search on this problem and people who have virtually the
same error have solved the problem by installing or updating libpng .
We downloaded libpng from Sun but still the problem remains. Does a path
within R need to be set to this file or does the problem indicate that
libpng was not installed properly? I
2006 May 23
5
conditional replacement
Hi
How can do this in R.
>df
48
1
35
32
80
If df < 30 then replace it with 30 and else if df > 60 replace it with 60. I have a large dataset so I cant afford to identify indexes and then replace.
Desired o/p:
48
30
35
32
60
Thanx in advance.
Sachin
2006 Sep 15
2
prediction interval for new value
Hi,
1. How do I construct 95% prediction interval for new x values, for example - x = 30000?
2. How do I construct 95% confidence interval?
my dataframe is as follows :
>dt
structure(list(y = c(26100000,
60500000, 16200000, 30700000, 70100000, 57700000, 46700000, 8600000,
10000000, 61800000, 30200000, 52200000, 71900000, 55000000, 12700000
), x = c(108000, 136000,
2008 May 13
2
Plotting Frequency Distribution in R
Hi,
How can plot a frequency distribution curve for the following data.
V1 V2
1 1 160.54%
2 1 201.59%
3 1 18.45%
4 1 179.03%
5 1 274.37%
6 1 0.00%
7 1 24.52%
8 1 39.17%
9 3 43.72%
10 1 53.06%
11 1 64.97%
12 1 79.84%
13 1 98.08%
14 1 115.32%
15 1 127.96%
16 1 155.38%
17 1 157.25%
18 1 193.17%
19 1 51.53%
20 15 99.32%
21 1 106.86%
22 1 219.44%
2006 Jan 09
2
Problem installing from source: no CONTENTS files
I've just had the error below while trying to install a package from
source under R2.2.1 and Windows XP. I recall encountering this
sporadically in the past. It is a pretty confusing message and took me
quite some time to figure out; I've seen queries about it on the R site
search, but couldn't find a reply. There's an attempted diagnosis and
suggested cure below.
2010 Feb 22
9
Couldn't find Order with ID=pending_orders
I have a Controller named Orders which has a pending_orders method
which is expected to fetch some records from the database.
If i dont write a route for this method, I get the following error
when i call this method.
Couldn''t find Order with ID=pending_orders
I am using rails 2.3.5, in the previous versions i use to get this
I am not getting whether its new version requirement...
Help
2005 Dec 01
1
maImage() and layout()
Dear all,
Trying to produce 4 maImage plots (marray package) on the same device (2 on
the top and 2 on the bottom) with the layout() function or the split.screen()
function, we are facing the following problem:
it seems that maImage() does nt care about any of these 2 functions, and
plots only one image at a time.
Maybe this is inherent to this maImage() function, but we did not find
anything
2006 Apr 21
3
Creat new column based on condition
Hi,
How can I accomplish this task in R?
V1
10
20
30
10
10
20
Create a new column V2 such that:
If V1 = 10 then V2 = 4
If V1 = 20 then V2 = 6
V1 = 30 then V2 = 10
So the O/P looks like this
V1 V2
10 4
20 6
30 10
10 4
10 4
20 6
Thanks in advance.
Sachin
2006 Jul 14
2
Recreate new dataframe based on condition
Hi,
How can I achieve this in R. Dataset is as follows:
>df
x
1 2
2 4
3 1
4 3
5 3
6 2
structure(list(x = c(2, 4, 1, 3, 3, 2)), .Names = "x", row.names = c("1",
"2", "3", "4", "5", "6"), class = "data.frame")
I want to recreate a new data frame whose rows are sum of (1&2, 3&4, 5&6)
2011 Mar 25
1
Appending data to a data.frame and writing a csv
Dear R helpers
exposure <- data.frame(id = c(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20),
ead = c(9483.686,50000,6843.4968,10509.37125,21297.8905,50000,706152.8354, 62670.5625, 687.801995,50641.4875,59227.125,43818.5778,52887.72534,601788.7937, 56813.14859,4012356.056,1419501.179,210853.4743,749961,6599.0862),
pd =
2010 Jul 08
2
package installation for Windows 7
Neither biocLite nor the GUI menus can install packages on my system.
Here is relevant output:
> version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 2
minor 11.1
year 2010
month 05
day 31
svn rev 52157
language R
version.string R version 2.11.1 (2010-05-31)
> source("http://bioconductor.org/biocLite.R")
BioC_mirror =
2006 Jan 17
2
Installing a package yet it will not work.
I want R to read my Microsoft Access database or maybe even a Sybase
database. I installed RODBC or at least thought I did. Then I issued the
following command:
library(RODBC)
And got
Error in lazyLoadDBfetch(key, datafile, compressed, envhook) :
ReadItem: unknown type 241
In addition: Warning message:
package 'RODBC' was built under R version 2.3.0
Error: package/namespace
2005 Dec 23
3
copy contributed packages from R 2.2.0 to 2.2.1
hi R-users,
a few days ago R 2.2.1 came out. on my win xp i'installed R 2.2.0. along the time i've installed a lot of contributed packages. my internet-connection is not very fast.
so my question: is it possible after installing R 2.2.1 to do copy/paste the contributed packages from the C:\Programme\R221 to the C:\Programme\R2.2.1- location in the files system?
or have i to download
2006 Aug 25
5
Quickie : unload library
Dear list,
I know it must be obvious and I did my homework. (In fact I've
RSiteSearched with keyword "remove AND library" but got timed
out.(why?)....)
How do I unload a library? I don't mean getting ride of it permanently
but just to unload it for the time being.
A related problem : I have some libraries loaded at startup in .First()
which I have in .Rprofile. Now, I exited R