Displaying 2 results from an estimated 2 matches for "niii".
Did you mean:
iii
2015 Oct 07
3
read.table reads "i" as NA_complex_
...;i\ni\ni\ni\n")))
'data.frame': 4 obs. of 1 variable:
$ V1: cplx NA NA NA ...
> str(type.convert("i"))
cplx NA
If there are other strings in the column it makes the column character so
most people will not notice
> str(read.table(text=c("i\nii\niii\niv\n")))
'data.frame': 4 obs. of 1 variable:
$ V1: Factor w/ 4 levels "i","ii","iii",..: 1 2 3 4
Is this intended? It surprised me.
Bill Dunlap
TIBCO Software
wdunlap tibco.com
[[alternative HTML version deleted]]
2015 Oct 07
0
read.table reads "i" as NA_complex_
...'data.frame': 4 obs. of 1 variable:
> $ V1: cplx NA NA NA ...
>> str(type.convert("i"))
> cplx NA
>
> If there are other strings in the column it makes the column character so
> most people will not notice
>> str(read.table(text=c("i\nii\niii\niv\n")))
> 'data.frame': 4 obs. of 1 variable:
> $ V1: Factor w/ 4 levels "i","ii","iii",..: 1 2 3 4
>
> Is this intended? It surprised me.
>
> Bill Dunlap
> TIBCO Software
> wdunlap tibco.com
>
> [[alternative H...