Displaying 20 results from an estimated 20000 matches similar to: "how to split the string"
2008 Oct 22
3
Substitute problem
hello R users,
I didn't find a solution for a special problem.
I have two dataframes.
dataframe1:
X value row col ID
1 8.973498062 5512625 3460000 1
2 11.656658570 5501625 3464000 2
3 11.121777570 5495625 3473000 3
4 9.310465964 5508625 3477000 4
5 8.883483845 5515625 3496000 5
dataframe2:
X value
2009 Aug 06
1
problem with recording numeric output into another dataframe
dear all,
I have two dataframes
dataframe1
ID
a
b
c
dataframe2
ID value
a;W 100
X;c 200
Y;Z 300
I wanted to match the IDs from the two dataframes and record the values into
a new column of dataframe1 at the corresponding rows. This is what I expect:
dataframe1
ID value
a 100
b
c 200
I tried doing it like this:
for (i in seq(1:nrow(dataframe1))) {
2008 Oct 31
2
how to retrieve some records from a dataframe
Hi ,
Dataframe Df contains more than 30 no of records.but I want only
first 30 rows of data.
How can I retrieve it.
Thanks
K.Ravichandra
[[alternative HTML version deleted]]
2010 Feb 10
2
Subscripting
Dataframe1 contains a list of specific dates. Dataframe2 contains a large
dataset, one element of which is Date. How do I create a subset of
Dataframe2 that excludes the dates from Dataframe1? I know how to do it with
a left outer join vs null in SQL, but I can't figure out how to do it more
directly via the subcripts that already exist?
Dateframe1
Date
1/1/2010
1/18/2010
Dataframe2
Date
2018 Mar 12
0
subsetting comparison problem
> On Mar 11, 2018, at 3:32 PM, Neha Aggarwal <aggarwalneha2000 at gmail.com> wrote:
>
> Hello All,
> I am facing a unique problem and am unable to find any help in R help pages
> or online. I will appreciate your help for the following problem:
> I have 2 data-frames, samples below and there is an expected output
>
> R Dataframe1:
> C1 C2
2008 Aug 18
4
how to get no of pdf files in a particular directory
Hi
Lets say,
Dir<-"/var/www/html/celnet/users/cxadmin/FlowDuration_DataVolume/fld_01_
08_18_08"
There will be pdf and/or csv files.
I want to know how many *.pdf files are there in that
directory.
How can I get using R commands.
Thanks
K.Ravichandra
[[alternative HTML version deleted]]
2011 Jun 14
1
[Resolved] combine the data frames into comma separated list.
Hi
Thanks Gabor for your suggestion. I am posting the code that worked for me.
dataframe1 = data.frame(cbind(Src = c(1,1,1,2,3), Target1 =
c('aaa','bbb','ccc','aaa','ddd'))); #must be data frame
dataframe2 = data.frame(cbind(Src = c(2,3,4,4,4), Target2 =
c('aaaa','dddd','bbbb','eeee','ffff')));
dataframe3 =
2008 Jul 17
2
spliting a string
Hi
String<-"130.5"
Df<-Strsplit(".",":",String)
Then Df get
"" "" "" ""
But I want Df should contains
Df
"130"
"5"
If any body knows how to do it.tel me
Thanks
K.Ravichandra
[[alternative HTML version deleted]]
2008 Sep 05
2
how to write a escape sequences in to a file
Hi
Str1<-"hai "
Str2<-"hru"
I want to write these 2 strings in a file separated by
newline.
How can I get this.
Thanks
K.Ravichandra
[[alternative HTML version deleted]]
2008 Nov 13
2
(no subject)
Hi,
Browse[1]> d4
EVDO_Rev Session_Setup FCA bin counts
50 NA 0 5 1 1
51 NA 0 5 2 1
52 NA 0 5 3 1
53 NA 0 5 4 1
54 NA 0 5 5 1
55 NA 0 5 6 1
56 NA 0 5 7 1
57 NA 0 5 8
2008 Jul 30
1
need some help
Hi
Can any body explain the meaning of the following R code
if(interactive())
stop(msg, call. = FALSE)
else
quit()
Thanks
K.Ravichandra
[[alternative HTML version deleted]]
2008 Nov 10
1
is there any way to apply mulitiple conditions in subset function
Hi All,
Let say
> df
Session_Setup DCT FwdDataVols_bin counts
761 0 1 1 87162
762 0 1 2 11495
763 0 1 3 3986
764 0 1 4 1583
765 0 1 5 920
766 0 1 6 920
767 0 1
2013 Jan 25
2
How to name the elements of list
HI,
I have the array list:
X<-vector("list", 2)
X[[1]] : data frame 1
X[[2]]: dataframe2
now i want to change index 1 and 2 into: "0-10" , "11-20" ,.
finally I want to have
X[["0-10"]]:dataframe1
X[["11-20"]]:dataframe2
how do I get them?
Thanks a lot.
Kind regards,
Tammy
[[alternative HTML version deleted]]
2008 May 21
2
need some help in plotting xy graph
Hi
Dataframe fdf contains
bin rate overlay
1 1 90 Assign First/cc _from_SN_53 RNC_20_to_SN_50 RNC_21_Success
Rate
2 2 93 Assign First/cc _from_SN_53 RNC_20_to_SN_50 RNC_21_Success
Rate
3 1 90 Assign First/cc _from_SN_50 RNC_21_to_SN_53 RNC_20_Success
Rate
4 2 94 Assign First/cc _from_SN_50 RNC_21_to_SN_53
2000 Mar 07
3
Merging data.frames
On Tuesday, March 07, 2000 5:40 PM, Richard Bilonick wrote:
>I need to merge several data.frames into one data.frame. In S-Plus I would
>use
>"merge" but I don't see a merge command in R. What is the best way to
>accomplish
>this?
The easiest way to to this, I think, is as follows:
if you have several data frames, dataframe1, dataframe2, . . . , dataframen,
you
2002 Apr 30
1
data.frame package?
Is there a library that is able for example to
1. merge 2 dataframes by row eg.: rbind(dataframe1, dataframe2):data.frame
2. delete a column from a dataframe del(dataframe, colname) or
del(dataframe, colindex= 1):data.frame?
3. Select lines from a dataframe by a specific function ?
select(dataframe, func=small(x){x<1}, colindex=3): data.frame?
4. converting all double columns of a data.frame
2008 Oct 27
3
Arrays of Trellis plots
hello,
the example below does not work. (i know it's not supposed, but it makes it
clear what i'm trying to achieve)
par(mfrow=c(2,1))
xyplot(y~x2|x1,data=dataframe1,pch=20)
xyplot(y~x2|x1,data=dataframe2,pch=20)
i know i could probably merge the two datasets and do something like
xyplot(y~x2|x1+dataset,data=merged)
any other suggestion?
thanks.
[[alternative HTML version deleted]]
2018 Mar 11
4
subsetting comparison problem
Hello All,
I am facing a unique problem and am unable to find any help in R help pages
or online. I will appreciate your help for the following problem:
I have 2 data-frames, samples below and there is an expected output
R Dataframe1:
C1 C2 C3 C4...... CN
R1 0 1 0 1
R2 1 0 1 1
R3
2010 Nov 09
2
new column from column in another df
If I have a data frame where a species occupies several rows with different
phases such as (both col's ar factors):
species,phase
Populus tremula,1
Populus tremula,2
Populus tremula,3
Calluna vulgaris,1
Calluna vulgaris,2
Betula alba,1
Betula alba,2
Betula alba,3
Primula veris,1
Primula veris,2
and another df where each species only have one row:
species,growth_form
Populus tremula,tree
Acer
2018 Mar 12
0
Subsetting comparison problem
Hello All,
I am facing a unique problem and am unable to find any help in R help pages
or online. I will appreciate your help for the following problem:
I have 2 data-frames, samples below and there is an expected output
R Dataframe1:
C1 C2 C3 C4...... CN
R1 0 1 0 1
R2 1 0 1 1
R3