Displaying 4 results from an estimated 4 matches for "finaldf".
2012 Sep 26
5
create new column in a DF according to values from another column
...uot;V3" in the
rows where the numbers are: 3,17,19.
I'm trying with "if" and something like this, but it's not working yet:
# For "V1":
if(DF$number %in% c(1,7,11,16)) {test$Station=="V1"}
# For "V2":
...
So my final DF should look like this:
FINALDF <- data.frame(number=c(1,4,7,3,11,16,14,17,20,19),data=c(1:10),
Station=c("V1","V2","V1","V3","V1","V1","V2","V3","V2","V3"))
Could someone help me to finish this?
Thank you very much!!!
--...
2008 Mar 28
1
Beginner help with retrieving frequency and transforming a matrix
...rix)
looks something like the following? (I've saw something in a tut based on
t-tests that I thought would work, but no joy...)
>NewDF
ID Ind frq
1 S-3 BR_F01 0.9167
2 S-3 BR_F02 0.6667
Further, is there to then transform the matrix to look something like the
following?
>FinalDF
Ind S-3 S-4 S-5.... S-1000000
BR_F01 0.9167 0.5 1 0.6667
BR_F02 0.6667 0.2 1 0.5
...
...
...
BR_Z98 0.5 1 0.3 1
BR_Z99 1 0.6 1 0.5
Thanks in advance for any help you can offer, and please let me know if
there is any further informatio...
2011 Jan 21
3
data and parameters
(1) I have a master data frame that reads
ClientID |date |value
(2) I also have a control data frame that reads
Client ID| Min date| Max date| control parameters
The control data set may not have all client IDs .
I want to use the control data frame on the master data frame to
remove client IDS that don't exist in the control data set and for
those that do, remove dates outside the
2008 Sep 12
4
reading in results from system(). There must be an easier way...
Hello,
I am currently using R to run an external program and then read the results
the external program sends to the stdout which are tsv data.
When R reads the results in it converts it to to a list of strings which I
then have to maniuplate with a whole slew of commands (which, figuring out how
to do was a reall challenge for a newbie like myself)--see below.
Here's the code I'm