I am using read.table to import a text file within R.
There are several "errors" in my text file. An "extra" quotation mark has
inadvertently been included within a few text fields.
e.g. for a pipe (|) delimited text file, I have something similar to this:
1|7|30| "dog"
2|6|25| ""cat"
3|4
I am using R 2.11.1 in a Microsoft Windows 7 environment.
I tried using WriteXLS, but get the message " In system(cmd) : perl not found"
What is the "easiest" way to write an R dataframe to Excel? (I am familiar
with
WriteXLS, but I do not have PERL installed, and if not needed, do not wish
I am using R 2.11.1 in a Microsoft Windows environment. Is there a way to load
a
package (e.g. the zoo package) using only "written code", not menus or mouse
clicks?
The "code" below code brings up the "Select One" [package] menu. I just want
to
automatically load the "zoo package".
local(
Is there a "more efficient/elegant" way to obtain the result "z" below.
a <- c('pink','pink','blue','blue','gold','gold')
b <- c(5,8,9,12,7,4)
agg <- aggregate(x=b,by=list(a), FUN='mean')
m <- match(a, agg[,1])
z <- agg[m,2]
z
[[alternative HTML version deleted]]
___
4 matches
Mail list logo