Displaying 20 results from an estimated 2000 matches similar to: "problem withrbind function"
2010 Apr 20
2
problem with retreaving column from a data.frame
Hi all,
I have a problem with retreaving column from a data.frame that is
I have a data.frame named "temp"
in that dataframe some column are there whose names are
"IDENTIFIER" "UNIQUEID" "TRIALGROUPSID" "GRPNUMBER"
"GRPDESC" "SEXDID" "STDID" "STUDYTYPE"
"SDID"
2009 Jun 05
1
problem with using subset from two different tables
Hi all,
I am new to R-project my problem is I tried to get subset from two different
tables its giving error
but if i m tring for geting results from one table its working
actually i have to take values from two tables with applying different
conditions on two tables like
kk- is an object of one table and
fk- is an object of another table
here i have to get values from these tables like
2009 Jan 16
6
reading data from Excel Spread sheet
Hi all,
I tried to read data from Excel spread sheet with using
read.csv(file.choose())
and
read.delim(file.choose())
but its showing " *ÐÏ.à.*."
and also i tried with
read.table(file.choose())
then its showing " * V1
1 ÐÏ\021ࡱ* "
can any one suggest how to read data from Excel Spread sheet
2010 Jun 22
3
Problem with writing a CSV file in UTF-8 formate
Hi all,
I have a problem with writing a *.CSV file in UTF-8 formate
I tried to write a dataframe named "dfPREINDX" to the new file named
"preindx.csv" in below formate
write.table(dfPREINDX,PreIndex,fileEncoding="UTF-8",sep="|",row.names=FALSE)
but its throed an error like
Error in write.table(dfPREINDX, "preindx.csv", fileEncoding =
2009 Jun 08
2
problem with bulk insert into a *.csv file
Hi all,
I am trying to create a "index.csv" with caliculating different
types of caliculations .
In that i have to caliculate on 10,000 studies and have to insert many no of
rows more than 500,000
for that right now I am inserting every row after caliculating and doing
data.frame
but its taking much time to create that index.csv
is there any thing like bulk insert in to file
2004 Jun 07
1
Xtable giving an interesting problem
I'm using the current version of xtable for 1.9.0 and I have an
interesting error:
Error in match.names(clabs, names(xi)) : names don't match previous
names:
F value, Pr(>F)
In addition: Warning message:
longer object length
is not a multiple of shorter object length in: clabs == nmi
This is produced in the following manner:
>data.trans <-
2009 Dec 17
2
Problem with spliting a dataframe values
Hi all,
Hi this is kiran
I am facing a problem to split a dataframe
that is..
i have a string like: "a,b,c|1,2,3|4,5,6|7,8,8"
first I have to split with respect to "|"
I did it with command
unlist(strsplit("a,b,c|1,2,3|4,5,6|7,8,8", "\\,"))
after getting that set i made it as a dataframe and it comes like
a,b,c
1,2,3
4,5,6
7,8,8
now i have to
2010 Mar 09
2
Problem with mean
Hi all,
I got one intresting problem with caliculating mean that is
while i am taking mean of values
*0.6, -0.8, 4, -3.8*
using
*val<-c(0.6, -0.8, 4, -3.8)*
*mean(val)*
it given result as
*2.775558e-17*
but the actual result is *"0"*
can any one suggest how can I get correct mean result in this case
can any one suggest how I can farward
thanks in regards
kiran
[[alternative
2009 Feb 02
2
parsing problem
Hi all,
I am trying to parse a vector for caliculating minimum in that vector the
vector having values like
1 Kontrolle
2 Placebo
3 125mg/kg
4 250mg/kg
5 500mg/kg
6 1000mg/kg
hear i tries for comverting it into numeric with using "as.numaric()"
function
but i got values like
5
6
2
3
4
1
it gives 1000mg/kg is the least one
but i have
2009 Feb 09
2
Problem in appending a row to *.csv file
Hi all,
I am new to R-project
I have a problem when when ever I am going to append a row in a *.csv file
that is
in R-project I created one dataframe and I saved it in "res.csv" and again
I got some results in dataframe with same column names and i tried to append
in a new row of same "res.csv" file but its appending again with
columnnaes like
first time when i created
2008 Feb 28
3
datetime on x-axis of plot
Hello, I'm reading Time Series Analysis and its Applilcations with R Examples
and I have a question...
I notice that in the book there are timeseries plots but without the x-axis
being labeled with dates. They are just numbers 1,...50,...100, etc. How
do I get the date to show up on the x-axis?
Here is my dateframe:
> head(myData, 5)
1 2008-01-30 08:30 7.00
2
2007 Mar 05
3
Rbind with data frames -- column names question
As part of my work, I am trying to append matrices onto data frames.
Naively I assumed that when rbinding a data.frame and matrix, the matrix
would be coerced and appended, keeping the names from the data frame.
Clearly, I am not fully understanding the process by which rbind works.
Example code:
> A<-data.frame(1,1,1); names(A)=letters[1:3] ; B<-matrix(0,2,3)
> rbind(A,B)
2009 Nov 11
2
creating custom package and functions
Hi all,
I am new to R-project
I have to create custom package and some required functions in that package
can any one help me how to create a custompackage and how to write my
function in to that package
These things I have to use in many places as per requirements in my solution
please help me to create these custom packages
thanks in advance
kiran.
[[alternative HTML version deleted]]
2009 Nov 10
1
problem with executing r-function from windows command prompt
Hi all,
I am trying to execute one function from windows command prompt
and I am trying to execute queries like source(myRfile.R) but itis
throughing runtime errors can any one help me how can i run my
*.R file and how can i call a function in that *.R file
thanks in advance
kiran.
[[alternative HTML version deleted]]
2010 May 26
1
problem with not in in subseting dataframe
Hi all,
I have a problem while subsetting a dataframe that is
while I am using *%in%* condition like
*stemp<-subset(temp, obj1 %in% obj2,select=c(temp))*
this is working and giving results that what ever is there is both *obj1*and
*obj2*
**
**
but I want to get values which is there in *obj1* but not in *obj2 *
can anyone help me how to get those values.
i tried with *%o%* but i am not
2011 Oct 18
1
How to read data sequentially into R (line by line)?
I have a data set like this in one .txt file (cols separated by !):
APE!KKU!684!
APE!VAL!!
APE!UASU!!
APE!PLA!1!
APE!E!10!
APE!TPVA!17122009!
APE!STAP!1!
GG!KK!KK!
APE!KKU!684!
APE!VAL!!
APE!UASU!!
APE!PLA!1!
APE!E!10!
APE!TPVA!17122009!
APE!STAP!1!
GG!KK!KK!
APE!KKU!684!
APE!VAL!!
APE!UASU!!
APE!PLA!1!
APE!E!10!
APE!TPVA!17122009!
APE!STAP!1!
GG!KK!KK!
it contains over 14 000 000 records. Now
2008 Feb 25
2
Exporting a dataframe from R to Excel
I am trying to export a dateframe created in R:
> Duration_summary
V1 2.5 % 97.5 % V4 2.5 % 97.5 %
[1,] 1 0.46076018 1.128776 1.000000 0.5280828 0.9576338
[2,] 0 0.00000000 0.000000 1.000000 0.1741793 1.2352705
[3,] 1 0.46566719 1.313711 1.000000 0.7233312 1.4097987
[4,] 1 0.38866371 2.453226 0.976024 0.6377314 1.3493957
[5,] 1 0.08894066 1.036830
2009 Oct 19
3
loop and plot
Dear all,
I am stuck at applying loop function for creating separated plots.
I have coding like below:
dataset.table <-
table(data.frame(var1=c(1,2,3,1,2,3,1),colour=c("a","b","c","c","a","b","b")
))
kk = function(f)
{
ls=as.character(f)
pie(dataset.table[ls,],main=ls)
2008 Jan 13
1
Trying to write Merge for more data.frames - Error in match.names(clabs, names(xi))
Dear list members,
I would like to merge multiple dataframes and seems that this task is going
to be required quite often, so I decided to write a simple (pseudo)recursive
merge.
I started with the case when dataframes are merged by rows (0). But there is
a problem when a dataframe to be merged in the step n has some items that
are not in previous ones. Then I get "Error in match.names(clabs,
2001 Feb 08
2
dnbinom(,size<1,)=0 (PR#842)
This came up on r-help but indicates a bug.
dnbinom(x,n,p) calls dbinom_raw(n-1,...)
which returns 0 for n<1.
-thomas
---------- Forwarded message ----------
Date: Thu, 08 Feb 2001 17:10:23 +0000
From: Yudi Pawitan <yudi@stat.ucc.ie>
To: Mark Myatt <mark@myatt.demon.co.uk>
Cc: R-Help <r-help@stat.math.ethz.ch>
Subject: Re: [R] Goodness of fit to Poisson / NegBinomial