Это WORKS ..
Помните, что в первый раз, когда вы напечатаете передаваемое значение, вы получите нуль, вы можете использовать его после загрузки Windows, то же самое для всего, что вы хотите кодировать для любого другого компонента.
Первый контроллер
blockquote>try { Stage st = new Stage(); FXMLLoader loader = new FXMLLoader(getClass().getResource("/com/inty360/free/form/MainOnline.fxml")); Parent sceneMain = loader.load(); MainOnlineController controller = loader.<MainOnlineController>getController(); controller.initVariable(99L); Scene scene = new Scene(sceneMain); st.setScene(scene); st.setMaximized(true); st.setTitle("My App"); st.show(); } catch (IOException ex) { Logger.getLogger(LoginController.class.getName()).log(Level.SEVERE, null, ex); }
Другой контроллер
blockquote>public void initVariable(Long id_usuario){ this.id_usuario = id_usuario; label_usuario_nombre.setText(id_usuario.toString()); }
Это? Твиты это tweets
data.frame
, а sents
- sentiment_scores
.
library(tidyverse)
new_tweets<-tweets %>%
mutate(ID=as.factor(row_number()))
new_sents<-sents %>%
mutate(ID=as.factor(row_number()))
merged<-new_tweets %>%
left_join(new_sents,by="ID") %>%
select(-ID)
merged
Вы можете сначала объединить их с cbind
и изучить.
new_tweets<-new_tweets[,-ncol(new_tweets)]
combined<-cbind(new_tweets,new_sents)
as.tibble(combined)
MyText favorited favoritedCount Created element_id Sentance_id Word_Count Sentiment ID
<fct> <lgl> <int> <fct> <int> <int> <int> <dbl> <fct>
1 Starbucks TRUE 2 2019-0~ 1 1 2 0.186 1
2 starbucks~ FALSE 2 2019-0~ 2 1 5 0.186 2
3 starbucks~ FALSE 1 2019-0~ 3 1 2 0.186 3
4 Icedstarb~ FALSE 1 2019-0~ 4 1 1 0.186 4
5 Ilovestar~ TRUE 3 2019-0~ 5 1 3 0.186 5