Displaying 20 results from an estimated 1300 matches similar to: "Problem in appending a row to *.csv file"
2009 Jan 12
3
merge table rows (\multirow)
Hi:
I need help merging rows.
I am trying to merge the 'Month' column using \multirow. For example for the column 'Week' I want July to be merged into one row(weeks 27,28,29,30) and so on for the following weeks.
Below, I am creating a PDF using Sweave, MikTex,R-2.8.1 and windows XP to show an example.
\documentclass[11pt]{article}
\usepackage{longtable,verbatim}
\title{How to
2009 Feb 07
2
Time Series Graphics - "cannot plot more than 10 series"
Hi Experts,
I would like to present time series data in meaningful way in building
some graphics. I've tried:
(1) plot(ts(mbaye3))
and
(2) plot(ts(mbaye3), start=1990)
But I always get this error-message:
Fehler [error] in plotts(x = x, y = y, plot.type = plot.type,
xy.labels = xy.labels, :
cannot plot more than 10 series as "multiple"
my data:
mbaye3
2009 Feb 27
4
Optimize for loop / find last record for each person
I want to find the last record for each person_id in a data frame
(from a SQL database) ordered by date. Is there a better way than
this for loop?
for (i in 2:length(history[,1])) {
if (history[i, "person_id"] == history[i - 1, "person_id"])
history[i, "order"] = history[i - 1, "order"] + 1 # same person
else
history[i,
2009 Feb 25
4
Have a function like the "_n_" in R ? (Automatic count function )
Have the counter function in R ?
if we use the software SAS
/*** SAS Code **************************/
data tmp(drop= i);
retain seed x 0;
do i = 1 to 5;
call ranuni(seed,x);
output;
end;
run;
data new;
counter=_n_; ***** this keyword _n_ ****;
set tmp;
run;
/*
_n_ (Automatic variables)
are created automatically by the DATA step or by DATA step statements.
*/
/*** Output
2009 Feb 09
2
Dataframes: conditional calculations per row .
Dear Sirs: I've been working with several variables in a dataframe
that serve as part of a calculation that I need to perform in a
different way depending on its value. Let me explain:
The main dataframe is called llmcc
llmcc : 'data.frame': 283 obs. of 11 variables:
$ Area : num 308.8 105.6 51.4 51.4 52.9 ...
$ mFondo : num 30.1 10 10.2 10.2 40.4 ...
$ mFachada :
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
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
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 Jan 23
1
problem in appending data into*.csv file
Hi all,
I got a problem with appending data into the *.csv file
like
abc<-read.csv("bbb.csv") # reading data from one csv file
abc1<-mean(subset(abc,Group=="A"))
hear i have to creat a .csv file and in that i have to create
column's with names *group, mean* and farther i have to caliculate for
Groups:-A, B, C, D, F
and i have to append data to consicutive rows of
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 Jan 28
2
Grouping problem
Hi all,
I have a problem with grouping like I have to give count of employes in each
department like
if in one company there is departments like
Mechanical, Computer, Fitting, electronics and Chemical
hear I have to retreave the number of employes in each department and as
well as
I have to retreave number of John's in each department
is there any function is there which can solve my
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
2009 Mar 10
2
problem with concatinating string while taking as a path of a file
Hi all,
I have a problem with concatinating strings while taking as a path here the
problem is
i have to take path as
FPATH<-"D:\\Kiran"
and file name as
Fname<-"FINDINGS.CSV"
and while I am reading this table I have to take path with using these two
strings because in "FPATH" there is many files like findings.csv,
and path will be
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 22
2
problem with checking wether file is present or not
Hi all,
I have a problem with checking File is present in the directory or not
like
I have a sequence of files in one folder I have to take each file in order
and have to caliculate on those files data but in order some files are
missing for that I have to check and load those files for that I am using
condition like
if(file.exists(findings)==TRUE){}
its giving results for files which are
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
2009 Feb 19
4
problem with comparing a part of string with whole string
Hi all,
I got one problem with comparing strings like if any string is like
"*RIGHT, EPICARDIUM: FOCUS, GRAY-WHITE, SINGLE, APPROX 0.6 CM IN DIAMETER*."
and i have to compare "*GRAY-WHITE*" with the above string
or otherwise i have to compare " *TUMOR BENIGN*" this string
with
"*MEDULLRY TUMOR BENIGN,TYP PHEOCHROMOCYTOMA*"
i
2009 Jan 07
1
problem with initialising R-Project through C#
Hi,
i got a problem with initialising R-Project from C#
in this i m sending what are all the code line I had been written and the
error where i got
sc1 = new STATCONNECTORSRVLib.StatConnector();
sc1.Init("R");
and error at
SCN_E_INVALIDINTERPRETERVERSION -2147221487 0x80040011
can any one suggest how can i resolve it
thanks & regards;
kiran
[[alternative HTML version
2006 Sep 01
1
Players having RTP payload support for Speex
Hi,
We are trying to use Speex for voice encoding along with network
streaming in our live-streaming software. We have had little luck trying
to find players which can support demuxing of RTP payload for speex
(draft-herlein-speex-rtp-profile-02.txt) . Can someone please let me
know if any such players are available which have support for this
draft?
Thanks in advance!
-Kiran
--------------
2009 Jan 20
1
problem with applying where condition
Hi all,
I am a biggener in R-Project
I got one problem with applying *where condition*
like
if 2 tables like
table1:
empid name dep
101 kiran solutions
102 ram testing
103 pavan database
table2:
empid month sal
101 Dec 9500
102 Dec 9800
103 Dec 8500
in first table i have to take *empid* with