[Rd] Error when comparing two variables within a dataframe and print relevant observations

Keith Jewell Keith.Jewell at campdenbri.co.uk
Fri May 15 12:54:29 CEST 2015


On 15/05/2015 05:35, bw1984 wrote:
> I'm trying to use a nested ifelse condition to compare two lines.
>
> Input:
>
>
> Code:
>
>
> Expected Output:
>
>
>
> Actual Output:
>
>
>
> Any idea what might be causing this problem?
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Error-when-comparing-two-variables-within-a-dataframe-and-print-relevant-observations-tp4707240.html
> Sent from the R devel mailing list archive at Nabble.com.
>
I had to look at Nabble to see the detail. Even that omitted an error 
message:

 > Transfers2 <- subset(Transfers, ChangeType != "No Change"))
Error: unexpected ')' in "Transfers2 <- subset(Transfers, ChangeType != 
"No Change"))"

When I omitted the extra closing bracket it worked.



More information about the R-devel mailing list