Just to agree with the other responses, note my default encoding is UTF-8.
> A<-data.frame(x=c("مریم","ماریا"),y=c(1,1))
> A
x y
1 مریم 1
2 ماریا 1
> str(A)
'data.frame': 2 obs. of 2 variables:
$ x: chr "مریم" "ماریا"
$ y: num 1 1
> sessionInfo()
R version 4.0.2 (2020-06-22)
Platform:
On Tue, 28 Jul 2020 10:31:07 +0430
Vahid Borji wrote:
> A<-data.frame(x=c("مریم","ماریا"),y=c(1,1))
> The output is like this:
>
> x y1
> 12
> 1
This is one of those problems heavily affected by your version of R
(does it have stringsAsFactors = TRUE
On 28/07/2020 2:01 a.m., Vahid Borji wrote:
I am trying to make a data frame including two vectors. The first vector is
a vector of Persian names, and the second vector is a vector of numbers. My
code is as follows:
A<-data.frame(x=c("مریم","ماریا"),y=c(1,1))
A
But when I run these codes I do n
I am trying to make a data frame including two vectors. The first vector is
a vector of Persian names, and the second vector is a vector of numbers. My
code is as follows:
A<-data.frame(x=c("مریم","ماریا"),y=c(1,1))
A
But when I run these codes I do not receive my desired output. Indeed the
colum
4 matches
Mail list logo