Hi,
i have a dataframe containing some values.
for eg:-
MyDataFrame<-
Name Age Place
--------
Aby 12USA
Raj25UK
Romi32ENG
Amy 31IND
My requirement what is, i have a search key word[it should search fr
Thank you David.
From: David Winsemius [via R]
[mailto:ml-node+s789695n4642725...@n4.nabble.com]
Sent: Tuesday, September 11, 2012 12:53 PM
To: Akkara, Antony (GE Energy, Non-GE)
Subject: Re: Searching from Dataframe.
On Sep 11, 2012, at 12:11 AM, Rantony wrote:
> Hi,
> i
From: Rantony [via R] [mailto:ml-node+s789695n464274...@n4.nabble.com]
Sent: Tuesday, September 11, 2012 4:30 PM
To: Akkara, Antony (GE Energy, Non-GE)
Subject: Re: Searching from Dataframe.
And how to get the vector from a list if the list item found inside ?
for eg:- MyList<- c(
How can I get index from a list if I know the listitem ?
For eg:- Mylist<-c("A","B","C")
Acually,Here I need to get the index of "B" as 2.
From: arun kirshna [via R]
[mailto:ml-node+s789695n4642756...@n4.nabble.com]
Sent: Tuesday, September 11, 2012 5:56 PM
To: Akkara, Antony (GE Energy, No
And how to get the vector from a list if the list item found inside ?
for eg:- MyList<- c("US","UK","UAE")
Here i want to check a list item UAE which is in 3rd row.
How i will get that row position ?
- Thanks in advance
Antony
--
View this message in context:
http://r.789695.n4.nabble.com/Se
Hi,
i have an small doubt.
How can we remove serial-number column while writing a dataframe in to a csv
file ?
for eg:-
write.csv(MyDataFrame,"c:/MyData.csv")
name place
--- ---
1 antonyuk
2 john usa
3 arjun ind
here, in
Hi,
How to zip a csv file ? i tried with "zipfile.ZipFile" - but it showing
function could not find.
Is there have any other way to zip files without installing any package ?
- Thanks in advance
Antony
--
View this message in context:
http://r.789695.n4.nabble.com/Zip-a-file-tp4643012.html
Se
Thanks.
From: Pramod [via R] [mailto:ml-node+s789695n4642989...@n4.nabble.com]
Sent: Thursday, September 13, 2012 1:27 PM
To: Akkara, Antony (GE Energy, Non-GE)
Subject: Re: Remove serial number column in a Dataframe into CSV
Add another argument to
write.csv(MyDataFrame,"c:/MyData.csv",ro
zip(zipfile, files, flags = "-r9X", extras = "",
zip = Sys.getenv("R_ZIPCMD", "zip"))
A.K.
- Original Message -
From: Rantony <[hidden email]>
To: [hidden email]
Cc:
Sent: Thursday, September 13, 2012 8
n use 7-zip or other
WinZip. Is there any specific reason for you to zip files within R?
A.K.
- Original Message -
From: Rantony <[hidden email]>
To: [hidden email]
Cc:
Sent: Monday, September 17, 2012 3:07 AM
Subject: Re: [R] Zip a file
Hi Arun,
I tried th
Hi,
Can anyone please help to get "StartDay" and "End-day of a particular month"
with time ?
For eg:- Input wil be "2012-09-27"
i need to get output as given below
StartDt <- "2012-09-01 00:00:01"
EndDt <- "2012-09-30 23:59:59"
- Thanks in advance
--
View this message in context:
http://r.
Hi,
Here i have a time along with date,
for eg:- "10/5/2012 5:05:00 AM"
i need to do minus 10 minutes along current date
Like this :- "10/5/2012 4:55:00 AM"
Thanks in Advance
Antony
--
View this message in context:
http://r.789695.n4.nabble.com/Minute-Difference-tp4645157.html
Sent from the
Hi,
Here i have a csv file, it contain like this
NAME UPDATED
- --
ABCINDIA
XYZ UK
My requirement what is, i need to change the value inside the csv file
(instead of INDIA i need to make it USA).
NAME UPDATED
- --
ABCUSA
XY
Hi,
i wanted to send a mail from R (using Eclips).
Currently i installed the following packages
base64_1.1
sendmailR_1.1-1
mail_1.0.tar.gz
Rmail_1.1.tar.gz
But while installing package some error was occuring.
Any other way to send a mail ?
- Thanks in advance
Antony
--
View this message in
Hi ,A simple question, How we can move a file from one location to another ?
(i mean cut & paste)Can any one help fast please ?Thanks in advance- Antony
--
View this message in context:
http://r.789695.n4.nabble.com/Moving-a-file-from-one-location-to-another-tp4646437.html
Sent from the R help
Hi,
here i have some code...
a <-1
b <- b+1
c <- b+a/20
if c >5
{ d<- 1 }
else { d<- 0 }
i want to repeat this code from the 2nd line [b <- b+1] without using loop.
Actulay i want to use "*Label *" and call *GoTo* method like in other
coding Languages.
For eg:- like this,
Hi,
Here, i have a matrix like this
MyMatrix <-
*DATETIMEHEADER1HEADER2*
1/1/2010 0:10 197.1947 100.0859
1/1/2010 0:20 203.8811 100.1013
1/1/2010 0:30 206.564 100.0433
1/1/2010 0:40 207.9563
Hi All,
Here i have an Dataframe (or) Matrix like this,
MyMatrix <-
ABC XYZ
-----
1 2.5
3.4 4
5 6
5.6 6.7
Here i need to check each column value having decrete value or not ?.
If that particular coulmn-value having decrete val
Good. Its working fine.
Thank you John !
From: John Kane [via R]
[mailto:ml-node+s789695n4635113...@n4.nabble.com]
Sent: Monday, July 02, 2012 6:18 PM
To: Akkara, Antony (GE Energy, Non-GE)
Subject: Re: Decrete value check in a matrix
You are not asking for a Decrete [sic] (descrete) va
Hi,
i have a matrix like this,
ABCXYZ... .
- --
1220 ... .
2435 ... .
3040 ... .
Here, i need to get
Sum of each colu
Could you please tell me what is the function or method to get count of
elements in all the columns in a matrix ?
for eg :-
ABC XYZPQR
-- - --
234
4 5
54 3
2
Result will be like
ABC
Hi,
Here i have an matrix like this,
ABCPQRXYZ MNO
-- --- --
367 15
2 122415
20 5 1 2
25 50 15 35
i need to get the
"MO
your matrix into a data frame using as.data.frame and then
> rantony
ABC PQR XYZ MNO
[1,] 3 6 7 15
[2,] 2 12 24 15
[3,] 20 5 1 2
[4,] 25 50 15 35
> rantony=as.data.frame(rantony)
> sapply(rantony,var) #calculates column wise variance
ABC
Hi,
Here i have a matrix like this,
OLDMatrix <-
X1 X2X3
- ----
22 24 23
25 27 27
10 13 15
the thing is,
im running two function(SUM,COUNT) to get output in another matrix called
NEWMatrix
NEWMatrix <- c("SUM
: MODE , VARIANCE , NTH PERCENTAILE
On 07/11/2012 05:38 PM, Rantony wrote:
> Hi,
> Here i have an matrix like this,
>
> ABCPQRXYZ MNO
> -- --- --
> 367 15
> 2 122415
>
- rbind(colSums(OLDMatrix ), colSums(!is.na(OLDMatrix )))
dimnames(NEWMatrix) <- list(c("SUM", "COUNT"), NULL)
OLDMatrix
X1 X2 X3
[1,] 22 24 23
[2,] 25 27 27
[3,] 10 13 15
NEWMatrix
[,1] [,2] [,3]
SUM 57 64 65
COUNT333
Jean
Ranton
Hi,
here i have a Max and Min values
Min <-3
Max <-6
and also a matrix like this,
ABCXYZ PQR
-- ------
2 43
5 48
7 13
In this i need to check each particular
3 4 1 RC RC RCRC
4 3 2 4 3 2
5 4 6 5 7 4RCRC
##
A.K.
- Original Message -
From: Rantony <[hidden email]>
To: [hidd
F",sep="_")
mydat3<-data.frame(cbind(mydat1,mydat2))
mydat3
ABC XYZ ABC_QF XYZ_QF
1 4 6RC
2 7 3 RC
A.K.
- Original Message -
From: Rantony <[hidden email]>
To: [hidden email]
Cc:
Sent: Monday, July
Hi,
Here i have an matrix
mydat <-
ABCXYZ
- --
12 6
6 50
90 100
55 85
100 25
i need to find the " NTH percentile " [result should be in column-wise].
here i have a code for NTH percenile,
For eg:- if i need 20th-percentile then,
qu
Hi,
Here in R, I need to load a huge file(.csv) , its size is 200MB. [may come
more than 1GB sometimes].
When i tried to load into a variable it taking too much of time and after
that when i do cbind by groups,
getting an error like this
" Error: cannot allocate vector of size 82.4 Mb "
My requi
Hi,
Here i have a Matrix
MyMatrix <-
NameAge
- ---
ANTONY27
IMRAN 30
RAJ 22
NAHAS 32
GEO 42
and here i have an array with Minimum and Maximum values.
MinMaxArray <- data.frame(MIN = 25,MAX=35)
MIN
Hi Arun,
But I am using Windows(XP).
From: arun kirshna [via R]
[mailto:ml-node+s789695n4639435...@n4.nabble.com]
Sent: Tuesday, August 07, 2012 10:49 PM
To: Akkara, Antony (GE Energy, Non-GE)
Subject: Re: ERROR : cannot allocate vector of size (in MB & GB)
HI,
If you are using linux
Hi here i have a code to split a csv file as per group of line.
The code given below,
SplitCSVByLine <- function(DataMatrix,Destination,NoOfLineToGroup)
{
input <- file(DataMatrix, "r")
fileNo <- 1
repeat
{
myLines
Hi,
Here i have a file path,
for eg : -
FPath <- "D:\\MyFolder\\MyFile.txt"
HOW IS POSSIBLE TO GET THE FILE NAME FROM THIS GIVEN PATH ?
- thanks in advance
Antony.
--
View this message in context:
http://r.789695.n4.nabble.com/Get-the-filename-from-the-given-path-tp4640578.html
Sent from t
Thanks pramod.
From: Pramod [via R] [mailto:ml-node+s789695n4640600...@n4.nabble.com]
Sent: Friday, August 17, 2012 5:24 PM
To: Akkara, Antony (GE Energy, Non-GE)
Subject: Re: Get the filename from the given path
x <- substr(FPath,13,nchar(FPath)) should give you the desired output.
Hi,
here im unable to run a string handle function called unpaste().
for eg:- a<- "12345_mydata"
Actually my requirement what is i need to get , only 12345. Means that , i
need the all letter as a word which is before of first " _ " - symbol of
"a". i tried to do with unpaste, it says functio
Hi,
Here i have a variable named "MyVariable" containing particular name
For eg:-
MyVariable <- "UnitNo"
Here my requirement is, i need to get "UnitNo" as another variable by
reading "MyVariable"
i need "UnitNo" as variable name and need to assign some value into that.
i had tried with as.n
tuck !
- Thanks
Antony
From: jholtman [via R] [mailto:ml-node+s789695n4641417...@n4.nabble.com]
Sent: Monday, August 27, 2012 7:56 PM
To: Akkara, Antony (GE Energy, Non-GE)
Subject: Re: String Handling() for Split a word by a letter
Is this what you want:
> a<- &q
But here, I need to split the csv file by giving file-size(in KB) as
input.
It required to split as per size(in KB), instead of giving no. of files.
Suppose, even if the file size ends in the middle of the last line, it
should include the complete last line.
For eg:
NAME AGE PLACE
A
Hi,
Any idea to - Unzip files from a given path and sub-folders to the
destination path ?
- Thanks
Antony.
--
View this message in context:
http://r.789695.n4.nabble.com/Unzip-files-from-the-given-path-to-the-destination-path-tp4641549.html
Sent from the R help mailing list archive at Nabb
Yes. Thank you. This is what I wanted. Thanks !
From: jeff6868 [via R] [mailto:ml-node+s789695n4641563...@n4.nabble.com]
Sent: Tuesday, August 28, 2012 7:03 PM
To: Akkara, Antony (GE Energy, Non-GE)
Subject: Re: Get variable data Reading from the list
Hello,
And this:
get(MyList[[1]]) w
Thank you.
From: arun kirshna [via R]
[mailto:ml-node+s789695n4641565...@n4.nabble.com]
Sent: Tuesday, August 28, 2012 7:25 PM
To: Akkara, Antony (GE Energy, Non-GE)
Subject: Re: Get variable data Reading from the list
Hi,
MyList<-list()
MyList[["MyVar"]]<-c(1:10)
MyList[[1]]
# [1]
Here i have a variable
MyVar <- data.frame(read.csv("D:\\Doc.csv"))
And now i am storing this variable name into a list.
MyList <- list()
MyList [length(MyList )+1]<- "MyVar"
Now what is the requirement is,
i need to call the variable name "MyVar" from the list "MyList " and get
the data.
---
Hi,
i need a small help.
a<- as.Date("2012-01-01")
b<- as.Date("2012-12-01")
My requirement what is, i need to get the month difference of these two
dates.
Can any one help me please !
- Antony
--
View this message in context:
http://r.789695.n4.nabble.c
Hi,
Here i have been a matrix like this,
*NAMEAGE PALCETRUE/FALSE*
ABC 20 INDIA
XYZ 30 FRANCE
PQR40 USA
MNO 30KENIYA
DEF25AUSTRALIA
Here,* TRUE/FALSE* Column containing empty values.
So my requir
lt;- TRUE
Next time do use dput() to give a reproducible example of your data --
if it's very large, just limit it to the first 30 rows or so with
dput(head(dats, 30))
Michael
On Fri, May 25, 2012 at 9:43 AM, Rantony <[hidden email]> wrote:
> Hi,
>
> Here
data.frame,
dat[dat$AGE == 30,"TRUE/FALSE"] <- TRUE
Next time do use dput() to give a reproducible example of your data --
if it's very large, just limit it to the first 30 rows or so with
dput(head(dats, 30))
Michael
On Fri, May 25, 2012 at 9:43 AM, Rantony <[hidden em
Hi,
Here i have been an matrix like this,
*NAMEAGE PALCETRUE/FALSE*
ABC 20 INDIA
XYZ 30 FRANCE
PQR40 USA
MNO 30KENIYA
DEF25AUSTRALIA
GTY34 CANADA
BNH 38JAPAN
Here, *TRUE/F
Hi,
Here i have a data frame like this,
frame name is "dat"
*NAME AGE ELIGIBLE*
A 20
B 14
C 35
D 10
E 50
In this, i want to change the column '*ELIGIBLE*' status to '*YES
eans:
E.g., between 5 and 25
with(dat, (AGE < 25) & (AGE > 5))
and so on.
Michael
On Mon, May 28, 2012 at 9:34 AM, Rantony <[hidden email]> wrote:
> Hi Michel,
>
>
>
> More than equal to function, how can I use other function ?,
>
> For example :-
t;YES", " ")
"OR" - How it is possible ?
From: Uwe Ligges-3 [via R]
[mailto:ml-node+s789695n4631665...@n4.nabble.com]
Sent: Tuesday, May 29, 2012 2:21 PM
To: Akkara, Antony (GE Energy, Non-GE)
Subject: Re: Use variable inside Function for updating the matrix
On 29.
Hi,
i have a matrix with headers. How can i get header name in that marix ?
i tried in R, with
names(MyMatrix[1]) - its getting exactly.
But when i try in eclips, its not receiving
ColHdr <- names(MyMatrix[1])
- it getting NULL value
- could you please help me ?
- Thanks
Antony.
--
View this
Hi,
i have a function like this,
*GetCsv[GetCsv[,ColHdr]ArrMinMax[iCol,2],ColHdr_QF]<-"RC"*
Here,
*GetCsv* -- It contain a matrix
*ColHdr* -- Is a column Header
*ArrMinMax* - It is a array of 2 columns
-
Here, this is the function to change
ITS OK. And thanks. Its working !
From: Ãzgür Asar [via R] [mailto:ml-node+s789695n4631684...@n4.nabble.com]
Sent: Tuesday, May 29, 2012 6:04 PM
To: Akkara, Antony (GE Energy, Non-GE)
Subject: Re: Matrix Header Name Select
Sorry, I misunderstood your question.
colnames(mymatrix)
woul
Hi,
i have a matrix like this
*DWATT *
10
20
30
30
32
Here i need to create a new column named "*DWATT_QF*" with filling value as
per the following condition,
if DWATT_QF = RC When DWATT value less than 30
Hi,
I am new in R,
i have a matrix like this
MyMatrix <-
*ABC PQRXYZ*
10 2030
40 5060
70 8090
And, i have an array containing some conditions like this,
MyArray <- c("*ABC*>50","*PQR*<50","*ABC*<30 &* XYZ*<40")
"ABC>50"
"PQR<50"
"ABC<30 & XYZ<4
57 matches
Mail list logo