Off topic:Extracting value from csv file with condition using if else and & operator
2
0
Entering edit mode
8.6 years ago
shawin ▴ 20

I have a csv file and I would like to extract the value of it with specific range for example; F>2 & F<2 & P=1, and then write the result to csv file.

I tried the code bellow but , it does not work?

FCPval <- read.csv("C:/Users/shawin/Desktop/RProgramms/RAdipose/FCPval.csv")
c=as.data.frame(FCPval)
for (i in 1:rowN){if (C$F[i] >= 2 && C$F[i]<=-2&& C$p[i]<=3){
  dfrmPFC=data.frame(Fc=FC,p=p)}
}

The error is:

Error in C$FC : object of type 'closure' is not subsettable
R • 4.1k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2574 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6