Displaying 20 results from an estimated 400 matches similar to: "Read and merge a number of .xls files into one dataframe"
2010 Sep 13
2
How to tell R that "ABC" is the name of a dataset not a variable value
All,
For example, I have a dataset named "ABC" loaded into R
> ABC
[,1] [,2] [,3]
[1,] 1 4 7
[2,] 2 5 8
[3,] 3 6 9
and I also have a variable datasetname
> datasetname
[1] "ABC"
and I want to add this "ABC" dataset to an existing list "alldata"
> alldata <-NULL
> alldata <- as.list(alldata)
since I will
2008 Dec 07
1
Reading txt file in R
Hi:
I am using the following code to read a data set in txt in R and using the follwoing model. But it seems to give me an error ' expected variable name error pos 134022'. Any help is greatly appreciated.
Code:
anal.data <- read.table("nausea.txt", header=T, sep="\t")
list(names(anal.data))
attach(anal.data)
n.samples <- dim(anal.data) [1] # number of data
2006 Dec 11
5
mysql issue
I am using the following command:
mysql -u cgalliance -p cgatesting < cgavb3.gz
I then type in the correct password and i get this returned:
ERROR at line 1: Unknown command '\'.
Any ideas?
--
My "Foundation" verse:
Isa 54:17 No weapon that is formed against thee shall prosper; and
every tongue that shall rise against thee in judgment thou shalt
condemn. This is the
2009 Jan 13
1
ROR - Excel Export Example
If you are running on Windows you can use create and read speadsheets
using the ''win32ole'' require
This sample should give you the basic idea
------
def export
require ''win32ole''
@sort_by = ''last_name''
current_user = ''steve''
@records = Contact.find(
:all,
:conditions =>
2010 Apr 29
3
convert Factor as numeric
Dear group,
I know this issue has been already covered, and before you reply I must say
I have read the R-FAQ and search the mailing list archive.
I still can't manage to change my factor to numeric as I couldn't find any
clear answer.
Here is my df :
Pose1 <-
structure(list(DESCRIPTION = structure(c(1L, 2L, 3L, 4L, 5L,
8L), .Label = c(" SUGAR NO.11 May/10 ", "COTTON
2008 Aug 09
2
how to interpret t.test output
# Hi all:
#I got a vector with fish lengths(mm)
# Can someone help me interpret the output of
# a t.test in plain english?
# Based on the t.test below I can say that
# I reject the null hypothesis because
# the p-value is smaller than the the significance
# level(alpha=0.05). What else can I conclude here?
Ho = 36 mm
Ha <> 36 mm
fishlength
2013 Jun 03
2
delete active dataset
Hi All, whenever I open R using the shortcut on desktop, there are 2 active
datasets in the workspace, I tried to start the program from Start menu,
same thing!! How can I delete these two active datasets and make sure
whenever I restart the program, they wont appear?
Thanks!
[[alternative HTML version deleted]]
2010 Feb 09
1
Aggregate dataframe variables, return more than 2 vars
Hello r-devel,
I have data.frame with 3 columns and I would like to group by 1 column(id),
find the max of the third column (date) and return the data for that max
date value along with the id and the value in the second column.
Example:
>dat <- data.frame(id = rep(1:3, 3), date = as.Date(rep(c("2005-08-25",
"2005-08-26", "2005-08-29"), each = 3)), decod =
2005 Mar 18
2
logistic model cross validation resolved
This post is NOT a question, but an answer. For readers please disregard all earlier posts by myself about this question.
I'm posting for two reasons. First to say thanks, especially to Dimitris, for suggesting the use of errorest in the ipred library. Second, so that the solution to this problem is in the archives in case it gets asked again.
If one wants to run a k-fold cross-validation
2004 Mar 23
1
nlme question
I have a need to call and pass arguments to nlme() from within another
function. I use R version 1.8.
I have found an apparent way to make this work, but I would appreciate
some comments on whether this fix is really appropriate, or there is
another way to do it that does not involve changing the source code. I
don't have enough experience to start changing the sorurce code of a
library
2005 Mar 17
1
Cross validation, one more time (hopefully the last)
I apologize for posting on this question again, but unfortunately, I don't have and can't get access to MASS for at least three weeks. I have found some code on the web however which implements the prediction error algorithm in cv.glm.
http://www.bioconductor.org/workshops/NGFN03/modelsel-exercise.pdf
Now I've tried to adapt it to my purposes, but since I'm not deeply familiar
2013 Feb 27
1
metafor - interpretion of QM in mixed-effects model with factor moderator
Hi,
I'm using metafor to perform a mixed-effects meta-analysis. I'd like to
test whether the effect is different for animals and plants/whether "group"
(animal/plant) influences the effect size, but am having trouble
interpreting the results I get. I've read previous posts about QM in
metafor, but I'm still a bit confused. I've dummy-coded the factors:
2009 Mar 08
3
xyplot() - can you control how the plots are ordered?
Hi,
I want to control the plots in the output of the xyplot(). It is
easier to explain it through an example:
#-------------------------------------------------------------
library(lattice);
# months
months <- c("Jan", "Feb", "Mar",
"Apr", "May", "Jun",
"Jul", "Aug", "Sep",
2010 Aug 13
1
mlogit error
Hi,
I'm trying to fit a multinomial logistic regression to my data which
consists of 5 discrete variables (scales 1:10) and 1000 observations.
I get the following error:
Error in `row.names<-.data.frame`(`*tmp*`, value = c("NA.NA", "NA.NA", :
duplicate 'row.names' are not allowed
In addition: Warning message:
non-unique value when setting
2011 Aug 15
3
Plot from function
*I have the following function:*
/plot_mi_time = function(mdata, miname) {
mdata2 = mdata[row.names(hakat) == miname, ]
print(mdata2)
xcoords <- c(1,1,2,2,3,3,4,4,5,5,6,6)
plot(c(xcoords), mdata2, xaxt="n", ylab="Expression", xlab="Time(h)", ,
main=miname)
axis(1, at=xcoords,
2011 Oct 26
2
Help with a scatter plot
Hi everyone,
I have some data about a market research which I want to arrange in one plot
for easy viewing,
the data looks something like:
Product Color StoreA StoreB StoreC StoreD Price
ProdA R NA 4.33 2 4.33 35
G NA 4.33 2 4.33
35
B
2001 Mar 10
1
wine-20010305 MS Excel97 *.xls -> .xls.xls
Hi,
If I open up a worksheet in MS Excel 97, the file name is modified
by appending an extra .xls to the name. Multiple .xls's are possible,
and it is not necessary to save the worksheet.
I'm running Wine-20010305 compiled on a SuSE 7.0 running a stock
2.4.2 Linux kernel. MS Excel is being run from an existing Win98
system partition.
Thought someone might want to know,
Dick
--
2011 Mar 14
1
read.xls can't read some .xls files
Hi,
I am having problem with the read.xls function. I am trying to read a .xls
file but
it's giving me error.
> read.xls("XXX.xls")
Error parsing file 'XXX.xls'.
Error in xls2sep(xls, sheet, verbose = verbose, ..., method = method, :
Intermediate file '/tmp/Rtmp5QQjSI/file1665315c.csv' missing!
In addition: Warning message:
running command
2012 Jun 13
1
reading xls files using read.xls and xlsReadWrite
Dear R list,
I am trying to read in .xls files. I have tried using package 'gdata', I
get the following error.
> dataset <- read.xls("June.xls")
Wide character in print at
/Library/Frameworks/R.framework/Versions/2.14/Resources/library/gdata/perl/
xls2csv.pl line 262.
Seems like this is a problem coming from Perl?
I tried to install package 'xlsReadWrite', it
2011 Jun 01
2
re-write plot function for ggplot
Hi, I have the following function that i use to plot graphs.
plot_mi_time = function(mdata, miname) {
mdata2 = mdata[row.names(mir_test3) == miname, ]
# print(mdata2)
xcoords <- c(1,1,2,2,3,3)
plot(xcoords, mdata2, xaxt="n", ylab="Expression", xlab="Time(h)", ,
main=miname)
axis(1, at=xcoords,