t 2 2 2
>
> $ VAL3: int 3 3 2
>
>
>
> That is why dput(s1) is always preferable for exchanging data instead of
> text in ***HTML formated*** mail.
>
>
>
> Cheers
>
> Petr
>
>
>
>
>
> *From:* Hiroyuki Sato [mailto:hiroys...@gmail.com]
>
is always preferable for exchanging data instead of text
in ***HTML formated*** mail.
Cheers
Petr
From: Hiroyuki Sato [mailto:hiroys...@gmail.com]
Sent: Monday, February 29, 2016 12:04 PM
To: PIKAL Petr; r-help@r-project.org
Subject: Re: [R] create function for compare two dataframe.
Hello Petr.
T
ID : Factor w/ 3 levels " ID1"," ID2",..: 1 2 3
> $ VAL1: int 2 0 0
> $ VAL2: int 2 3 2
> $ VAL3: int 3 3 4
> $ dat : chr "df1" "df1" "df1"
> > str(s2)
> 'data.frame': 3 obs. of 5 variables:
> $ ID : F
" "df1"
> str(s2)
'data.frame': 3 obs. of 5 variables:
$ ID : Factor w/ 3 levels " ID2"," ID3",..: 3 1 2
$ VAL1: int 0 0 0
$ VAL2: int 2 2 2
$ VAL3: int 3 3 2
$ dat : chr "df2" "df2" "df2"
>
Cheers
P
Hello
I would like to create a funciton which is create new dataframe
for compare reslut of two dataframes.
No. COLUMN DF1 DF2
"1" "VAL1" "2" "0" # <- compare ID1,VAL1
"2" "VAL2" "3" "2" # <- comapre ID2,VAL2
"3" "VAL3" "4" "2" # <- compare ID3,VAL3
s1 <- read.table("sample1.txt"
5 matches
Mail list logo