Displaying 20 results from an estimated 10000 matches similar to: "Moving a file from one location to another"
2012 Oct 05
4
Minute Difference
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 R help mailing list archive at Nabble.com.
2012 Jul 11
4
MODE , VARIANCE , NTH PERCENTAILE
Hi,
Here i have an matrix like this,
ABC PQR XYZ MNO
------ ------- ------ --------
3 6 7 15
2 12 24 15
20 5 1 2
25 50 15 35
i need to get the
"MODE" - for each column-wise
"VARIANCE" - for
2012 May 25
4
Hash Table - Select and Change Data iniside Matrix
Hi,
Here i have been a matrix like this,
*NAME AGE PALCE TRUE/FALSE*
ABC 20 INDIA
XYZ 30 FRANCE
PQR 40 USA
MNO 30 KENIYA
DEF 25 AUSTRALIA
Here,* TRUE/FALSE* Column containing empty values.
So my requirement what is , need to change all the *TRUE/FALSE *column value
into "*TRUE*" where *AGE =
2012 Jul 12
3
Add row into a Matrix witout headers from Function
Hi,
Here i have a matrix like this,
OLDMatrix <-
X1 X2 X3
----- ------ ------
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",colSums(OLDMatrix ))
NEWMatrix <- c("COUNT",colSums(!is.na(OLDMatrix
2012 May 30
3
Separate Array Variable Content
Hi,
I am new in R,
i have a matrix like this
MyMatrix <-
*ABC PQR XYZ*
10 20 30
40 50 60
70 80 90
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<40"
2012 Aug 17
8
Get the filename from the given path
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 the R help mailing list archive at Nabble.com.
2012 Aug 27
3
String Handling() for Split a word by a letter
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 function not found. After that i
tried with "strsplit() ". it
2012 Jul 31
2
Remove a complete row as per the Range in a Matrix
Hi,
Here i have a Matrix
MyMatrix <-
Name Age
--------- -------
ANTONY 27
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 MAX
------ --------
25 35
2012 Oct 08
2
Update CSV file content
Hi,
Here i have a csv file, it contain like this
NAME UPDATED
--------- --------------
ABC INDIA
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
--------- --------------
ABC USA
XYZ UK
How can we update by writing into the csv file ? i dont want to delete
entire data and
2012 Sep 11
5
Searching from Dataframe.
Hi,
i have a dataframe containing some values.
for eg:-
MyDataFrame<-
Name Age Place
------- ------ -----------
Aby 12 USA
Raj 25 UK
Romi 32 ENG
Amy 31 IND
My requirement what is, i have a search key word[it should search from all
the columns], that i need to find out from this dataframe. If search keyword
found , it
2012 Jun 12
3
R-SCRIPT Label Calling Method
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,
a <-1
*LabelBegin :*
b <-
2012 Jul 24
4
ERROR : cannot allocate vector of size (in MB & GB)
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 requirement is, spilt data from Huge-size-file(.csv) to no. of small csv
files.
Here i will give
2012 Jul 13
3
Column create and Update using function
Hi,
here i have a Max and Min values
Min <-3
Max <-6
and also a matrix like this,
ABC XYZ PQR
------ ------- -------
2 4 3
5 4 8
7 1 3
In this i need to check each particular column values are between Max and
Min value.
If the coulmn value not coming between Max and
2012 Sep 13
2
Remove serial number column in a Dataframe into CSV
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 antony uk
2 john usa
3 arjun ind
here, in the csv file, serial number column is coming extra on the left-end
side.
i want to remove
2012 May 29
2
Use variable inside Function for updating the matrix
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*' If, AGE
between 18 to 35
Which means that, i should get a put like
2012 Aug 28
3
Get variable data Reading from the list
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.
2012 Aug 28
1
Unzip files from the given path to the destination path
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 Nabble.com.
2012 Jul 10
2
Count of elements in coulmns of a matrix
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 XYZ PQR
------ ----- ------
2 3 4
4 5
5 4 3
2
Result will be like
ABC XYZ PQR
------ ----- ------
2 4 3
Could you please help me
2012 Jun 14
3
Time difference between two dates/timing
Hi,
Here, i have a matrix like this
MyMatrix <-
*DATETIME HEADER1 HEADER2*
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 99.9393
i want to get the time difference in minutes between two date.
TimeDiff <- MyMatrix[1,1] - MyMatrix[2,1]
TimeDiff
2012 May 28
2
Hash Table - Select and Change Data iniside Matrix Using "Between"
Hi,
Here i have been an matrix like this,
*NAME AGE PALCE TRUE/FALSE*
ABC 20 INDIA
XYZ 30 FRANCE
PQR 40 USA
MNO 30 KENIYA
DEF 25 AUSTRALIA
GTY 34 CANADA
BNH 38 JAPAN
Here, *TRUE/FALSE *Column containing empty values.
So my requirement what is, need to change all the TRUE/FALSE