Wolfram 언어

클라우드 저장 및 조작

하나의 데이터 빈을 다른 데이터 빈으로 복사하기

이제 기존 데이터 빈을 복사하여 새 데이터 빈을 작성할 수 있게 되었습니다.

빈을 생성하여 데이터를 추가합니다.

In[1]:=
Click for copyable input
original = CreateDatabin[<| "Interpretation" -> <|"name" -> "String", "email" -> "EmailAddress"|>|>]; DatabinUpload[original, {<|"name" -> "Jon Doe", "email" -> "jondoe@example.com"|>, <|"name" -> "Jane Doe", "email" -> "janedoe@example.com"|>, <|"name" -> "Bob Sanders", "email" -> "bob@example.com"|>, <|"name" -> "Bradley Ashford", "email" -> "brash@example.com"|>, <|"name" -> "Alexandra Bull", "email" -> "lexi@example.com"|>, <|"name" -> "Woody Codard", "email" -> "wood@example.com"|>}]
Out[1]=

오리지널 데이터 빈을 복사하여 새 데이터 빈을 생성합니다.

In[2]:=
Click for copyable input
copy = CopyDatabin[original]
Out[2]=

새롭게 생성된 빈에 데이터를 추가합니다.

In[3]:=
Click for copyable input
DatabinAdd[copy, <|"name" -> "Ralph Waldo", "email" -> "ralphw@example.com"|>] DatabinAdd[copy, <|"name" -> "George Bernard", "email" -> "georgeb@example.com"|>]
Out[3]=
Out[3]=

새로운 데이터 빈은 이제 오리지널 데이터 빈보다 더 많은 항목을 가지고 있습니다.

In[4]:=
Click for copyable input
{original["EntryCount"], copy["EntryCount"]}
Out[4]=
In[5]:=
Click for copyable input
Complement[copy["Entries"], original["Entries"]]
Out[5]=

관련 예제

de en es fr ja pt-br ru zh