Quantcast
Channel: R.NET
Viewing all articles
Browse latest Browse all 1634

Created Unassigned: Adding new col and assigning NA to it shows True and not NA [191]

$
0
0
Hi,
I have a data frame and I added a new column to it and assigned NA (using R.NET). In C# I do not see all NA rather I see all True in that new column. Tried same in R GUI and new column contains all NA.

Example:
df2<-data.frame(A=c(21,24,32), B=c(46,57,68), C=c(68,87,89))
df2$newcol <- NA

I am expecting to see all NA values in my new column, just like R GUI. Please help.

I am on R.NET ver 1.6.5.0

Thanks,
adabral

Viewing all articles
Browse latest Browse all 1634

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>